結果

問題 No.2415 偶数判定!Nafmoくん
ユーザー shiroinoshiroino
提出日時 2024-03-03 14:51:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 3,671 ms
コンパイル使用メモリ 78,104 KB
実行使用メモリ 57,836 KB
最終ジャッジ日時 2024-03-03 14:51:39
合計ジャッジ時間 8,173 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
57,700 KB
testcase_01 AC 109 ms
56,676 KB
testcase_02 AC 118 ms
57,576 KB
testcase_03 AC 121 ms
57,704 KB
testcase_04 AC 121 ms
57,700 KB
testcase_05 AC 113 ms
56,676 KB
testcase_06 AC 122 ms
57,836 KB
testcase_07 AC 135 ms
57,548 KB
testcase_08 AC 109 ms
56,720 KB
testcase_09 AC 124 ms
57,804 KB
testcase_10 AC 120 ms
57,700 KB
testcase_11 AC 113 ms
56,668 KB
testcase_12 AC 121 ms
57,584 KB
testcase_13 AC 125 ms
57,720 KB
testcase_14 AC 122 ms
57,720 KB
testcase_15 AC 121 ms
57,816 KB
testcase_16 AC 132 ms
57,532 KB
testcase_17 AC 120 ms
57,704 KB
testcase_18 AC 111 ms
56,676 KB
testcase_19 AC 123 ms
57,824 KB
testcase_20 AC 123 ms
57,700 KB
testcase_21 AC 123 ms
57,724 KB
testcase_22 AC 122 ms
57,828 KB
testcase_23 AC 123 ms
57,708 KB
testcase_24 AC 123 ms
57,724 KB
testcase_25 AC 133 ms
57,816 KB
testcase_26 AC 124 ms
57,828 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)) && a.substring(a.length()-1).equals("1")){
			System.out.println("Odd");
		}else{
			System.out.println("Even");
		}
	
	    scanner.close();
       
	}
}
0