結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-04-25 12:28:32 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 282 bytes |
| コンパイル時間 | 2,169 ms |
| コンパイル使用メモリ | 74,572 KB |
| 実行使用メモリ | 54,344 KB |
| 最終ジャッジ日時 | 2024-09-13 08:41:52 |
| 合計ジャッジ時間 | 4,215 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 3 WA * 3 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println((int)Math.sqrt(Math.pow(Integer.parseInt(sc.next()), 2) + Math.pow(Integer.parseInt(sc.next()), 2)) * 2 + 1);
}
}