Submission #147359
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace MixTester { class Manager { public string Body { get; private set; } public int ID { get; private set; } public void Check(string ngword_) { int leng = Body.Length; for (int i = 0; i < leng; i++) { if (Body[i] != ngword_[i] && ngword_[i] != '*') return; } //ここまで残ったら Body = ""; for (int i = 0; i < leng; i++) { Body += '*'; } } public Manager(string body_, int id_) { Body = body_; ID = id_; } } class Program { public static TextReader input; public static TextWriter output; public static void Main(string[] args) { #region //Initialize input = Console.In; output = Console.Out; //input = new StreamReader("power.txt"); //output = new StreamWriter("send.txt"); //EndInitialize #endregion int[] timer = ReadInteger(1); int[] reader = ReadInteger(1); int an = reader[0]; reader = ReadInteger(an); Queue<int> takoyaki = new Queue<int>(an); foreach (int aa in reader) { takoyaki.Enqueue(aa); } reader = ReadInteger(1); int bn = reader[0]; reader = ReadInteger(bn); if (an < bn) { output.WriteLine("no"); return; } for (int i = 0; i < bn; i++) { int now = -1; while (now + timer[0] < reader[i]) { if (takoyaki.Count > 0) { now = takoyaki.Dequeue(); } else { output.WriteLine("no"); return; } } if (now <= reader[i]) continue; else { output.WriteLine("no"); return; } } output.WriteLine("yes"); } public static int[] ReadInteger(int count_) { int[] result = new int[count_]; string line = input.ReadLine(); string[] parts = line.Split(' ', ':', '/'); for (int i = 0; i < count_; i++) { result[i] = int.Parse(parts[i]); } return result; } } }
Submission Info
Submission Time | |
---|---|
Task | C - おいしいたこ焼きの売り方 |
User | koten_under |
Language | C# (Mono 2.10.8.1) |
Score | 0 |
Code Size | 2994 Byte |
Status | WA |
Exec Time | 153 ms |
Memory | 8756 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | rand0.txt, rand1.txt, rand10.txt, rand11.txt, rand12.txt, rand13.txt, rand14.txt, rand15.txt, rand16.txt, rand17.txt, rand18.txt, rand19.txt, rand2.txt, rand20.txt, rand21.txt, rand22.txt, rand23.txt, rand24.txt, rand25.txt, rand26.txt, rand27.txt, rand28.txt, rand29.txt, rand3.txt, rand4.txt, rand5.txt, rand6.txt, rand7.txt, rand8.txt, rand9.txt, s1.txt, s2.txt, s3.txt, s4.txt, s5.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
rand0.txt | AC | 148 ms | 8680 KB |
rand1.txt | AC | 144 ms | 8676 KB |
rand10.txt | AC | 145 ms | 8704 KB |
rand11.txt | AC | 153 ms | 8596 KB |
rand12.txt | AC | 147 ms | 8672 KB |
rand13.txt | WA | 145 ms | 8680 KB |
rand14.txt | WA | 144 ms | 8672 KB |
rand15.txt | AC | 145 ms | 8660 KB |
rand16.txt | WA | 143 ms | 8660 KB |
rand17.txt | AC | 147 ms | 8620 KB |
rand18.txt | WA | 142 ms | 8664 KB |
rand19.txt | AC | 140 ms | 8676 KB |
rand2.txt | AC | 139 ms | 8660 KB |
rand20.txt | WA | 142 ms | 8664 KB |
rand21.txt | AC | 146 ms | 8664 KB |
rand22.txt | AC | 146 ms | 8664 KB |
rand23.txt | AC | 144 ms | 8664 KB |
rand24.txt | AC | 148 ms | 8572 KB |
rand25.txt | WA | 146 ms | 8644 KB |
rand26.txt | AC | 146 ms | 8664 KB |
rand27.txt | AC | 145 ms | 8676 KB |
rand28.txt | AC | 145 ms | 8676 KB |
rand29.txt | AC | 144 ms | 8656 KB |
rand3.txt | AC | 141 ms | 8660 KB |
rand4.txt | AC | 143 ms | 8660 KB |
rand5.txt | AC | 143 ms | 8676 KB |
rand6.txt | AC | 145 ms | 8676 KB |
rand7.txt | AC | 145 ms | 8728 KB |
rand8.txt | AC | 141 ms | 8604 KB |
rand9.txt | WA | 146 ms | 8600 KB |
s1.txt | AC | 145 ms | 8652 KB |
s2.txt | AC | 143 ms | 8756 KB |
s3.txt | AC | 147 ms | 8636 KB |
s4.txt | AC | 144 ms | 8668 KB |
s5.txt | AC | 146 ms | 8640 KB |