結果
問題 |
No.331 CodeRunnerでやれ
|
ユーザー |
|
提出日時 | 2016-02-26 18:51:17 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 995 bytes |
コンパイル時間 | 1,659 ms |
コンパイル使用メモリ | 159,588 KB |
実行使用メモリ | 95,336 KB |
平均クエリ数 | 9296.94 |
最終ジャッジ日時 | 2024-07-16 22:59:15 |
合計ジャッジ時間 | 23,108 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 15 TLE * 1 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #ifdef __unix__ #include <bits/stdc++.h> #else #include "bits\stdc++.h" #endif #include <vector> #include <set> #include <string> #include <queue> #define REP(i,a,b) for(i=a;i<b;i++) #define rep(i,n) REP(i,0,n) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; #define SIZE 50 enum Muki{ up,r,down,l }; int main() { int i,j,k; char s[20]; while(cin >> s) { if(strcmp(s,"Merry Christmas!") == 0) break; int a = atoi(s); if(a == 20151224) cout << "F" << endl; else { char c; if(a == 0) { switch(rand() % 2) { case 0 : c = 'L'; break; case 1 : c = 'R'; break; } } else { if(rand() % 5) c = 'F'; else { switch(rand() % 2) { case 0 : c = 'L'; break; case 1 : c = 'R'; break; } } } cout << c << endl; } } return 0; }