結果

問題 No.410 出会い
コンテスト
ユーザー Hachimori
提出日時 2016-08-12 22:23:18
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 322 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 170 ms
コンパイル使用メモリ 77,616 KB
最終ジャッジ日時 2025-12-03 21:09:37
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/usr/bin/env python
#coding:utf8

def read():
    x1, y1 = map(int, raw_input().split())
    x2, y2 = map(int, raw_input().split())
    return x1, y1, x2, y2


def work((x1, y1, x2, y2)):
    ans = 0
    ans += abs(x2 - x1) / 2.0
    ans += abs(y2 - y1) / 2.0
    print ans


if __name__ == "__main__":
    work(read())
0