結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
cocomoff
|
| 提出日時 | 2019-09-19 23:15:33 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 465µs | |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 833 ms |
| コンパイル使用メモリ | 176,008 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-21 23:30:19 |
| 合計ジャッジ時間 | 3,272 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
double x, y, r;
cin >> x >> y >> r;
x = abs(x);
y = abs(y);
// double large = max(x, y);
// double small = min(x, y);
// int term = ceil(large + 0.5 * r);
int ans = ceil(x + y + 1.4142 * r);
cout << ans << endl;
}
cocomoff