結果

問題 No.2415 偶数判定!Nafmoくん
ユーザー shiroinoshiroino
提出日時 2024-03-03 14:12:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 3,468 ms
コンパイル使用メモリ 74,400 KB
実行使用メモリ 57,976 KB
最終ジャッジ日時 2024-03-03 14:12:20
合計ジャッジ時間 7,932 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,588 KB
testcase_01 WA -
testcase_02 AC 121 ms
57,828 KB
testcase_03 WA -
testcase_04 AC 121 ms
57,464 KB
testcase_05 AC 124 ms
57,816 KB
testcase_06 AC 119 ms
57,828 KB
testcase_07 AC 121 ms
57,700 KB
testcase_08 AC 120 ms
54,708 KB
testcase_09 AC 129 ms
57,840 KB
testcase_10 WA -
testcase_11 AC 119 ms
57,848 KB
testcase_12 AC 120 ms
57,708 KB
testcase_13 AC 120 ms
57,832 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 122 ms
57,700 KB
testcase_17 AC 110 ms
56,680 KB
testcase_18 WA -
testcase_19 AC 123 ms
57,572 KB
testcase_20 AC 124 ms
57,696 KB
testcase_21 AC 118 ms
57,828 KB
testcase_22 AC 125 ms
57,824 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Hello {
	public static void main(String[] args) {
		
		Scanner scanner = new Scanner(System.in);
		String a = scanner.next();
		String b = scanner.next();
        
		if(( a.substring(a.length()-1) == "1" ) && ( b.substring(b.length()-1) == "1" )){
			System.out.println("Odd");
		}else{
			System.out.println("Even");
		}
	
	    scanner.close();
       
	}
}
0