結果

問題 No.331 CodeRunnerでやれ
ユーザー rickythetarickytheta
提出日時 2015-12-24 01:19:26
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 551 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 24,432 KB
実行使用メモリ 91,824 KB
平均クエリ数 1406.88
最終ジャッジ日時 2023-09-23 08:29:33
合計ジャッジ時間 16,696 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 152 ms
23,784 KB
testcase_01 AC 157 ms
23,796 KB
testcase_02 TLE -
testcase_03 AC 187 ms
23,704 KB
testcase_04 AC 191 ms
24,276 KB
testcase_05 AC 395 ms
23,496 KB
testcase_06 AC 193 ms
23,868 KB
testcase_07 AC 1,424 ms
23,416 KB
testcase_08 AC 464 ms
8,136 KB
testcase_09 TLE -
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(){
  // わからん
  // ランダムに進める
  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("RRRRRFFFFFFFFFFFFF"[xorshift()%18]);
    }
    printf("\n");
    fflush(stdout);
  }
  return 0;
}
0