Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7208 - 2-ын n зэрэг |
2-ын өгөгдсөн тоон зэргийг ол. /2-ын n зэрэг гэдэг нь 2*2*...*2. Жишээ нь 2-ын 3 зэрэг 2*2*2=8 /
Input
Int төрлийн нэг тоо өгөгдөнө. Тэр тоо нь 2-ыг хэдэн удаа үржүүлэхийг заана.
Output
2-ын өгөгдсөн тоон зэрэг.
Example
Input:
5
Output:
32
Нэмсэн: | Bataa |
Огноо: | 2011-06-13 |
Хугацааны хязгаарлалт: | 0.206s |
Эх кодын хэмжээний хязгаарлалт: | 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
|
|||||||||
2022-10-18 08:50:18
mergeen uuniig hull #include <iostream> using namespace std; main(){ int a,b,c,d,h,i,n,s; cin>>n; s=1; for(i=1;i<=n;i++) s=s*2; cout<<s; } #include <iostream> using namespace std; main(){ int a,b,c,d,h,i,n,s; cin>>n; s=1; for(i=1;i<=n;i++) s=s*2; cout<<s; } |
|||||||||
2022-10-13 04:05:51
#include<stdio.h> int main() { int l=2, k, n, i; scanf("%d", &n); for(i=1; i<n; i++) {l=l*2;} printf("%d",l); return 0; } |
|||||||||
2022-10-13 03:55:04
#include<stdio.h> int main() { int l=2, k, n, i; scanf("%d", &n); for(i=1; i<n; i++) {l=l*2;} printf("%d",l); return 0; } |
|||||||||
2022-10-13 03:38: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-07-14 22:42:34 ha 2022-06-30 05:44:36 caught 4k 2022-05-06 06:42:49 a=int(input()) b=1 c=1 for c in range(1,a+1,1): b=b*2 print(b) sansar suga ala mai 2022-05-06 05:56:46 tgd tusalval tuslachde 2022-05-02 08:49:02 a=int(input()) b=1 c=1 for c in range(1,a+1,1): b=b*2 print(b) rgb7208 aluda zl psta \ v dffg gb v v v v v v v v v 2022-04-01 03:31:53 lots of love to kai kamal huening 2022-03-24 09:56:45 #include<stdio.h> int main() { int l=2, k, n, i; scanf("%d", &n); for(i=1; i<n; i++) {l=l*2;} printf("%d",l); return 0; } HENTII GANGGG PUKA 2022-03-15 08:33:57 eegii suga 2022-02-10 12:49:13 #include<stdio.h> int main() { int a,b=2; scanf("%d",&a); while(a>1) { b=b*2; --a;} printf("%d\n",b); return 0; } |
|||||||||
2022-09-21 07:45:07
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-07-14 22:42:34
ha |
|||||||||
2022-06-30 05:44:36
caught 4k |
|||||||||
2022-05-06 06:42:49
a=int(input()) b=1 c=1 for c in range(1,a+1,1): b=b*2 print(b) sansar suga ala mai |
|||||||||
2022-05-06 05:56:46
tgd tusalval tuslachde |
|||||||||
2022-05-02 08:49:02
a=int(input()) b=1 c=1 for c in range(1,a+1,1): b=b*2 print(b) rgb7208 aluda zl psta \ v dffg gb v v v v v v v v v |