累乗2
解答
#include <iostream>
using namespace std;
int main(void){
int a, b, c, d, x, n;
cin >> a >> b >> c >> d;
x = ((a + b) * c) * ((a + b) * c);
n = x %= d;
cout << n << endl;
return 0;
}
代入演算4
解答
#include <iostream>
using namespace std;
int main(void){
int a, b, n =10000;
cin >> a >> b;
n /= a;
n %= b;
cout << n << endl;
return 0;
}