結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
unyaunya
|
| 提出日時 | 2018-02-27 14:53:00 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 243 bytes |
| 記録 | |
| コンパイル時間 | 373 ms |
| コンパイル使用メモリ | 80,388 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-05-22 10:20:54 |
| 合計ジャッジ時間 | 1,148 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 4 WA * 2 |
ソースコード
#include <iostream>
#include <math.h>
using namespace std;
int main(){
int xp,yp,ans;
cin>>xp>>yp;
double r = sqrt(xp*xp+yp*yp);
if(r ==(double)(int)r) ans = ((int)r)*2+1;
else ans = ((int)r +1)*2;
cout << ans <<endl;
}
unyaunya