Submission #37493194


Source Code Expand

#include <bits/stdc++.h>

typedef  long long ll;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
using namespace std;
int main() {
    ll A, B,ans=1;
    cin >> A >> B;
    for (int i = 0; i < B; i++) {
        ans *= A;
    }
    cout << ans << endl;
    return 0;
}

Submission Info

Submission Time
Task A - Power
User amaoto
Language C++ (GCC 9.2.1)
Score 100
Code Size 302 Byte
Status AC
Exec Time 6 ms
Memory 3420 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample example0.txt, example1.txt, example2.txt
All example0.txt, example1.txt, example2.txt, hand0.txt, hand1.txt, hand2.txt, hand3.txt, hand4.txt, max0.txt, min0.txt
Case Name Status Exec Time Memory
example0.txt AC 6 ms 3284 KiB
example1.txt AC 2 ms 3348 KiB
example2.txt AC 3 ms 3412 KiB
hand0.txt AC 2 ms 3300 KiB
hand1.txt AC 2 ms 3336 KiB
hand2.txt AC 2 ms 3408 KiB
hand3.txt AC 2 ms 3408 KiB
hand4.txt AC 2 ms 3420 KiB
max0.txt AC 2 ms 3420 KiB
min0.txt AC 2 ms 3348 KiB