답안 #1099627

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1099627 2024-10-11T20:35:12 Z Petrix Spiderman (COCI20_spiderman) C++17
0 / 70
151 ms 26960 KB
#include <iostream>
using namespace std;

#define int long long

int v[2000001];
int ciur[2000001];
int frv[2000001];

signed main()
{
    int n,i,j,k;
    cin>>n>>k;
    for(i=1;i<=n;i++){
        cin>>v[i];
        frv[v[i]]++;
    }
    for(i=1;i<=2e6;i++){
        if(frv[i]){
            for(j=0;j<=2e6;j+=i){
                ciur[j+k]+=frv[i];
            }
        }
    }
    for(i=1;i<=n;i++){
        cout<<ciur[v[i]]<<" ";
    }
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 30 ms 19036 KB Output isn't correct
2 Incorrect 25 ms 17756 KB Output isn't correct
3 Incorrect 51 ms 20304 KB Output isn't correct
4 Incorrect 93 ms 22332 KB Output isn't correct
5 Incorrect 77 ms 25168 KB Output isn't correct
6 Incorrect 151 ms 26960 KB Output isn't correct
7 Incorrect 77 ms 24912 KB Output isn't correct
8 Incorrect 83 ms 24948 KB Output isn't correct
9 Incorrect 137 ms 26960 KB Output isn't correct
10 Incorrect 137 ms 26960 KB Output isn't correct