結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-18 19:57:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 358 bytes |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 82,036 KB |
| 実行使用メモリ | 53,768 KB |
| 最終ジャッジ日時 | 2024-09-21 09:15:59 |
| 合計ジャッジ時間 | 2,122 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 2 |
ソースコード
x,y = map(int,input().split())
z,w = map(int,input().split())
ans = max(x,y)
if x == 0 and z == 0 and abs(y) > abs(w) and y*w > 0:
ans += 1
if y == 0 and w == 0 and abs(x) > abs(z) and x*z > 0:
ans += 1
if x == y and z == w and abs(x) > abs(z) and x*z > 0:
ans += 1
if x == -y and z == -w and abs(x) > abs(z) and x*z > 0:
ans += 1
print(ans)
convexineq