結果

問題 No.331 CodeRunnerでやれ
コンテスト
ユーザー kroton
提出日時 2015-12-20 17:01:14
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 2,296 ms / 5,000 ms
コード長 464 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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