测试点过不去啊
查看原帖
测试点过不去啊
1395326
guoyanwei120223楼主2025/1/25 15:41
#include<bits/stdc++.h> 
using namespace std;

int main()
{
	int a,b,p,s; 
	cin>>a>>b>>p;
	s=pow(a,b);
	s%=p;
	printf("%d^%d mod %d=%d",a,b,p,s);
	return 0;
}

测试点只能过去前两个

哪位大佬帮帮忙 #必回关

2025/1/25 15:41
加载中...