結果
問題 | No.172 UFOを捕まえろ |
ユーザー |
![]() |
提出日時 | 2016-02-23 00:02:40 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 2,630 ms |
コンパイル使用メモリ | 154,220 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 03:00:11 |
合計ジャッジ時間 | 3,542 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
import std.stdio, std.conv, std.string, std.range, std.math, std.algorithm; void main() { auto input = readln.split.to!(real[]); auto x = input[0], y = input[1], r = input[2]; (abs(x) + abs(y) + sqrt(2.0) * r).ceil.writeln; }