Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7404 - Давхар давталт 4 |
Өгөгдсөн тоон тусламжтайгаар жишээн дээрхтэй төстэй тоон хэлбэрийг үүсгэ.
Input
Бүхэл тоо өгөгдөнө.
Output
Жишээн дээрхтэй төстэй тоон хэлбэрийг үүсгэ.
Example
Input: 5
Output: 5
5 4
5 4 3
5 4 3 2
5 4 3 2 1
Нэмсэн: | 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 05:07:23
. Last edit: 2024-04-22 05:17:19 |
||||||||||||
2024-04-22 05:07:23
tselmeg zail ergu meltseg |
||||||||||||
2024-04-22 05:07:23
tselmeg zail ergu meltseg |
||||||||||||
2024-04-18 04:56:24
uyerhhu |
||||||||||||
2024-01-16 05:38:51
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <=n; i++) { for (int j = n; j >= n - i + 1; j--) { cout << j << " "; } cout << endl; } return 0; } /* 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 */ |
||||||||||||
2023-04-16 05:14:56
#include <iostream> using namespace std; int main() { long long int n,j; cin>>n; for(int i=n;i>=1;i--) { for( j=n;j>=i;j--) cout<<j<<" "; cout<<"\n"; } return 0; } huulaarai |
||||||||||||
2023-04-16 05:13:59
Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you You might also like The Pi Song (100 Digits of π) AsapSCIENCE A&W Lana Del Rey Ballin’ Mustard & Roddy Ricch [Post-Chorus] Ooh (Give you up) Ooh-ooh (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) [Bridge] We've known each other for so long Your heart's been aching, but you're too shy to say it Inside, we both know what's been going on We know the game, and we're gonna play it [Pre-Chorus] I just wanna tell you how I'm feeling Gotta make you understand [Chorus] Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you You might also like The Pi Song (100 Digits of π) AsapSCIENCE A&W Lana Del Rey Ballin’ Mustard & Roddy Ricch [Post-Chorus] Ooh (Give you up) Ooh-ooh (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) [Bridge] We've known each other for so long Your heart's been aching, but you're too shy to say it Inside, we both know what's been going on We know the game, and we're gonna play it [Pre-Chorus] I just wanna tell you how I'm feeling Gotta make you understand [Chorus] Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt youvvv Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you You might also like The Pi Song (100 Digits of π) AsapSCIENCE A&W Lana Del Rey Ballin’ Mustard & Roddy Ricch [Post-Chorus] Ooh (Give you up) Ooh-ooh (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) [Bridge] We've known each other for so long Your heart's been aching, but you're too shy to say it Inside, we both know what's been going on We know the game, and we're gonna play it [Pre-Chorus] I just wanna tell you how I'm feeling Gotta make you understand [Chorus] Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you You might also like The Pi Song (100 Digits of π) AsapSCIENCE A&W Lana Del Rey Ballin’ Mustard & Roddy Ricch [Post-Chorus] Ooh (Give you up) Ooh-ooh (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) [Bridge] We've known each other for so long Your heart's been aching, but you're too shy to say it Inside, we both know what's been going on We know the game, and we're gonna play it [Pre-Chorus] I just wanna tell you how I'm feeling Gotta make you understand [Chorus] Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you You might also like The Pi Song (100 Digits of π) AsapSCIENCE A&W Lana Del Rey Ballin’ Mustard & Roddy Ricch [Post-Chorus] Ooh (Give you up) Ooh-ooh (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) Ooh-ooh Never gonna give, never gonna give (Give you up) [Bridge] We've known each other for so long Your heart's been aching, but you're too shy to say it Inside, we both know what's been going on We know the game, and we're gonna play it [Pre-Chorus] I just wanna tell you how I'm feeling Gotta make you understand [Chorus] Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you |
||||||||||||
2023-04-16 04:17:07
oilgohgu bn |
||||||||||||
2023-02-15 17:13:04
hinoru bna #include<bits/stdc++.h> using namespace std; int main() { long long int n,j; cin>>n; for(int i=n;i>=1;i--) { for( j=n;j>=i;j--) cout<<j<<" "; cout<<"\n"; } return 0; } |
||||||||||||
2022-12-03 07:56:40
#include<iostream> using namespace std; int main() { int a, b, i, c, d=0, e; scanf("%d",&a); for(i=a;i>=1;i--) { for(c=a;c>=i;c--) { printf("%d ",c); } printf("\n",c); } } |