結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
aka_satana_ha
|
| 提出日時 | 2017-12-05 14:18:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 100 ms / 1,000 ms |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 395 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-05-22 16:39:01 |
| 合計ジャッジ時間 | 4,057 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
x,y=[int(i) for i in input().split()]
x2,y2=[int(i) for i in input().split()]
saitan = max(abs(x),abs(y))
if abs(x)==abs(y) and abs(x2)==abs(y2) and abs(x)>abs(x2):
print(saitan+1)
else:
print(saitan)
aka_satana_ha