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
2024-04-22 03:58:28
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int a, i, j;

cin >> a;
i = 1;
for (i = 1; i <= a; i++) {
for (j = 1; j <= a; j++) {
cout << j;
}
cout << "" << endl;
}
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
2024-04-18 04:54:12
dubi dubi
2024-04-18 04:53:58
chapa chapa
2024-04-18 04:53:41
chipi chipi
2024-04-18 04:53:00
nigga mokey donkey
2024-04-10 07:34:36
bitch
2024-03-19 02:55:43
chicka chicka slim shady
2024-03-19 02:55:43
Hi my name is

Last edit: 2024-03-19 02:56:07
2024-02-23 10:58:33
hi my name is
2024-01-18 07:57:24
kys
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.