結果

問題 No.172 UFOを捕まえろ
ユーザー te-sh
提出日時 2017-02-07 15:27:30
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 919 ms
コンパイル使用メモリ 103,164 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 06:56:38
合計ジャッジ時間 1,851 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.algorithm, std.conv, std.range, std.stdio, std.string;
import std.math;      // math functions

void main()
{
  auto rd = readln.split.to!(int[]), x = rd[0], y = rd[1], r = rd[2];
  auto a = (r.to!real / SQRT2 * 2).ceil.to!int;
  writeln(x.abs + y.abs + a);
}
0