結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
cande398
|
| 提出日時 | 2018-06-11 19:53:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 190 bytes |
| コンパイル時間 | 572 ms |
| コンパイル使用メモリ | 74,108 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 13:41:33 |
| 合計ジャッジ時間 | 1,617 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <complex>
#include <iostream>
#include <cmath>
using namespace std;
int main(void)
{
int x, y;
int r;
cin >> x >> y >> r;
cout << abs(x) + abs(y) + ceil(sqrt(2) * r) << endl;
}
cande398