Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
|||||||||
2023-11-22 09:22:05
#include<bits/stdc++.h> using namespace std; int main(){ long i, n, s=1; cin>>n; for(i=1; i<=n; i++){ s=s*2; } cout<<s; } |
|||||||||
2023-10-30 13:16:42
#include <iostream> using namespace std; int 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; } |
|||||||||
2023-07-23 05:51:14
#include<stdio.h> main(){ int a,b=2; scanf("%d",&a); while(a>1){ b=b*2; --a; } printf("%d",b); } //2in ogogdson toon zergiig ol /2in zereg gedegn 2*2*2 jisheenii //int torliin neg too ogogdon ter too 2in heden udaa urjuulhiig zaan // 2in ogogdson toon zereg gedeg maan b=2 tentsen gesen utagtai //while- maan 3 uildel hiihed zoriulagdsan medeej ehleed jishee uzuulii // a-n>negees eh gej bodii tiim bol urjweriin hamgiin dood taliin urjwer neg gedegiig hun bolgon medne //tegheer a>1 eh gej awch uzne tgeed 3dah morond durdsanaar 2iig b=2 gej awch uzii //while a>1 haal ba uyan haalt b=2 tgeed urjweree tawina hamgiin suuld zaawal araas n unshuulhiin tuld --a gej bichehiig san |
|||||||||
2023-07-06 07:35:04
#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; } |
|||||||||
2023-02-02 13:33:34
n = int(input()) print(2 ** n) Delgerekh** |
|||||||||
2022-12-22 15:37:39
Zya aheogo bolon nakadashi Last edit: 2022-12-22 15:37:57 |
|||||||||
2022-11-25 03:03:49
fuck you rick astley |
|||||||||
2022-11-14 03:53:06
I don't want a lot for Christmas There is just one thing I need I don't care about the presents Underneath the Christmas tree I just want you for my own More than you could ever know Make my wish come true All I want for Christmas is you, yeah I don't want a lot for Christmas There is just one thing I need And I don't care about the presents Underneath the Christmas tree I don't need to hang my stocking There upon the fireplace Santa Claus won't make me happy With a toy on Christmas Day I just want you for my own More than you could ever know Make my wish come true All I want for Christmas is you You, baby Oh, I won't ask for much this Christmas I won't even wish for snow And I'm just gonna keep on waiting Underneath the mistletoe I won't make a list and send it To the North Pole for Saint Nick I won't even stay awake to Hear those magic reindeer click 'Cause I just want you here tonight Holding on to me so tight What more can I do? Baby, all I want for Christmas is you You, baby Oh, all the lights are shining so brightly everywhere And the sound of children's laughter fills the air And everyone is singing I hear those sleigh bells ringing Santa, won't you bring me the one I really need? Won't you please bring my baby to me? Oh, I don't want a lot for Christmas This is all I'm asking for I just wanna see my baby Standing right outside my door Oh, I just want you for my own More than you could ever know Make my wish come true Baby, all I want for Christmas is you You, baby All I want for Christmas is you, baby [repeat with ad-libs until fade] |
|||||||||
2022-11-14 03:52:12
sain bnu mongolcuudaaaa |
|||||||||
2022-11-14 03:51:49
ksksdssg |