結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-08 22:45:32 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 360 bytes |
| 記録 | |
| コンパイル時間 | 560 ms |
| コンパイル使用メモリ | 111,504 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-10 14:32:37 |
| 合計ジャッジ時間 | 1,735 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
#include <set>
#include <string>
#include <map>
#include <numeric>
#include <math.h>
using namespace std;
typedef long long int ll;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
double a,b,r; cin >> a >> b >> r;
int d=abs(a)+abs(b)+sqrt(2)*r;
cout << d+1 << endl;
}