結果

問題 No.331 CodeRunnerでやれ
ユーザー くれちー
提出日時 2017-07-28 00:40:22
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 1,372 ms / 5,000 ms
コード長 942 bytes
コンパイル時間 873 ms
コンパイル使用メモリ 110,296 KB
実行使用メモリ 43,328 KB
平均クエリ数 9270.24
最終ジャッジ日時 2024-07-17 01:21:52
合計ジャッジ時間 16,791 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

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() % 2 == 0)
            {
                if (rand.Next() % 2 == 0) WriteLine('L');
                else WriteLine('R');
            }
            else WriteLine('F');
        }
    }
}
0