結果
問題 | No.331 CodeRunnerでやれ |
ユーザー | bal4u |
提出日時 | 2019-08-15 18:46:09 |
言語 | C (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 591 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 27,484 KB |
実行使用メモリ | 87,172 KB |
平均クエリ数 | 37.24 |
最終ジャッジ日時 | 2023-09-23 18:01:33 |
合計ジャッジ時間 | 9,095 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 156 ms
24,228 KB |
testcase_01 | AC | 152 ms
23,496 KB |
testcase_02 | AC | 173 ms
23,308 KB |
testcase_03 | AC | 178 ms
23,320 KB |
testcase_04 | AC | 178 ms
24,204 KB |
testcase_05 | AC | 175 ms
24,408 KB |
testcase_06 | AC | 171 ms
24,060 KB |
testcase_07 | AC | 199 ms
23,832 KB |
testcase_08 | TLE | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
ソースコード
// yukicoder: No.331 CodeRunnerでやれ // bal4u 2019.8.15 #include <stdio.h> #include <stdlib.h> int action(char ch) { char s[20]; int d; while (1) { if (ch) { putchar(ch), putchar('\n'); fflush(stdout); } scanf("%s", s); if (*s == 'M') exit(0); if ((d = atoi(s)) < 20151224) break; ch = 'F'; } return d; } int main() { int d = action(0); while (d) d = action('F'); d = action('L'); while (1) { if (d == 0) d = action('R'); while (d == 0) d = action('L'); while (d = action('F')) { d = action('R'); if (d == 0) d = action('L'); } } return 0; }