結果

問題 No.410 出会い
ユーザー kazu116
提出日時 2019-05-22 18:55:49
言語 Swift
(6.0.3)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 963 ms
コンパイル使用メモリ 129,748 KB
実行使用メモリ 9,216 KB
最終ジャッジ日時 2024-11-30 14:08:29
合計ジャッジ時間 1,858 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 14 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

let posP:[Int] = readLine()!.split(separator: " ").map{Int($0)!}
let posQ:[Int] = readLine()!.split(separator: " ").map{Int($0)!}
let distance = abs(posP[0] - posQ[0] + posP[1] - posQ[1])
let time:Double = Double(distance) / 2.0
print(time)
0