結果

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

ソースコード

diff #

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