結果

問題 No.98 円を描こう
ユーザー nak2yoshi
提出日時 2016-02-19 11:05:06
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 2,386 ms
コンパイル使用メモリ 156,124 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 02:56:15
合計ジャッジ時間 2,919 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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

void main()
{
    auto input = readln.split.to!(real[]);
    auto Xp = input[0], Yp = input[1];

    ((sqrt(Xp * Xp + Yp * Yp) * 2).floor + 1).writeln;
    
}
0