結果

問題 No.863 計算量
ユーザー 37zigen37zigen
提出日時 2019-08-16 22:08:58
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 476 bytes
コンパイル時間 3,332 ms
コンパイル使用メモリ 63,480 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-23 23:49:18
合計ジャッジ時間 2,288 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main() {
  long long A, B, N1 = 5000, N2 = 200000;
  std::cin >> A >> B;
  double l1, r1, l2, r2;

  l1 = 1. * A / N1;
  l2 = 1. * B / N2;
  r1 = l1 + 1./ N1;
  r2 = l2 + 1./ N2;
  std::cout << l1 << std::endl;
  std::cout << r1 << std::endl;
  std::cout << l2 << std::endl;
  std::cout << r2 << std::endl;
  
  if ((l1 <= l2 && l2 <= r1) || (l1 <= r2 && r2 <= r1)) {
    std::cout << 1 << std::endl;
  } else {
    std::cout << 2 << std::endl;
  }
}
0