結果

問題 No.3108 Luke or Bishop
ユーザー urunea
提出日時 2025-04-21 08:09:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 82,384 KB
実行使用メモリ 53,404 KB
最終ジャッジ日時 2025-04-21 08:09:36
合計ジャッジ時間 2,755 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

Gx,Gy=(abs(int(x)) for x in input().split())
if Gx*Gy==0:
	if Gx==Gy==0:
		print(0)
	else:
		print(1)
elif Gx == Gy:
	print(1)
else:
	print(2)
0