結果
問題 | No.331 CodeRunnerでやれ |
ユーザー |
|
提出日時 | 2017-07-19 15:11:43 |
言語 | D (dmd 2.109.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 481 bytes |
コンパイル時間 | 847 ms |
コンパイル使用メモリ | 96,548 KB |
実行使用メモリ | 104,252 KB |
平均クエリ数 | 62.88 |
最終ジャッジ日時 | 2024-06-12 21:01:06 |
合計ジャッジ時間 | 10,148 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 7 TLE * 1 -- * 8 |
ソースコード
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;}