結果

問題 No.2525 Great Move
ユーザー bluemeganebluemegane
提出日時 2023-11-03 22:39:07
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 507 bytes
コンパイル時間 7,607 ms
コンパイル使用メモリ 157,844 KB
実行使用メモリ 174,068 KB
最終ジャッジ日時 2023-11-03 22:39:18
合計ジャッジ時間 9,905 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
31,080 KB
testcase_01 AC 46 ms
31,080 KB
testcase_02 AC 46 ms
31,076 KB
testcase_03 AC 47 ms
31,076 KB
testcase_04 AC 48 ms
31,076 KB
testcase_05 AC 45 ms
28,776 KB
testcase_06 AC 44 ms
28,776 KB
testcase_07 AC 43 ms
28,788 KB
testcase_08 AC 44 ms
28,812 KB
testcase_09 AC 43 ms
28,776 KB
testcase_10 AC 45 ms
30,180 KB
testcase_11 AC 46 ms
29,324 KB
testcase_12 AC 44 ms
29,568 KB
testcase_13 AC 45 ms
30,260 KB
testcase_14 AC 46 ms
30,460 KB
testcase_15 AC 49 ms
30,436 KB
testcase_16 AC 51 ms
30,092 KB
testcase_17 AC 49 ms
29,036 KB
testcase_18 AC 47 ms
29,288 KB
testcase_19 AC 48 ms
29,416 KB
testcase_20 AC 47 ms
28,716 KB
testcase_21 AC 47 ms
28,716 KB
testcase_22 AC 53 ms
28,724 KB
testcase_23 AC 46 ms
28,716 KB
testcase_24 AC 44 ms
28,716 KB
testcase_25 AC 44 ms
28,716 KB
testcase_26 AC 45 ms
28,716 KB
testcase_27 AC 45 ms
28,716 KB
testcase_28 AC 45 ms
174,068 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (93 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

using static System.Math;
using System;

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var h = line[0];
        var s = line[1];
        getAns(h, s);
    }
    static void getAns(string h, string s)
    {
        var hL = h.Length;
        var sL = s.Length;
        var hh = h[hL - 1] - '0';
        var ss = s[sL - 1] - '0';
        var w = Abs(hh - ss);
        Console.WriteLine(w % 2 == 0 ? "Possible" : "Impossible");
    }
}
0