結果
問題 |
No.331 CodeRunnerでやれ
|
ユーザー |
|
提出日時 | 2016-04-04 00:17:47 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 1,160 bytes |
コンパイル時間 | 1,611 ms |
コンパイル使用メモリ | 161,156 KB |
実行使用メモリ | 90,560 KB |
平均クエリ数 | 0.06 |
最終ジャッジ日時 | 2024-07-16 23:30:10 |
合計ジャッジ時間 | 9,287 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 1 |
other | AC * 1 -- * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string a[2] = {"L","R"}, s; int t = 1, x, f = 0; while (cin >> x) { if (x) { if (x > 20) { cout << "F" << endl; break; } if (f) { cout << a[1 - t] << endl; cin >> x; if (x) { cout << "F" << endl; break; } else { cout << a[t] << endl; cin >> x; } } cout << "F" << endl; } else { f = 1; cout << a[t] << endl; cin >> x; if (x) { cout << "F" << endl; if (x > 20) break; } else { cout << a[t] << endl; cin >> x; cout << a[t] << endl; t = 1 - t; } } } while (cin >> s) { if (s[0] == 'M') break; else { cout << "F" << endl; } } return 0; }