結果

問題 No.331 CodeRunnerでやれ
ユーザー rickythetarickytheta
提出日時 2015-12-24 01:15:40
言語 C90
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 552 bytes
コンパイル時間 432 ms
コンパイル使用メモリ 24,800 KB
実行使用メモリ 23,880 KB
平均クエリ数 11155.53
最終ジャッジ日時 2023-09-23 22:48:05
合計ジャッジ時間 20,832 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 148 ms
23,640 KB
testcase_01 AC 129 ms
23,880 KB
testcase_02 AC 169 ms
23,236 KB
testcase_03 AC 249 ms
23,500 KB
testcase_04 AC 206 ms
23,496 KB
testcase_05 AC 226 ms
23,220 KB
testcase_06 AC 343 ms
23,640 KB
testcase_07 AC 860 ms
23,620 KB
testcase_08 AC 403 ms
23,512 KB
testcase_09 AC 975 ms
23,668 KB
testcase_10 AC 396 ms
23,860 KB
testcase_11 AC 1,930 ms
23,392 KB
testcase_12 AC 1,090 ms
23,388 KB
testcase_13 TLE -
testcase_14 AC 1,311 ms
23,820 KB
testcase_15 AC 806 ms
23,860 KB
testcase_16 AC 4,324 ms
23,268 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("RLFFF"[xorshift()%5]);
    }
    printf("\n");
    fflush(stdout);
  }
  return 0;
}
0