結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
cocomoff
|
| 提出日時 | 2019-09-19 23:13:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 351 bytes |
| コンパイル時間 | 1,496 ms |
| コンパイル使用メモリ | 159,336 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-21 07:45:57 |
| 合計ジャッジ時間 | 2,337 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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