結果

問題 No.105 arcの六角ボルト
ユーザー holegumaholeguma
提出日時 2015-08-19 23:11:41
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 548 bytes
コンパイル時間 2,090 ms
コンパイル使用メモリ 71,828 KB
実行使用メモリ 64,872 KB
最終ジャッジ日時 2023-09-25 13:35:12
合計ジャッジ時間 5,551 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import java.io.*;
import java.util.Scanner;
    
class Main{

static final InputStream in=System.in;
static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE;

public static void main(String[] args){
Scanner sc=new Scanner(in);
String line="";
double x=0.0;
double y=0.0;
double rx=0.0;
double ry=0.0;
int num=sc.nextInt();
while(num-->0){
for(int i=0;i<6;i++){
x=sc.nextDouble();
y=sc.nextDouble();
if(x>=0&&y>=0&&x>rx) rx=x; ry=y;
}
out.printf("%.10f\r\n",Math.toDegrees(Math.acos(rx)));
}
out.flush();
}
}
0