結果

問題 No.105 arcの六角ボルト
ユーザー te-shte-sh
提出日時 2017-01-27 16:57:17
言語 D
(dmd 2.106.1)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 426 bytes
コンパイル時間 3,094 ms
コンパイル使用メモリ 161,780 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-09-03 00:58:23
合計ジャッジ時間 3,567 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
  }
}
0