結果
問題 |
No.172 UFOを捕まえろ
|
ユーザー |
|
提出日時 | 2020-06-08 22:45:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 360 bytes |
コンパイル時間 | 1,097 ms |
コンパイル使用メモリ | 95,388 KB |
最終ジャッジ日時 | 2025-01-11 00:16:16 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }