結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2020-05-27 11:44:03 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 317 bytes |
| コンパイル時間 | 1,728 ms |
| コンパイル使用メモリ | 167,288 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-13 03:37:19 |
| 合計ジャッジ時間 | 2,216 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int x, y, r;
cin >> x >> y >> r;
double d = sqrt( abs( x ) * abs( x ) + abs( y ) * abs( y ) ) + r;
int ans = 1;
while( true ) {
double d1 = ans;
d1 /= 2;
d1 = sqrt( d1 * d1 + d1 * d1 );
if( d1 > d ) break;
ans++;
}
cout << ans << endl;
}
forest3