結果

問題 No.2415 偶数判定!Nafmoくん
ユーザー bluemeganebluemegane
提出日時 2023-08-19 07:22:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 786 ms
コンパイル使用メモリ 65,028 KB
実行使用メモリ 22,604 KB
最終ジャッジ日時 2023-08-19 07:22:58
合計ジャッジ時間 3,572 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
20,640 KB
testcase_01 AC 42 ms
20,540 KB
testcase_02 AC 42 ms
22,420 KB
testcase_03 AC 42 ms
20,496 KB
testcase_04 AC 42 ms
20,548 KB
testcase_05 AC 42 ms
22,596 KB
testcase_06 AC 43 ms
22,572 KB
testcase_07 AC 42 ms
20,540 KB
testcase_08 AC 42 ms
20,588 KB
testcase_09 AC 42 ms
20,452 KB
testcase_10 AC 43 ms
22,488 KB
testcase_11 AC 42 ms
22,540 KB
testcase_12 AC 43 ms
20,560 KB
testcase_13 AC 42 ms
20,556 KB
testcase_14 AC 43 ms
18,524 KB
testcase_15 AC 42 ms
22,548 KB
testcase_16 AC 44 ms
20,668 KB
testcase_17 AC 42 ms
20,604 KB
testcase_18 AC 44 ms
20,524 KB
testcase_19 AC 42 ms
20,524 KB
testcase_20 AC 43 ms
20,560 KB
testcase_21 AC 43 ms
22,604 KB
testcase_22 AC 41 ms
20,540 KB
testcase_23 AC 42 ms
20,540 KB
testcase_24 AC 42 ms
20,656 KB
testcase_25 AC 41 ms
20,556 KB
testcase_26 AC 42 ms
20,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        var a = Console.ReadLine().Trim();
        var b = Console.ReadLine().Trim();
        getAns(a, b);
    }
    static void getAns(string a, string b)
    {
        var aL = a.Length;
        var bL = b.Length;
        var c1 = a[aL - 1] == '0';
        var c2 = b[bL - 1] == '0';
        Console.WriteLine(c1 | c2 ? "Even" : "Odd");
    }
}
0