結果

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

テストケース

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