結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
fkwnw3_1243
|
| 提出日時 | 2017-04-27 21:42:56 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 5,000 ms |
| コード長 | 524 bytes |
| コンパイル時間 | 2,165 ms |
| コンパイル使用メモリ | 74,944 KB |
| 実行使用メモリ | 50,392 KB |
| 最終ジャッジ日時 | 2024-09-13 14:53:10 |
| 合計ジャッジ時間 | 3,224 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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