結果

問題 No.331 CodeRunnerでやれ
ユーザー h_nosonh_noson
提出日時 2016-04-22 12:00:27
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 880 bytes
コンパイル時間 501 ms
コンパイル使用メモリ 62,832 KB
実行使用メモリ 91,300 KB
平均クエリ数 38.06
最終ジャッジ日時 2023-09-23 23:49:33
合計ジャッジ時間 9,093 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
23,412 KB
testcase_01 AC 126 ms
23,448 KB
testcase_02 AC 161 ms
24,220 KB
testcase_03 AC 155 ms
23,656 KB
testcase_04 AC 158 ms
23,556 KB
testcase_05 AC 151 ms
24,000 KB
testcase_06 AC 148 ms
24,072 KB
testcase_07 AC 175 ms
24,000 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

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() {
    int n;
    cin >> n;
    while (n != 20151224 && n > 0) {
        cout << "F" << endl;
        cin >> n;
    }
    if (n == 0) {
        cout << "L" << endl;
        cin >> n;
    }
    while (1) {
        if (n != 20151224) {
            cout << "R" << endl;
            cin >> n;
            while (n == 0) {
                cout << "L" << endl;
                cin >> n;
            }
        }
        cout << "F" << endl;
        cin.ignore();
        string s;
        getline(cin,s);
        if (s == "Merry Christmas!")
            break;
        n = stoi(s);
    }
    return 0;
}
0