結果

問題 No.98 円を描こう
ユーザー ldsyb
提出日時 2016-03-01 13:26:17
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 481 ms
コンパイル使用メモリ 59,072 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-24 13:06:57
合計ジャッジ時間 982 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 3 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
using namespace std;

int main(){
   int xp,yp;
   cin >> xp >> yp;
   cout << int(sqrt(pow(abs(xp),2) + pow(abs(yp),2)) + 1) * 2 << endl;
}
0