結果
問題 |
No.98 円を描こう
|
ユーザー |
![]() |
提出日時 | 2014-12-10 00:50:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 542 ms |
コンパイル使用メモリ | 65,836 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 19:07:56 |
合計ジャッジ時間 | 887 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
#include <iostream> #include <algorithm> #include <sstream> #include <cmath> using namespace std; int main(int argc, char *argv[]) { double x, y; string s; getline(cin, s); stringstream ss(s); ss >> x >> y; double r = sqrt(x*x + y*y); cout << ceil(r * 2 + 1.0e-9) << endl; return 0; }