/ SeriousOJ /

Record Detail

Compile Error

foo.cc:6:10: fatal error: trace.cpp: No such file or directory
    6 | #include "trace.cpp"
      |          ^~~~~~~~~~~
compilation terminated.

Code

#include <bits/stdc++.h>

using namespace std;

#ifndef ONLINE_JUDGE
#include "trace.cpp"
#else
#define dbg(...)
#endif

int32_t main() {
  cin.tie(0) -> sync_with_stdio(0);
  int n;
  cin >> n;
  int ans = 0;
  for (int i = 1; i * i <= n; i++) {
    if (i * i <= n) ans += 1;
    if (i * (i + 1) <= n) ans += 1;
  }
  cout << ans;
  return 0;
}

Information

Submit By
Type
Submission
Problem
P1191 A. Balanced Product
Contest
Brain Booster #10
Language
C++17 (G++ 13.2.0)
Submit At
2025-06-13 15:36:01
Judged At
2025-06-13 15:36:01
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes