結果
| 問題 |
No.105 arcの六角ボルト
|
| コンテスト | |
| ユーザー |
holeguma
|
| 提出日時 | 2015-08-19 22:52:44 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 912 bytes |
| コンパイル時間 | 2,148 ms |
| コンパイル使用メモリ | 78,104 KB |
| 実行使用メモリ | 57,304 KB |
| 最終ジャッジ日時 | 2024-07-18 10:39:56 |
| 合計ジャッジ時間 | 3,341 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st;
String line="";
double x=0.0;
double y=0.0;
double c=Math.cos(Math.toRadians(55.0));
double s=Math.sin(Math.toRadians(355.0));
int num=Integer.parseInt(br.readLine());
while(num-->0){
while((line=br.readLine())!=null){
if(line.isEmpty()) continue;
st=new StringTokenizer(line);
x=Double.parseDouble(st.nextToken());
y=Double.parseDouble(st.nextToken());
for(int i=1;i<6;i++){
st=new StringTokenizer(br.readLine());
if(x<=c||y<s){
x=Double.parseDouble(st.nextToken());
y=Double.parseDouble(st.nextToken());
}
}
}
out.printf("%.10f\r\n",Math.toDegrees(Math.acos(x)));
}
out.flush();
}
}
holeguma