Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7405 - Давхар давталт 5 |
Өгөгдсөн тоон тусламтайгаар жишээн дээрхтэй төстэй тоон хэлбэрийг үүсгэ.
Input
Бүхэл тоо өгөгдөнө.
Output
Жишээн дээрхтэй төстэй тоон хэлбэрийг үүсгэ.
Example
Input: 5 Output: 5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
Нэмсэн: | 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-03-28 03:30:01
645646546464654654465466666666666666666666666666666666666666666231111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111987777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777778977777777777 Last edit: 2024-04-08 04:34:32 |
||||||||||
2024-01-16 05:40: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 >= i; j--) { cout << j << " "; } cout << endl; } return 0; } /* 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 */ |
||||||||||
2023-08-22 07:44:32
#include <iostream> using namespace std; int main() { // your code here int a,b,c; cin>>a; for(b=1;b<=a;b++){ for(c=a;c>=b;c--){ cout<<c<<" "; } cout<<" "<<endl; } return 0; } |
||||||||||
2023-05-18 04:51:55
#include <iostream> using namespace std; int main() { int n, i; cin>>n; i=9; while(n<i) { cout<<i<<endl; i--; } return 0; } |
||||||||||
2023-05-18 04:50:49
#include <iostream> using namespace std; int main() { long long int n,j; cin>>n; for(int i=1;i<=n;i++) { for( j=n;j>=i;j--){ cout<<j<<" "; cout<<"\n"; } } return 0; } lollollol |
||||||||||
2023-04-16 05:33:52
#include <iostream> using namespace std; int main() { long long int n,j; cin>>n; for(int i=1;i<=n;i++) { for( j=n;j>=i;j--) cout<<j<<" "; cout<<"\n"; } return 0; } huul2 |
||||||||||
2023-04-16 05:16:09
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 05:16:04
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 05:15: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 |
||||||||||
2023-04-16 05:15:50
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 youvvvv |