結果

問題 No.331 CodeRunnerでやれ
コンテスト
ユーザー kroton
提出日時 2015-12-20 17:01:14
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 2,547 ms / 5,000 ms
+ 39µs
コード長 464 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 283 ms
コンパイル使用メモリ 74,640 KB
実行使用メモリ 6,016 KB
平均クエリ数 99906.12
最終ジャッジ日時 2026-08-14 17:06:40
合計ジャッジ時間 13,341 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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