結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
Yut176
|
| 提出日時 | 2016-09-05 17:16:22 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 461µs | |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 337 ms |
| コンパイル使用メモリ | 91,468 KB |
| 実行使用メモリ | 9,812 KB |
| 最終ジャッジ日時 | 2026-09-23 14:33:53 |
| 合計ジャッジ時間 | 1,546 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<stdlib.h>
#include<vector>
#include<string>
#include<sstream>
#include<math.h>
using namespace std;
int main(){
int x, y;
cin >> x >> y;
double ans = 0;
while( ans <= sqrt( x*x + y*y ) ){
ans+=0.5;
}
cout << 2*ans << endl;
return 0;
}
Yut176