結果
問題 |
No.331 CodeRunnerでやれ
|
ユーザー |
|
提出日時 | 2015-12-20 17:01:14 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 464 bytes |
コンパイル時間 | 466 ms |
コンパイル使用メモリ | 56,792 KB |
実行使用メモリ | 25,604 KB |
平均クエリ数 | 27642.53 |
最終ジャッジ日時 | 2024-07-16 22:14:56 |
合計ジャッジ時間 | 30,957 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 15 TLE * 1 |
ソースコード
#include <iostream> using namespace std; const string goal = "Merry Christmas!"; int main(){ string s; while(getline(cin, s)){ if(s == goal){ break; } int n = atoi(s.c_str()); if(n == 0){ cout << "L" << endl; continue; } cout << "R" << endl; int m; cin >> m; if(m > 0){ cout << "F" << endl; } else { cout << "L" << endl; cin >> m; cout << "F" << endl; } } return 0; }