結果
問題 | No.98 円を描こう |
ユーザー |
![]() |
提出日時 | 2019-09-11 16:33:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 260 bytes |
コンパイル時間 | 1,496 ms |
コンパイル使用メモリ | 167,316 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-02 16:47:38 |
合計ジャッジ時間 | 2,196 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 5 WA * 1 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){int x, y;float ans;cin >> x >> y;ans = sqrt((x*x) + (y*y));if (ceil(ans) != ans) {cout << ceil(ans)*2 << endl;} else cout << ceil(ans)*2+1 << endl;return 0;}