# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
86448 | MaHaMBa_25 | Savrsen (COCI17_savrsen) | C++14 | 3057 ms | 508 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define GLHF ios_base::sync_with_stdio(0); cin.tie(), cout.tie();
#define GGWP return 0;
#define ALTF4 exit(0)
#define GCWS/*Good Contest, Well Solved*/ ALTF4
#define ull unsigned long long
#define ll long long
#define ld long double
#define fxr1(x) for(int I = 0; I < x; ++I)
#define fxr(x) for(int I = 0; I <= x; ++I)
#define F first
#define S second
using namespace std;
ll a, b, ans;
int main()
{
GLHF
cin >> a >> b;
for ( int I = a; I <= b; ++I )
{
int cnt = I;
for ( int J = 2; J <= I; ++J )
if ( I % J == 0 )
cnt -= I/J;
ans += abs(cnt);
}
cout << ans << endl;
GGWP
}
//clang++ -v -std=c++11 finish fishing the fish.people
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |