結果

問題 No.331 CodeRunnerでやれ
ユーザー parukiparuki
提出日時 2018-03-11 19:10:51
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 1,038 bytes
コンパイル時間 1,492 ms
コンパイル使用メモリ 165,644 KB
実行使用メモリ 24,556 KB
平均クエリ数 16738.00
最終ジャッジ日時 2023-09-23 15:58:08
合計ジャッジ時間 22,711 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
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 "bits/stdc++.h"
using namespace std;
#define FOR(i,j,k) for(int (i)=(j);(i)<(int)(k);++(i))
#define rep(i,j) FOR(i,0,j)
#define each(x,y) for(auto &(x):(y))
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define debug(x) cout<<#x<<": "<<(x)<<endl
#define smax(x,y) (x)=max((x),(y))
#define smin(x,y) (x)=min((x),(y))
#define MEM(x,y) memset((x),(y),sizeof (x))
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<ll> vll;

const int INF = 20151224;

int order(char c){
    cout << c << endl;
    string res;
    cin >> res;
    if(res == "Merry Christmas!")
        exit(0);
    return stoi(res);
}

int rnd(int mod){
    return rand() % mod;
}

int main(){
    {string s; cin >> s; }
    while(1){
        int cnt = rnd(4);
        int res = 0;
        rep(i, cnt)
            res = order('L');
        if(res == 0)continue;
        if(res == INF)
            while(1)order('F');
        int len = rnd(res) + 1;
        rep(i, len)order('F');
    }
}
0