結果
問題 | No.98 円を描こう |
ユーザー |
|
提出日時 | 2018-01-07 21:17:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 173 bytes |
コンパイル時間 | 1,843 ms |
コンパイル使用メモリ | 165,516 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 10:13:04 |
合計ジャッジ時間 | 2,500 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { double x, y; cin >> x >> y; cout << ceil(2 * pow(x * x + y * y + 0.1, 0.5)) << endl; return 0; }