結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
24,012 KB
testcase_01 AC 156 ms
24,324 KB
testcase_02 AC 270 ms
24,064 KB
testcase_03 AC 245 ms
23,368 KB
testcase_04 AC 304 ms
24,012 KB
testcase_05 AC 229 ms
23,664 KB
testcase_06 AC 401 ms
23,988 KB
testcase_07 AC 376 ms
23,772 KB
testcase_08 AC 229 ms
24,316 KB
testcase_09 AC 1,411 ms
23,620 KB
testcase_10 AC 202 ms
23,992 KB
testcase_11 TLE -
testcase_12 AC 2,887 ms
23,656 KB
testcase_13 AC 1,403 ms
23,376 KB
testcase_14 AC 2,839 ms
23,592 KB
testcase_15 AC 1,027 ms
24,376 KB
testcase_16 AC 4,886 ms
24,292 KB
権限があれば一括ダウンロードができます

ソースコード

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(){
  // これはひどい
  // ランダムに進める
  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("RL"[xorshift()%2]);
    }else{
      putchar("RRRLLLRRFFFFFFFFFFFFF"[xorshift()%21]);
    }
    printf("\n");
    fflush(stdout);
  }
  return 0;
}
0