Rezultati

Up. imeNalogaJezikRezultatČas oddaje
qubit-2017 Hierarhija C++ 100/100OK 11. maj '17 @ 16:39

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 3,184 MiB 0,004 s OK
#2 10/10 3,102 MiB 0,004 s OK
#3 10/10 3,098 MiB 0,004 s OK
#4 10/10 3,188 MiB 0,004 s OK
#5 10/10 3,109 MiB 0,004 s OK
#6 10/10 3,105 MiB 0,004 s OK
#7 10/10 3,105 MiB 0,004 s OK
#8 10/10 3,105 MiB 0,004 s OK
#9 10/10 3,191 MiB 0,004 s OK
#10 10/10 3,105 MiB 0,004 s OK

Ocenjevani program (n1.cpp):
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <unordered_map>
#include <tuple>
#include <algorithm>
#include <utility>
#include <iostream>
#include <string>
#include <sstream>

using namespace std;

typedef long long ll;

int main(void) {
    cin.tie(nullptr);
    cin.sync_with_stdio(false);

    int n, m;
    cin >> n >> m;
    for (int i = 0; i < n - m - 1; i++) {
        cout << i + 1 << ' ';
    }
    for (int i = 0; i < m; i++) {
        cout << n - m << (i != m - 1 ? ' ' : '\n');
    }

    return 0;
}