結果

問題 No.98 円を描こう
ユーザー re1ns
提出日時 2015-11-06 21:21:20
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 1,100 ms
コンパイル使用メモリ 60,648 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 13:10:27
合計ジャッジ時間 1,425 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 4 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
    double x,y;
    double ans;
    cin >> x >> y;
    ans = sqrt(pow(x,2)+pow(y,2))*2;
    cout << ceil(ans+0.5) << endl;
}
0