結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-01-27 16:57:17 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 5,000 ms |
| コード長 | 426 bytes |
| コンパイル時間 | 3,014 ms |
| コンパイル使用メモリ | 160,768 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-06-12 06:39:55 |
| 合計ジャッジ時間 | 3,249 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string;
import std.math; // math functions
void main()
{
auto t = readln.chomp.to!size_t;
foreach (_; t.iota) {
readln;
auto xyi = 6.iota.map!(_ => readln.split.to!(real[]));
auto ai = xyi.map!(xy => atan2(xy[1], xy[0])).map!(a => a * M_1_PI * 180 + 180).array;
ai.sort();
auto r = ai.front;
writefln("%.7f", r >= 50 ? 0 : r);
}
}