結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
cocomoff
|
| 提出日時 | 2019-09-19 23:13:38 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 351 bytes |
| 記録 | |
| コンパイル時間 | 1,160 ms |
| コンパイル使用メモリ | 176,928 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-04-03 03:54:41 |
| 合計ジャッジ時間 | 2,453 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 3 |
ソースコード
#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 = (int)(x + r * 0.707 + y + r * 0.707) + 1;
cout << ans << endl;
}
cocomoff