結果

問題 No.331 CodeRunnerでやれ
ユーザー naimonon77naimonon77
提出日時 2016-02-26 18:51:17
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 995 bytes
コンパイル時間 1,219 ms
コンパイル使用メモリ 144,216 KB
実行使用メモリ 91,272 KB
平均クエリ数 9296.94
最終ジャッジ日時 2023-09-23 23:13:56
合計ジャッジ時間 22,165 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
23,544 KB
testcase_01 AC 144 ms
23,532 KB
testcase_02 AC 328 ms
23,260 KB
testcase_03 AC 208 ms
23,224 KB
testcase_04 AC 237 ms
23,868 KB
testcase_05 AC 353 ms
24,252 KB
testcase_06 AC 173 ms
24,096 KB
testcase_07 AC 2,584 ms
23,412 KB
testcase_08 AC 327 ms
23,248 KB
testcase_09 AC 456 ms
23,428 KB
testcase_10 AC 402 ms
23,404 KB
testcase_11 AC 3,119 ms
23,412 KB
testcase_12 AC 1,703 ms
23,536 KB
testcase_13 AC 895 ms
23,208 KB
testcase_14 AC 692 ms
24,156 KB
testcase_15 AC 833 ms
23,260 KB
testcase_16 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0