結果

問題 No.105 arcの六角ボルト
ユーザー kaiyori_labkaiyori_lab
提出日時 2014-12-17 00:34:23
言語 D
(dmd 2.106.1)
結果
WA  
実行時間 -
コード長 461 bytes
コンパイル時間 1,893 ms
コンパイル使用メモリ 154,316 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-09-02 19:25:12
合計ジャッジ時間 2,292 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;
  string[] res;
  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;
    res ~= "%.15f".format(acos(maxX) * 180 / PI);
  }
  foreach(ans; res){ans.writeln;}
}
0