Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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-11-20 11:45:16
hi guys |
|||||||||
2024-11-06 12:24:51
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠀⠀⣀⣀⡄⢦⡤⠠⠤⠤⠤⠶⡦⢤⡀⠀⠀⠀⣤⢴⡞⠚⣖⠒⠒⠒⠒⠒⠂⠠⠤⠄⢠ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠴⣺⡽⠛⠉⠙⢋⣼⣷⡾⢳⡀⠀⠀⠀⠀⢠⣦⣌⠳⡄⠀⣼⣿⢷⡶⠾⠆⣰⡾⠿⠻⠾⠟⠚⠓⡼ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⢾⠁⡜⠁⣀⠄⢀⣴⠋⢰⣿⣍⡂⠁⠀⣠⠟⠀⠸⡌⠛⢟⣿⣷⠿⣇⢀⣤⣀⣀⣍⡉⠠⣄⣠⣤⣄⣍⠈ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡃⠀⢸⡴⠊⠀⢠⠋⡇⠀⢠⡿⠳⡁⠀⠀⠻⢖⣠⠀⠹⠲⣈⣿⣯⠀⢸⠈⢙⡉⠉⠉⠉⠀⠈⠠⣤⠀⠠⠖ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⡏⡷⠀⠘⠀⠀⠀⠇⠀⠁⠀⠘⢿⣦⠀⠀⠀⠀⠀⣹⣦⣄⠀⠹⣿⠟⠠⢬⡇⠘⡷⠶⠆⠰⠟⠟⠛⠃⢀⣰⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠶⣿⠷⣄⠀⠀⠀⣈⡄⠀⠀⠀⠀⡸⢙⣦⣤⣤⣴⣚⡛⠙⠚⢷⣶⠁⠀⠀⠀⠙⠤⠒⠓⠓⠒⠒⠊⢉⣉⠥⠤⠂ ⠀⠀⠀⠀⠤⠀⠀⠀⣀⣬⣦⣼⡙⡆⠀⠙⡏⠀⠀⠀⣀⡴⠟⠛⠛⠛⠛⠻⠿⣿⣶⣬⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⠉⠀⠀⠀⠀ ⠀⠀⠀⠀⢀⣠⣴⣾⣿⠿⠛⠳⡇⠘⠦⣀⣈⣷⣠⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠿⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀ ⠀⠀⠀⣠⣿⣿⠟⠋⠀⢀⡀⠤⠙⢛⣷⠾⠛⠻⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣷⡀⠀⠀⣀⡤⢤⣀⣀⠘⡄⠀⣤⣀⣀ ⠀⠀⣴⣿⡿⠁⠀⢀⠔⠉⠀⠀⠀⣾⣃⣀⣀⣤⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⣟⣛⣿⡀⠘⠯⠽⠷⣿⣿⠋⠀⠉ ⠀⢸⣿⡟⠀⠀⢠⠎⠀⠀⠀⠀⠀⠻⣷⣿⣟⣹⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⣷⠀⠙⡆⠀⠀⢾⠻⣏⠀⠀⠀ ⠀⣾⡿⠖⠀⠀⠊⠀⠀⠀⠀⠀⠀⠀⠈⠙⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⡁⡄⠀⡇⠀⣰⡏⠀⣿⢆⠀⠀ ⠀⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠀⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣷⣀⣴⣷⣴⣿⠟⠉⠹⠾⠟⠛ ⠀⢹⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣆⠀⢹⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡏⠉⠭⠤⠤⠴⠒⠒⢒⠒⠋⠉ ⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣄⠘⣆⠀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣟⣀⣀⣀⠤⠤⠤⢴⡶⠟⠒⠚⠛ ⠀⠘⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠓⢬⡾⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⠁⠀⠀⠀⠀⢠⡖⠉⠀⠀⠀⠀⠀ ⠀⠀⠈⢷⠀⠀⠀⠀⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠇⠀⠀⠀⠀⠀⠀⢳⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠈⢧⠀⠀⠀⠀⠑⢤⡀⠀⠀⠀⠀⠀⠀⠀⠘⡄⠀⠀⠀⠀⠀⡠⠀⠀⠀⠀⠀⠀⠀⠀⡜⠀⠀⣀⣀⣀⣀⠠⠼⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠈⠳⡀⠀⠀⠀⠀⠉⠲⢄⡀⠀⠀⠀⠀⠀⢱⠀⠀⠀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⣰⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢻⢦⡀⠀⠀⠀⠀⠀⠈⠒⠄⠀⠀⠀⣸⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⣈⡇⠙⢦⣀⠀⠀⠀⠀⠀⠀⢀⣠⠼⢻⢻⣟⠲⢤⣤⣤⣤⣤⡤⠤⠖⢻⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⢀⡠⠔⠚⠉⠀⢱⠀⠈⣿⣷⡤⢤⡤⠴⠾⡛⠁⣴⠃⣸⣿⡗⠀⠀⠀⠀⠀⠀⠀⠀⢨⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠉⠀⠀⠀⠀⠀⠀⠸⡄⠀⣿⠈⣷⣄⣀⠀⠀⠙⠞⠁⡼⣻⣿⣧⡰⡄⠀⠀⠀⢀⣤⣴⣟⣹⣶⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ |
|||||||||
2024-11-06 01:55:51
#include<stdio.h> int main(){ int n,i,b=2; scanf("%d",&n); for(i=1;i<n;i++) b=2*b; printf("%d",b); return 0; } #include<stdio.h> int main(){ int n,i,b=2; scanf("%d",&n); for(i=1;i<n;i++) b=2*b; printf("%d",b); return 0; } |
|||||||||
2024-10-15 12:14:28
#include <stdio.h> int main(void) { // your code here int a,b,c,d,l; scanf("%d %d %d %d",&a,&b,&c,&d); if (a%3==0){ a=1; }else{ a=0; } if (b%3==0){ b=1; }else{ b=0; } if (c%3==0){ c=1; }else{ c=0; } if (d%3==0){ d=1; }else{ d=0; } l =a+b+c+d; printf("%d",l); return 0; } |
|||||||||
2024-05-22 10:15:11
#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-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++ |