結果

問題 No.98 円を描こう
ユーザー kekenx
提出日時 2020-04-02 15:51:21
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 1,785 ms
コンパイル使用メモリ 164,908 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 15:05:35
合計ジャッジ時間 2,009 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 3 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
  double x, y;
  cin >> x >> y;
  ll r = sqrt(x * x + y * y);
  ll ans = 2 * r + 1;
  cout << ans << '\n';
  return 0;
}
0