#include #include int uloha(int, int, int[], int *a, int *b); int main() { int C,M, a, b; scanf("%d", &C); scanf("%d", &M); int pole[M]; if(C<=1 || C>=1000000000000000000){ return 0; } if(M<=1 || M>=2*100000){ return 0; } for(int i =0; i1000000000){ return 0; } } uloha(C, M, pole, &a, &b); return 0; } int uloha(int obsah, int N, int pole[], int *a, int *b){ int i,j; for(i=0; i< N; i++){ for(j =i+1; j pole[j]){ printf("%d %d",pole[j], pole[i]); }else{ printf("%d %d",pole[i], pole[j]); } return 1; } } } return 0; }