Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
ABR0077A - Хоёрын зэрэг |
n натурал тоо өгөгдөв. Дараах илэрхийллийн утгыг ол: 2^n
Input
n натурал тоо өгөгдөнө (n<64)
Output
2^n-ийн утгыг олж хэвлэнэ
Example
Input: 8 Output: 256
Нэмсэн: | sw40 |
Огноо: | 2007-11-29 |
Хугацааны хязгаарлалт: | 1s |
Эх кодын хэмжээний хязгаарлалт: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Програмчлалын хэлүүд: | Бүгд дараах хэлүүдээс бусад: ASM32-GCC MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR ERL FANTOM FORTH GOSU GRV JS-RHINO JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PERL6 PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET |
Эх сурвалж: | Абрамов С. А. |
hide comments
|
|||||
2013-01-30 08:46:49 M.Enkhbileg
Уг бодлогыг C++ дээр бичвэл: 1 иймэрхүү #include <iostream> #include <stdlib.h> using namespace std; main() { int i, m=1; cin >> i; for(int j=0; j<i; j++) { m=2*m; } cout << m; system("pause"); return 0; } Last edit: 2013-01-30 08:49:20 |
|||||
2012-10-17 12:16:01 Tso .
#include <stdio.h> #include <stdlib.h> #include <math.h> main(){ int n; scanf("%d", &n); int s=pow(2,n); printf("%d", s); system("pause"); return 0; } it's true ("_") |
|||||
2012-10-13 10:35:37 Kris
#include <stdio.h> #include <stdlib.h> #include <cmath> int main(){ int n, s; scanf("%d", &n); s = pow(2,n); printf("%d", s); system("pause"); return 0; } |
|||||
2012-04-30 07:59:38 Xuchitbaatar
soapgioruiognfkrgihvnfngldmngoiejgoijjgeio gnjggiorogjd kegorjkogjkfiojg jbi chamaigalnashvgologminegjshaahkvvpldedededededjgdjgodjgjgodjgjdogjodjgodjgodjgodg |
|||||
2012-04-30 07:21:54 Xuchitbaatar
bodlognuudaa bodoochee anduudantsaraa |
|||||
2012-03-18 07:18:13 diedline
#include<stdio.h> #include<stdlib.h> main(){ int n; scanf("%d",&n); int p=1,i; for(i=0;i<n;i++){ p*=2; } printf("%d",p); return 0; system("pause"); } |
|||||
2012-03-01 09:50:50 ariunbayar_dmts
Last edit: 2012-03-15 03:29:31 |
|||||
2012-02-29 10:47:16 O&D
hutsaj ungaj h geer gazar sav |
|||||
2012-02-29 10:39:51 AiR-Stark (DMTS) 10c
Last edit: 2012-02-29 10:45:28 |
|||||
2012-02-29 10:37:49 ariunbayar_dmts
ene chini chat bish shuu dahij buu yum bich ustga naadahaa |