Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin >> N;
long long ans = 0;
for (int d = 1; d <= N; d++) {
int val = N / d - 1;
if (val > 0) ans += val;
}
cout << ans << "\n";
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1206 D1. GCD equal Absolute Value (Easy Version)
- Contest
- Educational Round 1
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2025-07-14 16:11:25
- Judged At
- 2025-07-14 16:11:25
- Judged By
- Score
- 0
- Total Time
- 2ms
- Peak Memory
- 536.0 KiB