結果

問題 No.98 円を描こう
ユーザー koyopro
提出日時 2015-10-02 10:41:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 227 bytes
コンパイル時間 1,190 ms
コンパイル使用メモリ 158,364 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 19:03:46
合計ジャッジ時間 1,714 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;

#define REP(i, n) for(int i=0; i<(n); i++)

int X,Y;
signed main()
{
    cin >> X>>Y;
    int l = (int)(2 * sqrt(pow(X,2) + pow(Y, 2)) + 1);
    cout << l << endl;
    return 0;
}
0