結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-23 19:11:05 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 386 bytes |
| コンパイル時間 | 2,949 ms |
| コンパイル使用メモリ | 74,704 KB |
| 実行使用メモリ | 56,072 KB |
| 最終ジャッジ日時 | 2024-11-17 19:40:36 |
| 合計ジャッジ時間 | 6,515 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 21 |
ソースコード
import java.util.*;
public class Run {
final static double s = Math.sin(Math.PI/4) * 2;
public static void main (String arg[]) {
Scanner scan = new Scanner(System.in);
int x = Math.abs(scan.nextInt());
int y = Math.abs(scan.nextInt());
int r = scan.nextInt();
double m = Math.ceil(x + y + r * s);
System.out.println(m);
}
}