結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
57,556 KB
testcase_01 WA -
testcase_02 AC 120 ms
57,840 KB
testcase_03 WA -
testcase_04 AC 120 ms
57,696 KB
testcase_05 AC 122 ms
57,836 KB
testcase_06 AC 120 ms
57,720 KB
testcase_07 AC 111 ms
56,684 KB
testcase_08 AC 148 ms
57,836 KB
testcase_09 AC 123 ms
57,704 KB
testcase_10 WA -
testcase_11 AC 122 ms
57,832 KB
testcase_12 AC 121 ms
57,828 KB
testcase_13 AC 122 ms
57,824 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 121 ms
55,884 KB
testcase_17 AC 136 ms
57,608 KB
testcase_18 WA -
testcase_19 AC 120 ms
57,700 KB
testcase_20 AC 118 ms
57,696 KB
testcase_21 AC 131 ms
57,820 KB
testcase_22 AC 120 ms
57,700 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