結果

問題 No.2525 Great Move
ユーザー mkawa2mkawa2
提出日時 2023-11-03 21:22:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 823 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 12,060 KB
実行使用メモリ 10,824 KB
最終ジャッジ日時 2023-11-03 21:23:00
合計ジャッジ時間 1,935 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 27 ms
10,192 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 26 ms
10,184 KB
testcase_21 AC 27 ms
10,184 KB
testcase_22 AC 27 ms
10,184 KB
testcase_23 AC 27 ms
10,184 KB
testcase_24 AC 38 ms
10,184 KB
testcase_25 AC 28 ms
10,184 KB
testcase_26 AC 28 ms
10,184 KB
testcase_27 AC 28 ms
10,184 KB
testcase_28 AC 29 ms
10,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

# sys.setrecursionlimit(1000005)
# sys.set_int_max_str_digits(200005)
int1 = lambda x: int(x)-1
pDB = lambda *x: print(*x, end="\n", file=sys.stderr)
p2D = lambda x: print(*x, sep="\n", end="\n\n", file=sys.stderr)
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def SI(): return sys.stdin.readline().rstrip()

# dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
# inf = -1-(-1 << 31)
inf = -1-(-1 << 63)
# md = 10**9+7
md = 998244353

h,s=LI()
print("Possible" if h&1==s&1 else "Impossible")
0