Submission #19560301


Source Code Expand

Copy
#include<bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define fi first
#define se second
#define pb push_back
#define all(x) begin(x), end(x)
#define pii pair<int,int>
#define pll pair<ll,ll>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;

template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) { a = b; return true; }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) { a = b; return true; }
    return false;
}
int dx[] = {1,0,-1,0,1,1,-1,-1}, dy[] = {0,1,0,-1,1,-1,1,-1};
const ll mod=1000000007;

int main(){
    ios::sync_with_stdio(false); cin.tie(0);
    int k, x;
    cin >> k >> x;
    for(int i = max(x-k+1, -1000000);i <= min(1000000, x+k-1); ++i){
        cout << i << (i == min(1000000, x+k-1) ? '\n': ' ');
    }
    return 0;
}

Submission Info

Submission Time
Task B - One Clue
User oucyz
Language C++ (GCC 9.2.1)
Score 200
Code Size 943 Byte
Status AC
Exec Time 6 ms
Memory 3664 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 13
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13
Case Name Status Exec Time Memory
a01 AC 6 ms 3544 KB
a02 AC 2 ms 3508 KB
a03 AC 2 ms 3576 KB
b04 AC 2 ms 3592 KB
b05 AC 2 ms 3572 KB
b06 AC 2 ms 3548 KB
b07 AC 2 ms 3468 KB
b08 AC 2 ms 3448 KB
b09 AC 2 ms 3572 KB
b10 AC 2 ms 3664 KB
b11 AC 2 ms 3520 KB
b12 AC 2 ms 3628 KB
b13 AC 2 ms 3500 KB