結果
問題 | No.2415 偶数判定!Nafmoくん |
ユーザー |
|
提出日時 | 2023-08-19 20:41:03 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 25 ms / 2,000 ms |
コード長 | 455 bytes |
コンパイル時間 | 996 ms |
コンパイル使用メモリ | 108,568 KB |
実行使用メモリ | 26,376 KB |
最終ジャッジ日時 | 2024-11-29 16:19:36 |
合計ジャッジ時間 | 2,433 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;using static System.Console;using System.Linq;using System.Collections.Generic;class Program{static int NN => int.Parse(ReadLine());static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();public static void Main(){Solve();}static void Solve(){var a = ReadLine();var b = ReadLine();WriteLine(a.Last() == '1' && b.Last() == '1' ? "Odd" : "Even");}}