結果

問題 No.2481 Shiritori
ユーザー 👑 kakel-sankakel-san
提出日時 2023-09-24 23:43:35
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 568 bytes
コンパイル時間 1,383 ms
コンパイル使用メモリ 61,532 KB
実行使用メモリ 25,924 KB
最終ジャッジ日時 2023-09-24 23:43:51
合計ジャッジ時間 5,412 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,788 KB
testcase_01 AC 59 ms
21,956 KB
testcase_02 AC 60 ms
21,760 KB
testcase_03 AC 60 ms
23,860 KB
testcase_04 AC 59 ms
21,816 KB
testcase_05 AC 59 ms
21,896 KB
testcase_06 AC 59 ms
21,856 KB
testcase_07 AC 59 ms
23,892 KB
testcase_08 WA -
testcase_09 AC 61 ms
21,868 KB
testcase_10 WA -
testcase_11 AC 59 ms
23,876 KB
testcase_12 AC 60 ms
22,012 KB
testcase_13 AC 59 ms
21,840 KB
testcase_14 AC 60 ms
19,708 KB
testcase_15 AC 60 ms
23,804 KB
testcase_16 AC 58 ms
19,812 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 59 ms
21,852 KB
testcase_25 WA -
testcase_26 AC 60 ms
23,836 KB
testcase_27 WA -
testcase_28 AC 60 ms
21,808 KB
testcase_29 AC 60 ms
21,752 KB
testcase_30 AC 60 ms
21,744 KB
testcase_31 AC 60 ms
23,740 KB
testcase_32 AC 60 ms
21,808 KB
testcase_33 AC 60 ms
21,808 KB
testcase_34 AC 60 ms
23,796 KB
testcase_35 AC 60 ms
21,876 KB
testcase_36 AC 60 ms
21,744 KB
testcase_37 AC 59 ms
21,736 KB
testcase_38 WA -
testcase_39 AC 60 ms
21,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
    static int NN => int.Parse(ReadLine());
    static long[] NList => ReadLine().Split().Select(long.Parse).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var c = NList;
        var (n, m) = (c[0], c[1]);
        WriteLine(Shiritori(n, m) ? "First" : "Second");
    }
    static bool Shiritori(long n, long m)
    {
        if (n <= 2 || m == 1) return true;
        return m % 2 == 1;
    }
}
0