結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-13 17:59:40 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 981 ms |
| コンパイル使用メモリ | 179,652 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-16 13:31:43 |
| 合計ジャッジ時間 | 1,955 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int Root2( const int iR )
{
int i;
int iSq;
iSq = 2 * iR * iR;
i = (int) sqrt( (double) iSq );
if( i * i < iSq ) i++;
if( i * i < iSq ) i++;
return i;
}
int main()
{
int x;
int y;
int r;
cin >> x;
cin >> y;
cin >> r;
cout << abs( x ) + abs( y ) + Root2( r ) << endl;
return 0;
}