結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
Tawara
|
| 提出日時 | 2015-05-16 00:44:04 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 1,000 ms |
| コード長 | 222 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-09 16:22:31 |
| 合計ジャッジ時間 | 1,173 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
x,y = map(int,raw_input().split(" "))
x2,y2 = map(int,raw_input().split(" "))
ax = abs(x)
ay = abs(y)
if (x-x2)*x2 > 0 and (y-y2)*y2 > 0 and ax == ay and abs(x2) == abs(y2):
print ax + 1
else:
print ax if ax > ay else ay
Tawara