結果

問題 No.331 CodeRunnerでやれ
ユーザー fine
提出日時 2016-04-04 00:03:51
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 753 bytes
コンパイル時間 1,701 ms
コンパイル使用メモリ 160,224 KB
実行使用メモリ 87,868 KB
平均クエリ数 2.47
最終ジャッジ日時 2024-07-16 23:29:42
合計ジャッジ時間 9,556 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2 TLE * 1 -- * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    string a[2] = {"L","R"}, s;
    int t = 0,x;
    while (cin >> x) {
        if (x) {
            cout << "F" << endl;
            if (x > 20) break;
        } else {
            cout << a[t] << endl;
            cin >> x;
            if (x) {
                cout << "F" << endl;
                if (x > 20) break;
            } else {
                cout << a[t] << endl;
                cin >> x;
                cout << a[t] << endl;
                t = 1 - t;
            }
        }          
    }
    while (cin >> s) {
        if (s[0] == 'M') break;
        else {
            cout << "F" << endl;
        }
    }
    return 0;
}
0