Submission #1466887


Source Code Expand

Copy
#include <iostream>
#include <cstdio>
using namespace std;
long long k, k1, k2;
long long num[50];
int main() {
	cin >> k;
	k1 = k/50;
	k2 = k%50;
	for (int i = 0; i < 50; i++)	num[i] = 49+k1;
	for (int i = 0; i < k2; i++)	num[i] += (50-k2+1);
	for (int i = k2; i < 50; i++)	num[i] -= k2;
	cout << 50 << endl;
	for (int i = 0; i < 50; i++)	cout << num[i] << " ";
	return 0;
}

Submission Info

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

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