Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

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
2024-02-23 14:19:48
#include <iostream>
using namespace std;

int main() {

int a,b=1;
cin>>a;
for(int i=0; i<a; i++){
b*=2;
}
cout<<b;
}
2024-02-01 05:31:32
#include <iostream>

using namespace std;

int main()
{

int a,b=1,i=0;
cin>>a;
while (i<a) {
b=b*2;
i++;
}
cout<<b;

return 0;
}
2024-02-01 05:31:24
#include <iostream>

using namespace std;

int main()
{

int a,b=1,i=0;
cin>>a;
while (i<a) {
b=b*2;
i++;
}
cout<<b;

return 0;
}
2024-02-01 05:31:08
#include <iostream>

using namespace std;

int main()
{

int a,b=1,i=0;
cin>>a;
while (i<a) {
b=b*2;
i++;
}
cout<<b;

return 0;
}
\
2024-01-29 11:50:32
USE <CMATH.H> PEOPLE WHO USE C++
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**
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.