結果

問題 No.208 王将
コンテスト
ユーザー TeraokaAkihiro
提出日時 2016-10-31 23:14:03
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 335 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 152 ms
コンパイル使用メモリ 77,476 KB
最終ジャッジ日時 2025-12-03 22:28:17
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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