結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
fkwnw3_1243
|
| 提出日時 | 2017-04-27 21:42:56 |
| 言語 | Java (openjdk 26.0.2.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 5,000 ms |
| + 632µs | |
| コード長 | 524 bytes |
| 記録 | |
| コンパイル時間 | 1,351 ms |
| コンパイル使用メモリ | 82,532 KB |
| 実行使用メモリ | 40,176 KB |
| 最終ジャッジ日時 | 2026-08-26 06:31:39 |
| 合計ジャッジ時間 | 2,820 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String[] inputs = reader.readLine().split(" ");
int x = Integer.parseInt(inputs[0]);
int y = Integer.parseInt(inputs[1]);
double distance = Math.sqrt(x * x + y * y);
System.out.println((int) (distance * 2) + 1);
}
}
fkwnw3_1243