結果

問題 No.172 UFOを捕まえろ
ユーザー hamray
提出日時 2017-11-23 21:45:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 1,429 ms
コンパイル使用メモリ 159,032 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-27 05:58:38
合計ジャッジ時間 2,137 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
double intse[80];
int main(){  
    double x, y, r; cin >> x >> y >> r;
    double dis_U = sqrt(x * x + y * y) + r;
    for(int i=1; i<10000; i++){
        if(dis_U < i * pow(2.0, 1.0 / 2.0) / 2.0){
            cout << i << endl;
            break;
        }
    }
    return 0;
}
0