Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7212 - Факториалын хүрд |
Өгөгдсөн тоо хүртэлх натурал тоонуудын факториалыг жишээн дээрх форматаар хэвлэ.
Input
Натурал тоо өгөгдөнө.
Output
Өгөгдсөн тоо хүртэлх натурал тоонуудын факториалыг нэг нэг мөрөнд жишээн дээрхтэй ижлээр хэвлэнэ.
Example
Input: 4 Output:
1!=1
2!=2
3!=6
4!=24
Нэмсэн: | Bataa |
Огноо: | 2013-01-21 |
Хугацааны хязгаарлалт: | 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-09 08:13:17
#include <iostream> using namespace std ; int main(){ int n , i , j , s ; cin >> n ; s = 1 ; for( j = 1 ; j <= n ; j++){ s = s * j ; cout << j << "!=" << s << endl ; } } mai munkhuu lalraa |
|||||||||||
2023-05-24 05:25:53
[Intro: Aran] La, la, la, la-la-la La, la-la-la, la, la-la-la [Verse 1: Aran, All] A hopeless romantic all my life Surrounded by couples all the time I guess I should take it as a sign (Oh, why, oh, why, oh, why, oh, why?) [Pre-Chorus: Sio, All] I'm feelin' lonely (Lonely) Oh, I wish I'd find a lover that could hold me (Hold me) Now I'm crying in my room So skeptical of love (Say what you say, but I want it more) But still, I want it more, more, more [Chorus: All] I gave a second chance to Cupid But now I'm left here feelin' stupid Oh, the way he makes me feel that love isn't real Cupid is so dumb [Verse 2: Aran] I look for his arrows every day I guess he got lost or flew away Waiting around is a waste (Waste) Been counting the days since November Is loving as good as they say? You might also like FIFTY FIFTY - Cupid (English Translation) Genius English Translations The Alcott The National YOASOBI - アイドル (Idol) (Romanized) Genius Romanizations |
|||||||||||
2023-05-23 03:09:55
I just wanna get high with my lover Veo una muñeca cuando miro en el espejo Kiss, kiss Looking dolly, I think I may go out tonight I just wanna ride, get high in the moonlight I just wanna get high with my lover Veo una muñeca cuando miro en el espejo Kiss, kiss Looking dolly, I think I may go out tonight I just wanna ride, get high in the moonlight Forget the small talk The surface level ain't much that I care for Putting on my lipgloss I saw you stare from my peripheral Yeah, baby, it's been a hell of a day But I know a place we can escape Find out how it feels to let go of everything Be free When you're here with me I just wanna get high with my lover Veo una muñeca cuando miro en el espejo Kiss, kiss Looking dolly, I think I may go out tonight I just wanna ride, get high in the moonlight I just wanna get high with my lover Veo una muñeca cuando miro en el espejo Kiss, kiss Looking dolly, I think I may go out tonight I just wanna ride, get high in the moonlight There's nothing like peace of mind And you take the time to make sure that I'm okay I know I can put stress on your brain You still love me, put no one above me You always go out of your way To show me that I'm your priority Find out how it feels to let go of everything Be free When you're here with me I just wanna get high with my lover Veo una muñeca cuando miro en el espejo (I just wanna get high with my lover) Kiss, kiss Looking dolly, I think I may go out tonight I just wanna ride, get high in the moonlight I just wanna get high with my lover (Get high) Veo una muñeca cuando miro en el espejo (High with my lover) Kiss, kiss Looking dolly, I think I may go out tonight I just wanna ride, get high in the moonlight Get high with you Get higher and higher with you Let's go to the moon And leave behind all that How does it feel, here by my side getting higher and higher? Under the moonlight's glow There's nowhere we won't go Together go higher and higher (No-no-nowhere we won't go) |
|||||||||||
2023-02-18 14:57:13
#include<iostream> using namespace std; int main(){ int n; long long sum = 1; cin >> n; for(int i = 1; i <= n; i++){ sum = sum * i; cout << i << " != " << sum << endl; } return 0; } Last edit: 2023-02-18 14:58:35 |
|||||||||||
2022-12-28 10:48:59
ez bla lalruudaa |
|||||||||||
2022-10-27 07:21:54
#include<bits/stdc++.h> using namespace std; int main (){ int a, s=1, i; cin>>a; for(i=1;i<=a;i=i+1){ s=s*i; cout<<i<<"!="<<s<<endl; } } |
|||||||||||
2022-10-26 08:33:52
We're no strangers to love You know the rules and so do I (do I) A full commitment's what I'm thinking of You wouldn't get this from any other guy I just wanna tell you how I'm feeling Gotta make you understand 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 We've known each other for so long Your heart's been aching, but you're too shy to say it (say it) Inside, we both know what's been going on (going on) We know the game and we're gonna play it And if you ask me how I'm feeling Don't tell me you're too blind to see 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 We've known each other for so long Your heart's been aching, but you're too shy to say it (to say it) Inside, we both know what's been going on (going on) We know the game and we're gonna play it I just wanna tell you how I'm feeling Gotta make you understand 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 |
|||||||||||
2022-10-25 07:43:02
We're no strangers to love You know the rules and so do I (do I) A full commitment's what I'm thinking of You wouldn't get this from any other guy I just wanna tell you how I'm feeling Gotta make you understand 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 We've known each other for so long Your heart's been aching, but you're too shy to say it (say it) Inside, we both know what's been going on (going on) We know the game and we're gonna play it And if you ask me how I'm feeling Don't tell me you're too blind to see 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 We've known each other for so long Your heart's been aching, but you're too shy to say it (to say it) Inside, we both know what's been going on (going on) We know the game and we're gonna play it I just wanna tell you how I'm feeling Gotta make you understand 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 |
|||||||||||
2022-10-13 04:20:27
#include<bits/stdc++.h> using namespace std; int main(){ int n,s,i; cin>>n; s=1; for(i=1;i<=n;i++){ s=s*i; cout<<i<<"!"<<"="<<s<<endl; } } |
|||||||||||
2022-10-03 06:08:55
NIIGER Last edit: 2022-10-03 06:09:41 |