답안 #151743

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
151743 2019-09-04T13:42:01 Z hdj79 Turnir (COCI17_turnir) C++14
0 / 100
20 ms 2208 KB
#include<iostream>
#include<algorithm>
using namespace std;
int zbrojevi[10000000+5];
int main(){
    ios_base :: sync_with_stdio(false);
    cin.tie(NULL);
    int a,b;
    cin>>a>>b;
    for(int i=1;i<b+1;i++){
        for(int j=i+i;j<b+1;j+=i){
            zbrojevi[j]+=i;
        }
    }
    long long sol=0;
    for(int i=a;i<=b;i++){
        sol+=abs(i-zbrojevi[i]);
    }
    cout<<sol;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Incorrect 2 ms 376 KB Output isn't correct
3 Incorrect 2 ms 376 KB Output isn't correct
4 Incorrect 2 ms 380 KB Output isn't correct
5 Incorrect 2 ms 376 KB Output isn't correct
6 Incorrect 3 ms 376 KB Output isn't correct
7 Incorrect 3 ms 504 KB Output isn't correct
8 Incorrect 2 ms 376 KB Output isn't correct
9 Incorrect 20 ms 2208 KB Output isn't correct
10 Incorrect 13 ms 1528 KB Output isn't correct