Submission #1465933


Source Code Expand

Copy
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <functional>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <cstring>
#include <cmath>
#include <cstdio>
#include <cassert>
#include <cinttypes>

#define fi first
#define se second

using namespace std;

typedef int64_t ll;
typedef uint64_t ull;

const int INF = 1e18 + 10;


ull K;

int main() {
  cin >> K;

  int j = 1;

  while (50ULL * K / j > 1e16 + 1000) {
    j++;
  }

  cout << 50 << endl;
  for (int i = 0; i < 50 - j; i++) {
    cout << "0 ";
  }

  for (int i = 0; i < j; i++) {
    cout << 50ULL * K / j << " \n"[i == j - 1];
  }



  return 0;
}

Submission Info

Submission Time
Task D - Decrease (Contestant ver.)
User nyashiki
Language C++14 (GCC 5.4.1)
Score 0
Code Size 741 Byte
Status WA
Exec Time 1 ms
Memory 256 KB

Compile Error

./Main.cpp:25:24: warning: overflow in implicit constant conversion [-Woverflow]
 const int INF = 1e18 + 10;
                        ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 600
Status
AC × 4
WA × 1
AC × 9
WA × 16
Set Name Test Cases
Sample example0, example1, example2, example3, example4
All corner0, corner1, corner2, corner3, corner4, corner5, corner6, corner7, corner8, corner9, example0, example1, example2, example3, example4, rand0, rand1, rand2, rand3, rand4, rand5, rand6, rand7, rand8, rand9
Case Name Status Exec Time Memory
corner0 AC 1 ms 256 KB
corner1 WA 1 ms 256 KB
corner2 AC 1 ms 256 KB
corner3 WA 1 ms 256 KB
corner4 AC 1 ms 256 KB
corner5 WA 1 ms 256 KB
corner6 AC 1 ms 256 KB
corner7 WA 1 ms 256 KB
corner8 AC 1 ms 256 KB
corner9 WA 1 ms 256 KB
example0 AC 1 ms 256 KB
example1 AC 1 ms 256 KB
example2 AC 1 ms 256 KB
example3 AC 1 ms 256 KB
example4 WA 1 ms 256 KB
rand0 WA 1 ms 256 KB
rand1 WA 1 ms 256 KB
rand2 WA 1 ms 256 KB
rand3 WA 1 ms 256 KB
rand4 WA 1 ms 256 KB
rand5 WA 1 ms 256 KB
rand6 WA 1 ms 256 KB
rand7 WA 1 ms 256 KB
rand8 WA 1 ms 256 KB
rand9 WA 1 ms 256 KB