結果

問題 No.105 arcの六角ボルト
ユーザー kaiyori_labkaiyori_lab
提出日時 2014-12-17 00:43:31
言語 D
(dmd 2.106.1)
結果
WA  
実行時間 -
コード長 430 bytes
コンパイル時間 2,120 ms
コンパイル使用メモリ 154,968 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-09-02 19:25:14
合計ジャッジ時間 2,286 ms
ジャッジサーバーID
(参考情報)
judge15 / 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;
  foreach(i; 0..n){
    readln;
    double[][] bolt;
    foreach(j; 0..6){ bolt ~= readln.chomp.split(" ").map!(to!double).array; }
    auto maxX = bolt.filter!(e=>e[1]>=0).map!(e => e[0]).reduce!max;
    "%.15f".format(acos(maxX) * 180 / PI).writeln;
  }
}
0