結果

問題 No.98 円を描こう
ユーザー Yut176
提出日時 2016-09-05 17:16:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 325 bytes
コンパイル時間 633 ms
コンパイル使用メモリ 65,928 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-15 20:28:45
合計ジャッジ時間 1,219 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0