結果
問題 | No.331 CodeRunnerでやれ |
ユーザー |
![]() |
提出日時 | 2016-04-22 12:00:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 880 bytes |
コンパイル時間 | 500 ms |
コンパイル使用メモリ | 62,256 KB |
実行使用メモリ | 95,396 KB |
平均クエリ数 | 38.06 |
最終ジャッジ日時 | 2024-07-16 23:39:40 |
合計ジャッジ時間 | 9,289 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 7 TLE * 1 -- * 8 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> using namespace std; #define RREP(i,s,e) for (i = s; i >= e; i--) #define rrep(i,n) RREP(i,n,0) #define REP(i,s,e) for (i = s; i < e; i++) #define rep(i,n) REP(i,0,n) #define INF 100000000 typedef long long ll; int main() { int n; cin >> n; while (n != 20151224 && n > 0) { cout << "F" << endl; cin >> n; } if (n == 0) { cout << "L" << endl; cin >> n; } while (1) { if (n != 20151224) { cout << "R" << endl; cin >> n; while (n == 0) { cout << "L" << endl; cin >> n; } } cout << "F" << endl; cin.ignore(); string s; getline(cin,s); if (s == "Merry Christmas!") break; n = stoi(s); } return 0; }