結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-18 19:57:53 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2026-04-09 16:08:34 |
| 合計ジャッジ時間 | 1,794 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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