結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
hotpepsi
|
| 提出日時 | 2014-12-10 00:49:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 308 bytes |
| コンパイル時間 | 567 ms |
| コンパイル使用メモリ | 65,276 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-11 19:07:54 |
| 合計ジャッジ時間 | 896 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 5 WA * 1 |
ソースコード
#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 + 1);
cout << ceil(r * 2) << endl;
return 0;
}
hotpepsi