結果

問題 No.331 CodeRunnerでやれ
ユーザー h_nosonh_noson
提出日時 2016-04-22 11:17:54
言語 C++11
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 722 bytes
コンパイル時間 645 ms
コンパイル使用メモリ 62,216 KB
実行使用メモリ 24,516 KB
平均クエリ数 2.94
最終ジャッジ日時 2023-09-23 10:25:33
合計ジャッジ時間 7,270 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

#define RREP(i,s,e) for (i = s; i >= e; i--)
#define rrep(i,n) RREP(i,n,0)
#define REP(i,s,e) for (i = s; i < e; i++)
#define rep(i,n) REP(i,0,n)
#define INF 100000000

typedef long long ll;

int main() {
    while (1) {
        string s;
        getline(cin,s);
        if (s == "Merry Christmas!")
            break;
        int n = stoi(s);
        if (n != 20151224) {
            cout << "R" << endl;
            cin >> n;
            if (n > 0)
                cout << "F" << endl;
            else {
                while (cout << "L" << endl, cin >> n, !n);
            }
        }
        cout << "F" << endl;
    }
    return 0;
}
0