結果

問題 No.331 CodeRunnerでやれ
ユーザー Tsuneo YoshiokaTsuneo Yoshioka
提出日時 2015-12-24 00:20:49
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 684 bytes
コンパイル時間 949 ms
コンパイル使用メモリ 52,312 KB
実行使用メモリ 94,784 KB
平均クエリ数 0.06
最終ジャッジ日時 2023-09-23 22:35:09
合計ジャッジ時間 8,163 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <stdio.h>
#include <stdlib.h>

using namespace std;
int main(void){
    // Here your code !
    ios::sync_with_stdio(false);
    string str;
    while(!cin.eof()){
        getline(cin, str);
        // cout << "str=" << str << "..." << endl;
        if(str=="Merry Christmas!"){
            exit(0);
        }
        int i = atoi(str.c_str());
        int r = rand()%100;
        if(i!=0){
            if(r<25){
                cout << "L" << endl << flush;
                continue;
            }else if(r<50){
                cout << "R" << endl << flush;
                continue;
            }
        }
        cout << "F" << endl << flush;
    }
}
0