結果

問題 No.208 王将
ユーザー Watson
提出日時 2017-08-22 14:55:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-15 04:21:37
合計ジャッジ時間 1,602 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y = [int(i) for i in input().split()]
x2,y2 = [int(i) for i in input().split()]
if x2 == y2:
    if abs(x) > abs(x2) and x == y:
        print(x+1)
elif x > y:
    print(x)
else:
    print(y)
0