結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
23,508 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

/* yukicoder My Practice
 * autoher: Leonarone  NEETSDKASU
 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>

typedef long long ll;
typedef unsigned long long ull;

void solve(void);
int main(void) { solve(); return 0; }


void solve(void) {
    char str[30] = {0};
    int t = 0;
    
    for (;;) {
        gets(str);
        if (str[0] == 'M') break;
        if (str[3] > 0) {
            puts("F");
        } else {
            switch (t) {
            case 0:
                if (str[0] == '0')  {
                    puts("R");
                } else {
                    puts("F");
                    t = 1;
                }
                break;
            case 1:
                puts("R");
                t = 2;
                break;
            case 2:
                if (str[0] == '0') {
                    puts("L");
                } else {
                    puts("F");
                }
                t = 0;
                break;
            }
        }
        fflush(stdout);
    }
}
0