結果

問題 No.331 CodeRunnerでやれ
ユーザー rickythetarickytheta
提出日時 2015-12-24 01:17:06
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 4,226 ms / 5,000 ms
コード長 578 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 25,748 KB
実行使用メモリ 24,228 KB
平均クエリ数 11308.00
最終ジャッジ日時 2023-09-23 22:47:43
合計ジャッジ時間 17,502 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 160 ms
23,388 KB
testcase_01 AC 146 ms
24,120 KB
testcase_02 AC 281 ms
23,860 KB
testcase_03 AC 236 ms
23,404 KB
testcase_04 AC 345 ms
23,220 KB
testcase_05 AC 256 ms
23,436 KB
testcase_06 AC 274 ms
24,228 KB
testcase_07 AC 1,483 ms
23,868 KB
testcase_08 AC 475 ms
23,668 KB
testcase_09 AC 794 ms
23,392 KB
testcase_10 AC 519 ms
23,548 KB
testcase_11 AC 4,226 ms
23,856 KB
testcase_12 AC 1,189 ms
23,868 KB
testcase_13 AC 1,391 ms
24,108 KB
testcase_14 AC 1,943 ms
23,280 KB
testcase_15 AC 423 ms
23,272 KB
testcase_16 AC 455 ms
23,656 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("RRRLL"[xorshift()%5]);
    }else{
      putchar("RRRRRLLLFFFFFFFFFF"[xorshift()%18]);
    }
    printf("\n");
    fflush(stdout);
  }
  return 0;
}
0