为甚么是 Unknown Error?
查看原帖
为甚么是 Unknown Error?
1025321
midsummer_zyl楼主2023/7/8 20:45
#include <bits/stdc++.h>
using namespace std;
int main() {
    long long a, b, c, s = 1, ans = 1;
    scanf("%lld%lld%lld", &a, &b, &c);
    for (int i = 1; i <= c; i++) {
    	s *= b;
    	s %= 10;
	}
    for (int i = 1; i <= s; i++) {
    	ans *= a;
    	ans %= 10;
	}
    printf("%lld", ans);
    return 0;
}

求救大佬

2023/7/8 20:45
加载中...