結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
koyopro
|
| 提出日時 | 2015-09-20 11:00:23 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 1,000 ms |
| コード長 | 256 bytes |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2024-10-09 16:27:20 |
| 合計ジャッジ時間 | 1,112 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
# -*- coding: utf-8 -*-
gx, gy = map(int, raw_input().split())
jx, jy = map(int, raw_input().split())
naname = min(abs(gx), abs(gy))
shortest = max(abs(gx), abs(gy))
if gx == gy and jx == jy and gx > jx:
print shortest + 1
else:
print shortest
koyopro