結果
| 問題 | No.331 CodeRunnerでやれ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-14 07:07:33 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 807 bytes |
| 記録 | |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 73,352 KB |
| 実行使用メモリ | 82,464 KB |
| 平均クエリ数 | 0.06 |
| 最終ジャッジ日時 | 2026-03-31 15:04:26 |
| 合計ジャッジ時間 | 7,436 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | AC * 1 -- * 15 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
int d=0,f_i=0,f_w=0;
while(1){
string s1,s2;getline(cin,s1);
if(s1=="Merry Christmas!"){
break;
}
if(s1=="20151224"){
s2="F";
cout<<s2<<endl;
continue;
}
int a=stoi(s1);
if(f_i==0 && a!=0){
s2="F";
cout<<s2<<endl;
continue;
} else if(f_i==0 && a==0){
f_i=1;
}
if(f_w==0 && a==0){
s2="R";
cout<<s2<<endl;
f_w=1;
continue;
} else if(f_w==0 && a!=0){
s2="L";
cout<<s2<<endl;
f_w=1;
continue;
} else if(f_w!=0 && a==0){
s2="R";
cout<<s2<<endl;
continue;
} else if(f_w!=0 && a!=0){
s2="F";
cout<<s2<<endl;
f_w=0;
continue;
}
}
return 0;
}