답안 #472157

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
472157 2021-09-13T08:30:29 Z SaraMostafa Nadan (COCI18_nadan) C++14
10 / 50
1 ms 204 KB
#include <bits/stdc++.h>
#include<unordered_map>
using namespace std;
#define ll long long
#define endl "\n"
#define Sara ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
const long long mod=998244353;
const double PI=acos(-1);
int main()
{
    //freopen("input.in","r",stdin);
    Sara
    ll k,n;
    cin>>k>>n;
    ll d=k/n;
    ll inc=k%n;
    ll s=0;
    vector<ll>v(n);
    for(int i=0; i<n; i++)
    {
        inc+=s;
        ll x=d-s;
        v[i]=x;
        s++;

    }
    v[0]+=inc;
    for(auto i:v) cout<<i<<endl;
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Incorrect 1 ms 204 KB Output isn't correct
4 Correct 1 ms 204 KB Output is correct
5 Incorrect 1 ms 204 KB Output isn't correct
6 Incorrect 1 ms 204 KB Output isn't correct
7 Incorrect 1 ms 204 KB Output isn't correct
8 Correct 1 ms 204 KB Output is correct
9 Incorrect 0 ms 204 KB Output isn't correct
10 Incorrect 1 ms 204 KB Output isn't correct