結果
| 問題 | No.331 CodeRunnerでやれ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-20 17:01:14 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2,296 ms / 5,000 ms |
| コード長 | 464 bytes |
| 記録 | |
| コンパイル時間 | 378 ms |
| コンパイル使用メモリ | 71,708 KB |
| 実行使用メモリ | 28,756 KB |
| 平均クエリ数 | 110765.18 |
| 最終ジャッジ日時 | 2026-03-31 11:23:59 |
| 合計ジャッジ時間 | 14,060 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 |
ソースコード
#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;
}