Rezultati

Up. imeNalogaJezikRezultatČas oddaje
kira Hierarhija C++ 100/100OK 11. maj '17 @ 17:07

Test Točke Porabljen spomin Porabljen čas Status
#1 10/10 3,211 MiB 0,004 s OK
#2 10/10 3,203 MiB 0,004 s OK
#3 10/10 3,109 MiB 0,004 s OK
#4 10/10 3,105 MiB 0,004 s OK
#5 10/10 3,109 MiB 0,004 s OK
#6 10/10 3,109 MiB 0,004 s OK
#7 10/10 3,207 MiB 0,004 s OK
#8 10/10 3,211 MiB 0,004 s OK
#9 10/10 3,109 MiB 0,004 s OK
#10 10/10 3,211 MiB 0,004 s OK

Ocenjevani program (Hierarhija.cpp):
//============================================================================
// Name        : Hierarhija.cpp
// Author      : Kira
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

// radical 129 ////////////////////////////////////////////
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <string>
#include <stack>
#include <deque>
#include <cstdlib>
#include <map>
#include <cmath>
#include <string.h>
#define pii pair<int,int>
#define pib pair<int,bool>
#define mp make_pair
#define pb push_back
#define FOR(i,n) for(int i=0,_n=n;i<_n;i++)
#define FORR(i,j,n) for(int i=j,_n=n;i<_n;i++)
using namespace std;
typedef long long ll;
// radical 159 ////////////////////////////////////////////

int main() {
	int N,M;
	scanf("%i %i",&N,&M);
	int diff_NM = N-M;
	int counter = 1;
	FOR(i,diff_NM)
	{
		cout << counter << " ";
		counter++;
	}
	FOR(i,M-1)
	{
		cout << "1 ";
	}
	return 0;
}