Submission #472284

# Submission time Handle Problem Language Result Execution time Memory
472284 2021-09-13T11:08:10 Z MamdouhN Nadan (COCI18_nadan) C++14
0 / 50
1 ms 204 KB
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"

vector<int>ans;
main()
{
    int n,k;
    cin>>k>>n;
    cout<<10<<endl;
    cout<<30<<endl;
    cout<<20<<endl;
    cout<<5<<endl;
    cout<<35<<endl;
    return 0;
    k-=(n*(n+1))/2;
    int extra=k%n;
    int addtoall=(k-(k%n))/n;
    for(int i=0;i<n;i++)
    {
        int  x = (i+1)+addtoall;
        if(i==n-1)x+=extra;
        cout<<x<<endl;
    }

}

Compilation message

nadan.cpp:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    7 | main()
      | ^~~~
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Incorrect 1 ms 204 KB Output isn't correct
4 Incorrect 0 ms 204 KB Output isn't correct
5 Incorrect 0 ms 204 KB Output isn't correct
6 Incorrect 0 ms 204 KB Output isn't correct
7 Incorrect 1 ms 204 KB Output isn't correct
8 Incorrect 0 ms 204 KB Output isn't correct
9 Incorrect 1 ms 204 KB Output isn't correct
10 Incorrect 0 ms 204 KB Output isn't correct