Rezultati

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

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

Ocenjevani program (Source.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 << " ";
	}
	int diff = N - M;
	for (int i = N - M; i != N - 1; i++)
	{
		cout << diff << " ";
	}

	return 0;
	//system("pause");
}