結果

問題 No.2525 Great Move
ユーザー ks2mks2m
提出日時 2023-11-03 21:22:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 535 bytes
コンパイル時間 1,674 ms
コンパイル使用メモリ 74,364 KB
実行使用メモリ 57,288 KB
最終ジャッジ日時 2023-11-03 21:22:43
合計ジャッジ時間 4,621 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
57,172 KB
testcase_01 AC 95 ms
57,288 KB
testcase_02 AC 97 ms
57,148 KB
testcase_03 AC 97 ms
55,168 KB
testcase_04 AC 96 ms
56,920 KB
testcase_05 AC 46 ms
53,396 KB
testcase_06 AC 47 ms
53,388 KB
testcase_07 AC 47 ms
53,388 KB
testcase_08 AC 49 ms
53,332 KB
testcase_09 AC 46 ms
53,400 KB
testcase_10 AC 103 ms
55,068 KB
testcase_11 AC 67 ms
54,052 KB
testcase_12 AC 82 ms
54,796 KB
testcase_13 AC 87 ms
55,136 KB
testcase_14 AC 79 ms
55,356 KB
testcase_15 AC 87 ms
55,092 KB
testcase_16 AC 84 ms
55,400 KB
testcase_17 AC 52 ms
53,396 KB
testcase_18 AC 61 ms
53,992 KB
testcase_19 AC 64 ms
54,052 KB
testcase_20 AC 46 ms
53,400 KB
testcase_21 AC 45 ms
53,392 KB
testcase_22 AC 47 ms
53,392 KB
testcase_23 AC 45 ms
53,392 KB
testcase_24 AC 46 ms
53,400 KB
testcase_25 AC 46 ms
52,444 KB
testcase_26 AC 45 ms
53,404 KB
testcase_27 AC 45 ms
53,396 KB
testcase_28 AC 46 ms
53,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		String h = sa[0];
		String s = sa[1];
		br.close();

		int hi = h.charAt(h.length() - 1) - '0';
		int si = s.charAt(s.length() - 1) - '0';
		int d = hi + si;
		if (d % 2 == 0) {
			System.out.println("Possible");
		} else {
			System.out.println("Impossible");
		}
	}
}
0