Submission #1471584


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;
#define inf 0x3f3f3f3f
#define PI acos(-1.0)

typedef long long ll;
const int maxn=1e5+5;

int main()
{
    ll k;
    scanf("%lld",&k);
    int n=50;
    cout << n << endl;
    ll res=k%50;
    ll x=k/50-1;
    ll cnt=res;
    for(ll i=1;i<=50;i++)
    {
        if(cnt>0)
        {
            printf("%lld ",i+50-res+1+x );
            cnt--;
        }
        else
            printf("%lld ",i-res+x);
    }
    cout << endl;
    return 0;
}

Submission Info

Submission Time
Task C - Cat Snuke and a Voyage
User unbelievable
Language C++14 (GCC 5.4.1)
Score 0
Code Size 521 Byte
Status WA
Exec Time 1 ms
Memory 256 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:12:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lld",&k);
                     ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
WA × 4
WA × 11
Set Name Test Cases
Sample example0, example1, example2, example3
All example0, example1, example2, example3, last0, last1, many0, many1, rand0, rand1, rand2
Case Name Status Exec Time Memory
example0 WA 1 ms 256 KB
example1 WA 1 ms 256 KB
example2 WA 1 ms 256 KB
example3 WA 1 ms 256 KB
last0 WA 1 ms 256 KB
last1 WA 1 ms 256 KB
many0 WA 1 ms 256 KB
many1 WA 1 ms 256 KB
rand0 WA 1 ms 256 KB
rand1 WA 1 ms 256 KB
rand2 WA 1 ms 256 KB