結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2014-12-09 23:24:10 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 397µs | |
| コード長 | 306 bytes |
| 記録 | |
| コンパイル時間 | 388 ms |
| コンパイル使用メモリ | 95,720 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 16:36:58 |
| 合計ジャッジ時間 | 1,310 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
using namespace std;
int main(){
int x,y;
cin >> x >> y;
cout << ceil( sqrt(x*x + y*y) *2 + 1e-6) << endl;
return 0;
}
koyumeishi