結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
ルッツファン
|
| 提出日時 | 2015-11-28 01:54:09 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 5,000 ms |
| コード長 | 748 bytes |
| コンパイル時間 | 3,333 ms |
| コンパイル使用メモリ | 73,264 KB |
| 実行使用メモリ | 37,088 KB |
| 最終ジャッジ日時 | 2024-10-15 14:34:08 |
| 合計ジャッジ時間 | 4,834 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
package yukicoder;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class yukicoder06 {
public static void main(String[] args){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String tes = null;
try {
tes = br.readLine();
} catch (IOException e) {
// TODO 自動生成された catch ブロック
e.printStackTrace();
}
String[] tew = tes.split(" ");
long x1 = Long.parseLong(tew[0]);
long x2 = Long.parseLong(tew[1]);
long x3 = Long.parseLong(tew[2]);
x1 = Math.abs(x1);
x2 = Math.abs(x2);
x3 = Math.abs(x3);
System.out.println((long)(((x1+x2)+2d*x3*Math.sin(Math.toRadians(45d))+1)));
}
}
ルッツファン