結果

問題 No.331 CodeRunnerでやれ
ユーザー rickythetarickytheta
提出日時 2015-12-24 02:36:12
言語 C90
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 404 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 24,720 KB
実行使用メモリ 91,244 KB
平均クエリ数 6036.00
最終ジャッジ日時 2023-09-23 22:49:36
合計ジャッジ時間 17,567 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
23,808 KB
testcase_01 AC 149 ms
23,364 KB
testcase_02 AC 186 ms
23,956 KB
testcase_03 AC 189 ms
23,524 KB
testcase_04 AC 212 ms
24,324 KB
testcase_05 AC 174 ms
24,336 KB
testcase_06 AC 272 ms
24,000 KB
testcase_07 AC 822 ms
23,656 KB
testcase_08 AC 373 ms
23,848 KB
testcase_09 AC 553 ms
23,380 KB
testcase_10 AC 353 ms
23,428 KB
testcase_11 AC 955 ms
23,868 KB
testcase_12 AC 1,376 ms
23,548 KB
testcase_13 AC 1,252 ms
23,436 KB
testcase_14 AC 1,378 ms
23,652 KB
testcase_15 AC 1,163 ms
24,016 KB
testcase_16 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>

char s[100];

int main(){
  char list[6] = {'R','L','F','F','F','F'};
  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(list[rand()%2]);
    }else{
      putchar(list[rand()%6]);
    }
    putchar('\n');
    fflush(stdout);
  }
  return 0;
}
0