結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,720 KB
testcase_01 AC 118 ms
57,588 KB
testcase_02 WA -
testcase_03 AC 120 ms
57,828 KB
testcase_04 WA -
testcase_05 AC 120 ms
57,696 KB
testcase_06 WA -
testcase_07 AC 121 ms
57,700 KB
testcase_08 WA -
testcase_09 AC 119 ms
57,580 KB
testcase_10 AC 113 ms
56,680 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 121 ms
57,700 KB
testcase_14 AC 123 ms
57,704 KB
testcase_15 AC 123 ms
57,736 KB
testcase_16 AC 136 ms
57,712 KB
testcase_17 AC 122 ms
56,692 KB
testcase_18 AC 123 ms
57,820 KB
testcase_19 AC 111 ms
56,676 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 120 ms
57,700 KB
testcase_23 AC 122 ms
57,596 KB
testcase_24 AC 122 ms
57,704 KB
testcase_25 AC 153 ms
57,716 KB
testcase_26 AC 124 ms
57,716 KB
権限があれば一括ダウンロードができます

ソースコード

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).equals(b.substring(b.length()-1))){
			System.out.println("Odd");
		}else{
			System.out.println("Even");
		}
	
	    scanner.close();
       
	}
}
0