結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
abc
|
| 提出日時 | 2016-11-03 02:05:36 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 55 ms / 5,000 ms |
| + 943µs | |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 1,425 ms |
| コンパイル使用メモリ | 85,604 KB |
| 実行使用メモリ | 45,332 KB |
| 最終ジャッジ日時 | 2026-09-29 14:23:29 |
| 合計ジャッジ時間 | 3,510 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
double radius = Math.sqrt((x * x) + (y * y));
int diameter = (int) Math.floor(2 * radius) + 1;
System.out.println(diameter);
}
}
abc