結果

問題 No.208 王将
ユーザー mkawa2
提出日時 2020-01-06 23:25:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-23 00:21:53
合計ジャッジ時間 1,910 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10 ** 6)
def MI(): return map(int, sys.stdin.readline().split())

def main():
    x,y=MI()
    x2,y2=MI()
    ans=max(x,y)
    if (x==0 and y2<y) or (y==0 and x2<x) or (x==y and x2==y2 and x2<x):ans+=2
    print(ans)

main()
0