結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
57,844 KB
testcase_01 WA -
testcase_02 AC 123 ms
57,600 KB
testcase_03 WA -
testcase_04 AC 125 ms
57,848 KB
testcase_05 AC 125 ms
57,848 KB
testcase_06 AC 123 ms
57,712 KB
testcase_07 AC 129 ms
57,700 KB
testcase_08 AC 129 ms
57,848 KB
testcase_09 AC 127 ms
57,704 KB
testcase_10 WA -
testcase_11 AC 126 ms
57,848 KB
testcase_12 AC 127 ms
57,828 KB
testcase_13 AC 126 ms
57,700 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 128 ms
57,564 KB
testcase_17 AC 124 ms
57,840 KB
testcase_18 WA -
testcase_19 AC 127 ms
57,836 KB
testcase_20 AC 111 ms
56,700 KB
testcase_21 AC 123 ms
57,832 KB
testcase_22 AC 126 ms
57,572 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" ) && ( b.substring(b.length()) == "1" )){
			System.out.println("Odd");
		}else{
			System.out.println("Even");
		}
	
	    scanner.close();
       
	}
}
0