結果

問題 No.331 CodeRunnerでやれ
ユーザー くれちーくれちー
提出日時 2017-07-28 00:38:52
言語 C#(csc)
(csc 3.9.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 942 bytes
コンパイル時間 2,263 ms
コンパイル使用メモリ 103,080 KB
実行使用メモリ 40,848 KB
平均クエリ数 11537.88
最終ジャッジ日時 2023-09-24 01:27:24
合計ジャッジ時間 18,807 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 204 ms
38,892 KB
testcase_01 AC 189 ms
38,888 KB
testcase_02 AC 330 ms
38,948 KB
testcase_03 AC 238 ms
38,884 KB
testcase_04 AC 280 ms
39,072 KB
testcase_05 AC 254 ms
40,224 KB
testcase_06 AC 295 ms
38,388 KB
testcase_07 AC 291 ms
39,080 KB
testcase_08 AC 386 ms
36,904 KB
testcase_09 AC 514 ms
38,544 KB
testcase_10 AC 288 ms
40,336 KB
testcase_11 AC 893 ms
40,792 KB
testcase_12 AC 2,442 ms
40,848 KB
testcase_13 AC 474 ms
38,352 KB
testcase_14 AC 898 ms
40,296 KB
testcase_15 AC 504 ms
38,524 KB
testcase_16 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Extentions;

static class Extentions
{
}

static class Program
{
    public static void Main()
    {
        var sw = new StreamWriter(OpenStandardOutput()) { NewLine = "\n" };
        sw.AutoFlush = true;
        SetOut(sw);
        Solve();
    }

    static void Solve()
    {
        var rand = new Random();
        string s;

        while ((s = ReadLine())[0] != 'M')
        {
            var n = int.Parse(s);
            if (n == 20151224)  WriteLine('F');
            else if (n == 0 || rand.Next() % 3 == 0)
            {
                if (rand.Next() % 2 == 0) WriteLine('L');
                else WriteLine('R');
            }
            else WriteLine('F');
        }
    }
}
0