結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
しらっ亭
|
| 提出日時 | 2015-10-13 17:16:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 231 bytes |
| コンパイル時間 | 452 ms |
| コンパイル使用メモリ | 59,644 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-21 07:31:56 |
| 合計ジャッジ時間 | 1,206 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 11 |
ソースコード
#include <iostream>
#include <cmath>
using namespace std;
int main(int argc, const char * argv[]) {
int x, y, r;
cin >> x >> y >> r;
int n = floor(r * sqrt(2)) + 1;
cout << abs(x + y) + n << endl;
return 0;
}
しらっ亭