結果

問題 No.3108 Luke or Bishop
ユーザー otima
提出日時 2025-04-18 21:03:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-04-18 21:03:30
合計ジャッジ時間 1,853 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

g_x, g_y = map(int, input().split())

if (g_x * g_y == 0):
	if (g_x == 0 and g_y == 0):
		print(0)
	else:
		print(1)
	
else:
	if (g_x == g_y or g_x == -g_y):
		print(1)
	else:
		print(2)
0