Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 3,082 MiB 0,004 s OK
#2 10/10 3,043 MiB 0,004 s OK
#3 10/10 3,082 MiB 0,004 s OK
#4 10/10 3,082 MiB 0,004 s OK
#5 10/10 3,086 MiB 0,004 s OK
#6 10/10 3,047 MiB 0,004 s OK
#7 10/10 3,039 MiB 0,004 s OK
#8 10/10 3,047 MiB 0,004 s OK
#9 10/10 3,047 MiB 0,004 s OK
#10 10/10 3,086 MiB 0,004 s OK

Ocenjevani program (hie.cpp):
#include<iostream>

using namespace std;

int main(){
int n,m;
cin >> n >> m;


for (int i = 0; i < n-m; i++)
{
    cout << i+1 << " ";
    
}
for (int i = 0; i < m-1; i++)
{
    cout << 1;
    if (i != m-2)
        cout << " ";
}
cout << endl;

}