結果

問題 No.208 王将
ユーザー TeraokaAkihiro
提出日時 2016-10-31 23:14:03
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 335 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-25 00:35:45
合計ジャッジ時間 1,255 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#208.py
tx,ty = input().split()
hx,hy = input().split()
tx,ty = int(tx),int(ty)
hx,hy = int(hx),int(hy)
x,y = 0,0
lx,ly = -1,-1
c = 0


lx = tx-x
ly = ty-y
if(lx == ly):
    if(hx-hy == 0):
        if(hx>tx):
            c=tx
        else:
            c=tx+1
    else:
        c=tx
if(lx < ly):
    c=ly
if(lx > ly):
    c=lx
print(c)
0