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.|

RGB7209 - a тооны n зэрэг

Өгөгдсөн тооны n зэргийг ол.

Input

Нэг мөрөнд Int төрлийн эерэг 2  тоо зайгаар тусгаарлагдан өгөгдөнө.

Output

an

Example

Input:
3 4

Output:
81

Нэмсэн:Bataa
Огноо:2011-06-16
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт: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-12-10 05:17:37
.data
prompt: .asciiz "Enter two integers (a and n): "
result: .asciiz "\nResult: "

.text
main:
# Хэрэглэгчээс тоо авах
li $v0, 4 # print string
la $a0, prompt
syscall

li $v0, 5 # read integer
syscall
move $t0, $v0 # $t0 = a

li $v0, 5 # read integer
syscall
move $t1, $v0 # $t1 = n

# $t2 = 1 (үржих эхний утга)
li $t2, 1

power_loop:
beq $t1, 0, print_result # n==0 бол давталтыг зогсооно
mul $t2, $t2, $t0 # $t2 = $t2 * a
sub $t1, $t1, 1 # n--
j power_loop # дахин давтах

print_result:
li $v0, 4 # print string
la $a0, result
syscall

li $v0, 1 # print integer
move $a0, $t2 # $a0 = $t2 (үр дүн)
syscall

# Програмыг дуусгах
li $v0, 10 # exit
syscall
asm code
2024-12-03 08:11:11
niiger ermmuun
2024-11-26 03:14:55
okey sure
2024-11-18 02:05:19
⠀⠀⠀⠀⠀⠀⠈⢈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡟⠉⢠⠃⠀⠀
⠀⠀⠀⠀⠀⠀⢠⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⡀⢃⢸⠀⠀⠀
⠀⠀⠀⣀⣤⣴⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠀⣼⣿⠿⠧
⠀⢠⣾⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠃⣿⠏⠀⢀
⠹⣿⣿⣿⡏⢀⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⢆⠀⠀⣸⠃⢀⡔⠁
⠀⠘⢿⣿⣧⠸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡿⠏⠀⢀⣿⡶⡡⢀⠀
⢠⠐⡀⢻⣿⣦⡀⠀⠀⠀⣀⠀⠀⠀⠀⠰⡄⠀⠀⠀⠀⠀⠀⢀⢼⣿⠡⠁⡎⠀
⡀⠇⢱⡀⣿⣿⣿⣦⣤⣀⡤⠞⠀⠀⠀⠀⠙⢦⣀⣀⠀⣀⡤⠋⣾⣿⣅⢼⠁⠨
⡇⠘⢠⢇⢹⣿⣿⣿⡉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠁⠉⠁⠀⢸⣿⣿⣷⡘⠀⠀
⢃⢀⠌⠀⠼⢻⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⢿⣿⣿⣿⠛⠚⠀
2024-11-18 02:05:17
⠀⠀⠀⠀⠀⠀⠈⢈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡟⠉⢠⠃⠀⠀
⠀⠀⠀⠀⠀⠀⢠⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⡀⢃⢸⠀⠀⠀
⠀⠀⠀⣀⣤⣴⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠀⣼⣿⠿⠧
⠀⢠⣾⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠃⣿⠏⠀⢀
⠹⣿⣿⣿⡏⢀⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⢆⠀⠀⣸⠃⢀⡔⠁
⠀⠘⢿⣿⣧⠸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡿⠏⠀⢀⣿⡶⡡⢀⠀
⢠⠐⡀⢻⣿⣦⡀⠀⠀⠀⣀⠀⠀⠀⠀⠰⡄⠀⠀⠀⠀⠀⠀⢀⢼⣿⠡⠁⡎⠀
⡀⠇⢱⡀⣿⣿⣿⣦⣤⣀⡤⠞⠀⠀⠀⠀⠙⢦⣀⣀⠀⣀⡤⠋⣾⣿⣅⢼⠁⠨
⡇⠘⢠⢇⢹⣿⣿⣿⡉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠁⠉⠁⠀⢸⣿⣿⣷⡘⠀⠀
⢃⢀⠌⠀⠼⢻⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⢿⣿⣿⣿⠛⠚⠀
2024-11-18 02:04:26
2024-11-13 06:51:15
fack this cheater
2024-11-13 06:47:47
zail i hate writing kode niggeers
2024-11-07 08:41:12
#include<bits/stdc++.h>
using namespace std;

int main() {

int a,n,b=1;
cin>>a>>n;
for(int i=0; i<n; i++)
b=b*a;
cout<<b<<endl;

return 0;
}
2024-11-07 08:38:25
#include <iostream>
using namespace std;

int main() {

int a,n,b=1;
cin>>a>>n;
for(int i=0; i<n; i++)
b=b*a;
cout<<b<<endl;

return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.