Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7400 - Давхар давталт 0

Өгөгдсөн натурал тоо хүртэлх тоонуудыг дараах хэлбэрээр хэвлэнэ үү.

Input

Натурал тоо өгөгдөнө. 10-аас бага.

Output

Өгөгдсөн тоо болон тоо хүртэлх тоонуудыг жишээн дээрх хэлбэрээр хэвлэ. Мөрөн дэх тоонууд хооронд зай байхгүй.

Example

Input:
5
Output:
12345
12345
12345
12345
12345

Нэмсэн:Bataa
Огноо:2013-01-14
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2018-11-27 03:15:03
gf


Last edit: 2018-11-27 03:15:43
2018-11-09 15:41:29
#include<stdio.h>

main(){
int a,b=1,c=0,i=0;
scanf("%d", &a);
while(a>=b){
printf("%d", b);
c=c*10+b;
b++;
}
printf("\n");
a-=1;
while(a>i){
i++;
printf("%d\n", c);
}
}
2018-11-04 04:13:21
#include<cstdio>

int main ()
{
int n, i, j;
scanf ("%d",&n);
for(i = 1; i <= n; i++)
{
for(j = 1; j <= n; j++) printf("%d", j);
printf("\n");
}
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.