結果
問題 |
No.2415 偶数判定!Nafmoくん
|
ユーザー |
|
提出日時 | 2024-03-03 13:52:46 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 412 bytes |
コンパイル時間 | 3,781 ms |
コンパイル使用メモリ | 74,492 KB |
実行使用メモリ | 56,648 KB |
最終ジャッジ日時 | 2024-09-29 16:50:06 |
合計ジャッジ時間 | 7,713 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 RE * 20 |
ソースコード
import java.util.Scanner; public class Hello { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s1 = scanner.next(); String s2 = scanner.next(); int a = Integer.parseInt(s1,2); int b = Integer.parseInt(s2,2); if( (a * b) % 2 == 0 ){ System.out.println("Even"); }else{ System.out.println("Odd"); } scanner.close(); } }