結果
問題 | No.2239 Friday |
ユーザー | Asahi |
提出日時 | 2023-03-10 21:25:35 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 6,021 ms |
コンパイル使用メモリ | 74,252 KB |
実行使用メモリ | 57,600 KB |
最終ジャッジ日時 | 2023-10-18 07:04:20 |
合計ジャッジ時間 | 5,859 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 133 ms
57,236 KB |
testcase_01 | AC | 138 ms
57,600 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 132 ms
57,256 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 132 ms
57,476 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 133 ms
57,352 KB |
testcase_13 | AC | 133 ms
57,172 KB |
testcase_14 | WA | - |
testcase_15 | AC | 134 ms
57,372 KB |
testcase_16 | AC | 132 ms
57,288 KB |
testcase_17 | WA | - |
testcase_18 | AC | 132 ms
57,284 KB |
testcase_19 | WA | - |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int diff = Math.abs(a - b); if (diff % 2 == 0) { System.out.println(0); } else { System.out.println(1); } } }