結果
問題 | No.172 UFOを捕まえろ |
ユーザー |
|
提出日時 | 2016-08-31 15:25:06 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 740 ms |
コンパイル使用メモリ | 114,880 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-12 04:00:40 |
合計ジャッジ時間 | 1,565 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
import std.algorithm, std.array, std.container, std.range; import std.numeric, std.math, std.bigint, std.bitmanip, std.random; import std.string, std.conv, std.stdio, std.typecons; void main() { auto rd = readln.split.map!(to!int); auto x = rd[0], y = rd[1], r = rd[2]; auto a = x.abs + y.abs; a += (((r.to!real ^^ 2 / 2).sqrt) * 2).to!int + 1; writeln(a); }