結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
diginatu
|
| 提出日時 | 2014-12-09 23:25:54 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 277 bytes |
| コンパイル時間 | 725 ms |
| コンパイル使用メモリ | 103,576 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 01:47:19 |
| 合計ジャッジ時間 | 1,321 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 5 WA * 1 |
ソースコード
import std.stdio, std.conv, std.math, std.string, std.range, std.array,
std.algorithm;
void main(){
auto buf = readln().strip().split().map!(to!int)();
immutable X = buf[0];
immutable Y = buf[1];
writeln((sqrt(X^^2.to!float + Y^^2)*2 + 1).to!int);
}
diginatu