結果
| 問題 | 
                            No.98 円を描こう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Kurichan0806
                         | 
                    
| 提出日時 | 2017-12-12 18:01:16 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 442 bytes | 
| コンパイル時間 | 738 ms | 
| コンパイル使用メモリ | 83,500 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-14 06:08:27 | 
| 合計ジャッジ時間 | 1,265 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 5 WA * 1 | 
ソースコード
#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.2;
	cout << fixed << setprecision(0) << kyori * 2 + 1<< endl;
	return 0;
}
            
            
            
        
            
Kurichan0806