結果
問題 | No.331 CodeRunnerでやれ |
ユーザー | te-sh |
提出日時 | 2017-07-19 15:11:43 |
言語 | D (dmd 2.106.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 481 bytes |
コンパイル時間 | 826 ms |
コンパイル使用メモリ | 83,384 KB |
実行使用メモリ | 97,080 KB |
平均クエリ数 | 62.88 |
最終ジャッジ日時 | 2023-09-03 15:17:56 |
合計ジャッジ時間 | 10,536 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 154 ms
23,808 KB |
testcase_01 | AC | 157 ms
24,036 KB |
testcase_02 | AC | 176 ms
23,380 KB |
testcase_03 | AC | 179 ms
23,332 KB |
testcase_04 | AC | 175 ms
23,520 KB |
testcase_05 | AC | 189 ms
23,628 KB |
testcase_06 | AC | 184 ms
23,364 KB |
testcase_07 | AC | 266 ms
8,124 KB |
testcase_08 | TLE | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string; void main() { int r; auto rs = readln.chomp.to!int; foreach (i; 0..rs) r = ask("F"); for (;;) { if (r == 0) { r = ask("R"); continue; } ask("F"); r = ask("L"); } } int ask(string c) { import core.stdc.stdlib; writeln(c); stdout.flush(); auto s = readln.chomp; if (s == "Merry Christmas!") exit(0); auto r = s.to!int; if (r == 20151224) ask("F"); return r; }