結果

問題 No.172 UFOを捕まえろ
ユーザー dnish
提出日時 2017-01-11 13:03:57
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 1,802 ms
コンパイル使用メモリ 165,424 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-21 08:34:24
合計ジャッジ時間 2,916 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
	int x,y,r,ans;
	double kyori;
	cin>>x>>y>>r;
	kyori=sqrt(x*x+y*y)+r;
	kyori*=sqrt(2);
	ans=ceil(kyori);
	cout<<ans<<endl;
}
0