結果
問題 | No.98 円を描こう |
ユーザー |
![]() |
提出日時 | 2015-06-11 20:17:07 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 521 ms |
コンパイル使用メモリ | 71,884 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-06 15:43:44 |
合計ジャッジ時間 | 1,008 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
#include <iostream>#include <algorithm>#include <vector>#include <string>#include <cmath>#include <iomanip>using namespace std;typedef long long LL;int main(){int x, y;cin >> x >> y;int r = (int)(sqrt(x*x + y*y));while(r*r <= (x*x + y*y)*4) r++;cout << r << endl;return 0;}