結果
| 問題 |
No.331 CodeRunnerでやれ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-24 00:20:49 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 684 bytes |
| コンパイル時間 | 627 ms |
| コンパイル使用メモリ | 55,420 KB |
| 実行使用メモリ | 81,928 KB |
| 平均クエリ数 | 0.06 |
| 最終ジャッジ日時 | 2024-07-16 22:18:33 |
| 合計ジャッジ時間 | 7,917 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | AC * 1 -- * 15 |
ソースコード
#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;
}
}