結果

問題 No.331 CodeRunnerでやれ
ユーザー rickythetarickytheta
提出日時 2015-12-24 01:21:35
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 589 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 25,744 KB
実行使用メモリ 88,184 KB
平均クエリ数 3356.88
最終ジャッジ日時 2023-09-23 22:48:40
合計ジャッジ時間 11,692 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
24,192 KB
testcase_01 AC 140 ms
23,880 KB
testcase_02 AC 2,781 ms
23,236 KB
testcase_03 AC 216 ms
24,172 KB
testcase_04 AC 179 ms
24,204 KB
testcase_05 AC 278 ms
23,796 KB
testcase_06 AC 361 ms
23,856 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

char s[100];

long long xorshift(){
  static long long y = 2463534242;
  y = y^(y<<13);
  y %= 1ll<<32;
  y = y^(y>>17);
  y = y^(y<<5);
  y %= 1ll<<32;
  return y;
}

int main(){
  // WAだけ増やして本当にごめんなさい
  // ランダムに進める
  while(1){
    scanf("%s",s);
    if(s[0]=='M')break;
    if(s[3]=='5'){
      printf("F\n");
      fflush(stdout);
      continue;
    }
    if(s[0]=='0'){
      putchar('R');
    }else{
      putchar("RRRLLLRRFFFFFFFFFFFFF"[xorshift()%21]);
    }
    printf("\n");
    fflush(stdout);
  }
  return 0;
}
0