結果

問題 No.98 円を描こう
ユーザー alpha_virginis
提出日時 2015-05-24 15:05:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 241 bytes
コンパイル時間 1,803 ms
コンパイル使用メモリ 158,708 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-06 06:46:38
合計ジャッジ時間 1,561 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

inline long nextInt(void) {
  long temp;
  std::cin >> temp;
  return temp;
}

int main() {

  int x, y;

  std::cin >> x >> y;
  
  std::cout << 1 + (int)(2 * sqrt( x * x + y * y )) << std::endl;
  
  return 0;
}

0