結果
| 問題 | 
                            No.98 円を描こう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-10-03 17:31:08 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 134 ms / 5,000 ms | 
| コード長 | 273 bytes | 
| コンパイル時間 | 2,009 ms | 
| コンパイル使用メモリ | 74,268 KB | 
| 実行使用メモリ | 54,312 KB | 
| 最終ジャッジ日時 | 2024-10-12 10:25:07 | 
| 合計ジャッジ時間 | 4,147 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 6 | 
ソースコード
import java.util.Scanner;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt(), y = sc.nextInt();
        sc.close();
        System.out.print((int)(Math.hypot(x, y) * 2 + 1));
    }
}