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

RGB7211 - Тооны зэргийн хүрд

a тооны n хүртэлх зэрэгтүүдийг жишээн дээрх хэлбэрээр хэвлэ.

Input

a, n натурал тоонууд нэг мөрөнд нэг зайгаар тусгаарлагдан өгөгдөнө. (a,n<10)

Output

Зэргийн хүрдийг хэвлэ.

Example

Input:
3 5

Output:
3^1=3
3^2=9
3^3=27
3^4=81
3^5=243

Нэмсэн:Bataa
Огноо:2011-06-21
Хугацааны хязгаарлалт: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
2025-04-30 14:03:44
#include <stdio.h>
int main(){
int a,n,i;
int c=1;
scanf("%d %d",&a,&n);
for (i = 1; i <= n; i++){
c*=a;

printf("%d^%d=%d\n",a,i,c);
}
return 0;
}
2025-03-26 08:38:55
#include <bits/stdc++.h>
using namespace std;
int n, a, i, u = 1;
int main(){
cin >> n >> a;
for(i = 1; i <= a; i++){
u = u * n;
cout << n << "^" << i << "=" <<u << endl;
}
}
//rtbvytiyubbv

Last edit: 2025-03-26 08:40:10
2025-03-24 05:45:05
#include <iostream>
#include <deque>
using namespace std;
int main() {
deque<int> queue = {5, 11, 3, 9, 4};
cout << "Анхны дараалал: ";
for (int elem : queue) {
cout << elem << " ";
}
cout <<endl;

for (int i = 0; i < 3; i++) {
if (!queue.empty()) {
queue.pop_front();
} else {
cout << "Hooson" << endl;
break;
}
}

cout << "Ustgasnii daraa: ";
for (int elem : queue) {
cout << elem << " ";
}
cout <<endl;

return 0;
}
2025-01-17 17:06:24
#include<iostream>
#include<cmath>
using namespace std ;
main ()
{
int a,b,c;
std::cout<<"suuri toog oruulna uu=";
cin>>a;
std::cout<<"zergee oruulna uu=";
cin>>b;
for (int i=1 ; i<=b;i++){
c=1;
for(int j=0; j<i ; j++){
c*=a;
}
cout<<a<<"^"<<i<<"="<<c<<endl;
}
return 0;
}
zzzo amjilt bro
2024-12-19 11:30:27
Uursduu bodoochee mal kid naraa iim yumnuud bodoj chadakhgu bguu
2024-12-09 03:42:33
jhuhuhiuuhuh
2024-11-26 18:38:56
#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,s=1,t,i,n;
cin>>a>>n;
for(i=1;i<=n;i++){
s*=a;
cout<<a<<"^"<<i<<"="<<s<<endl;
}

}//ryuu bol gicii
2024-11-16 05:35:36
#include<iostream>
using namespace std;
int main() {
int n,a,u,i = 1;
cin>>n>>a;
for(u=1;u<=a;u++){
i = i * n;
cout << n <<"^" << u <<"=" <<i <<endl<<endl;

}
} //huul teneg boovni usnuudee
2024-10-31 04:10:34
⢰⡿⠋⠁⠀⠀⠈⠉⠙⠻⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢀⣿⠇⠀⢀⣴⣶⡾⠿⠿⠿⢿⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⣀⣀⣸⡿⠀⠀⢸⣿⣇⠀⠀⠀⠀⠀⠀⠙⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⣾⡟⠛⣿⡇⠀⠀⢸⣿⣿⣷⣤⣤⣤⣤⣶⣶⣿⠇⠀⠀⠀⠀⠀⠀⠀⣀⠀⠀
⢀⣿⠀⢀⣿⡇⠀⠀⠀⠻⢿⣿⣿⣿⣿⣿⠿⣿⡏⠀⠀⠀⠀⢴⣶⣶⣿⣿⣿⣆
⢸⣿⠀⢸⣿⡇⠀⠀⠀⠀⠀⠈⠉⠁⠀⠀⠀⣿⡇⣀⣠⣴⣾⣮⣝⠿⠿⠿⣻⡟
⢸⣿⠀⠘⣿⡇⠀⠀⠀⠀⠀⠀⠀⣠⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠁⠉⠀
⠸⣿⠀⠀⣿⡇⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠉⠀⠀⠀⠀
⠀⠻⣷⣶⣿⣇⠀⠀⠀⢠⣼⣿⣿⣿⣿⣿⣿⣿⣛⣛⣻⠉⠁⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢸⣿⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢸⣿⣀⣀⣀⣼⡿⢿⣿⣿⣿⣿⣿⡿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠙⠛⠛⠛⠋⠁⠀⠙⠻⠿⠟⠋⠑⠛⠋⠀
2024-10-14 11:41:01
blackperson213cbzd.aternos.me
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.