結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-27 21:43:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 196 bytes |
| コンパイル時間 | 3,845 ms |
| コンパイル使用メモリ | 158,236 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 07:22:11 |
| 合計ジャッジ時間 | 2,377 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}