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.|

RGB7222 - Есөөс цифр хүртэл

Есийн цифрээс өгөгдсөн цифр хүртэл нэг нэгээр нэг мөрөнд хэвлэ.

Input

Цифр өгөгдөнө.

Output

Цифрүүд нэг нэг мөрөнд.

Example

Input:
5

Output:
9
8
7
6
5

Нэмсэн:Bataa
Огноо:2013-01-13
Хугацааны хязгаарлалт: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
2023-10-10 07:53:38
#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 n, i;

cin >> n;
for (i = 9 ; i >= n ; i -= 1) {
cout << i << endl;
}
}

// 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());
}
tolgoigoo ajiluul huuhduuud
2023-07-12 14:52:07
#include<stdio.h>
main (){
int n,i=9;
scanf ("%d",&n);
for (i==9; i>=n; i=i-0){
i=(i-1);
printf ("%d\n",i+1);}
return 0;
}
2023-07-12 14:51:14


Last edit: 2023-07-12 14:51:23
2023-05-05 07:27:27
ganji huul#include <iostream>
using namespace std;
int main() {
int a, b;
cin>>a;
if(a<9){
for(i=9; i>a; i--){
b=i;
cout<<b<<endl;
}

}

if(a>9){
for(i=9; i<a; i++){
b=i;
cout<<b<<endl;
}
}
return 0;
}
2023-05-05 07:27:24
ganji huul#include <iostream>
using namespace std;
int main() {
int a, b;
cin>>a;
if(a<9){
for(i=9; i>a; i--){
b=i;
cout<<b<<endl;
}

}

if(a>9){
for(i=9; i<a; i++){
b=i;
cout<<b<<endl;
}
}
return 0;
}
2023-02-17 01:25:00
#include<stdio.h>
main (){
int n,i=9;
scanf ("%d",&n);
for (i==9; i>=n; i=i-0){

i=(i-1);
printf ("%d\n",i+1);}
return 0;

}
SODOLZGONO
2022-12-13 03:57:32
#include <iostream>
using namespace std;

int main() {
int a, b;
cin>>a;
if(a<9){

for(int i=9; i>a; i--){
b=i;
cout<<b<<endl;
}

}

if(a>9){
for(int i=9; i<a; i++){
b=i;
cout<<b<<endl;
}

}

// your code here

return 0;
}
2022-11-29 11:05:41
#include <bits/stdc++.h>
using namespace std;

int main() {
int b,n,i,s=1 ;
cin >>n ;
for(i = 9; i>=n; i --)
cout << i <<endl;
return 0;
}
2022-11-09 03:55:04
ihy
2021-10-13 12:40:31
#include<cstdio>
int main() {
int a, b=0, c, d, e, f;
scanf("%d", &a);
for(b=9;b>=a;b--){
printf("%d\n", b);}
} mai uunuu
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.