結果

問題 No.331 CodeRunnerでやれ
ユーザー krotonkroton
提出日時 2015-12-20 17:01:14
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 464 bytes
コンパイル時間 453 ms
コンパイル使用メモリ 53,416 KB
実行使用メモリ 94,616 KB
平均クエリ数 27642.53
最終ジャッジ日時 2023-09-23 22:31:29
合計ジャッジ時間 28,460 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
23,724 KB
testcase_01 AC 168 ms
23,484 KB
testcase_02 AC 640 ms
23,680 KB
testcase_03 AC 835 ms
23,884 KB
testcase_04 AC 614 ms
23,448 KB
testcase_05 AC 426 ms
24,336 KB
testcase_06 AC 1,421 ms
23,232 KB
testcase_07 AC 1,519 ms
23,392 KB
testcase_08 AC 313 ms
24,064 KB
testcase_09 AC 2,957 ms
23,644 KB
testcase_10 AC 2,976 ms
24,100 KB
testcase_11 AC 768 ms
23,268 KB
testcase_12 TLE -
testcase_13 AC 2,175 ms
23,652 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0