結果

問題 No.105 arcの六角ボルト
ユーザー kaiyori_labkaiyori_lab
提出日時 2014-12-17 00:25:23
言語 D
(dmd 2.106.1)
結果
WA  
実行時間 -
コード長 432 bytes
コンパイル時間 4,268 ms
コンパイル使用メモリ 158,436 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-09-02 19:25:09
合計ジャッジ時間 2,904 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.array;
import std.math;

void main(){
  auto n = readln.chomp.to!int;
  //cos-1 1/a
  foreach(i; 0..n){
    readln;
    double[][] bolt;
    foreach(j; 0..6){
      bolt ~= readln.chomp.split(" ").map!(to!double).array;
    }
    auto maxX = bolt.map!(e => e[0]).reduce!max;
    writefln("%.15f", acos(maxX) * 180 / PI);
  }
}
0