結果
問題 |
No.3108 Luke or Bishop
|
ユーザー |
|
提出日時 | 2025-04-18 22:04:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 434 bytes |
コンパイル時間 | 497 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 10,240 KB |
最終ジャッジ日時 | 2025-04-18 22:04:58 |
合計ジャッジ時間 | 1,891 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
data = input() data = data.split(" ") x = int(data[0]) y = int(data[1]) def judge(x, y): # 共通 if (x == 0 and y == 0): tesuu = 0 return tesuu #ルーク if (x == 0 or y == 0): tesuu = 1; return tesuu; # ビショップ if (abs(x) == abs(y)): tesuu = 1 return tesuu else: tesuu = 2 return tesuu print(judge(x, y))