結果

問題 No.331 CodeRunnerでやれ
ユーザー krotonkroton
提出日時 2015-12-20 16:59:14
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 461 bytes
コンパイル時間 525 ms
コンパイル使用メモリ 53,372 KB
実行使用メモリ 24,544 KB
平均クエリ数 2.65
最終ジャッジ日時 2023-09-23 08:19:51
合計ジャッジ時間 5,115 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
23,472 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

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;
      break;
    }
    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