結果

問題 No.98 円を描こう
ユーザー 👑 obakyan
提出日時 2019-03-19 23:27:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 307 bytes
コンパイル時間 675 ms
コンパイル使用メモリ 73,508 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-14 13:37:18
合計ジャッジ時間 1,277 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <deque>

int main()
{
    int x, y;
    std::cin >> x >> y;
    int a = (int)(2.0 * std::sqrt(x * x + y * y)) + 1;
    std::cout << a << std::endl;
    return 0;
}
0