結果

問題 No.208 王将
ユーザー roiti46
提出日時 2015-05-15 22:31:18
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 145 bytes
コンパイル時間 600 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-06 04:05:10
合計ジャッジ時間 1,490 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y = map(int, raw_input().split())
x2, y2 = map(int, raw_input().split())

ans = max(abs(x), abs(y)) + (1 if x*x2 + y*y2 == 0 else 0)
print ans
0