結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-27 21:43:32 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 196 bytes |
| 記録 | |
| コンパイル時間 | 870 ms |
| コンパイル使用メモリ | 177,564 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-20 02:00:00 |
| 合計ジャッジ時間 | 1,796 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 15 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y,r,ans;
double d;
cin >> x >> y >> r;
d=sqrt(x*x+y*y)+r;
cout << (int)sqrt(2*d*d)+1 << endl;
return 0;
}