結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
Kurichan0806
|
| 提出日時 | 2017-12-12 18:02:30 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 445 bytes |
| コンパイル時間 | 752 ms |
| コンパイル使用メモリ | 83,412 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-14 06:08:58 |
| 合計ジャッジ時間 | 1,276 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 4 WA * 2 |
ソースコード
#define _USE_MATH_DEFINES
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <iomanip>
#include <functional>
#include <cmath>
#include <math.h>
using namespace std;
#define lli long long int
#define us(n) (n) > 0 ? n : (n) * -1
int main() {
int x, y;
double kyori;
cin >> x >> y;
kyori = sqrt(pow(us(x), 2) + pow(us(y), 2)) - 0.0001;
cout << fixed << setprecision(0) << kyori * 2 + 1<< endl;
return 0;
}
Kurichan0806