0_0_16898027_30319\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_16898027_30319\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_16898027_30319\Main.java:4: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_16898027_30319\Main.java:5: 错误: 需要class, interface或enum
ll MOD;
^
0_0_16898027_30319\Main.java:7: 错误: 需要class, interface或enum
struct Matrix{
^
0_0_16898027_30319\Main.java:9: 错误: 需要class, interface或enum
void init(){
^
0_0_16898027_30319\Main.java:11: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:14: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:17: 错误: 需要class, interface或enum
Matrix multi(Matrix a, Matrix b){
^
0_0_16898027_30319\Main.java:19: 错误: 需要class, interface或enum
for(int i = 0; i < 3; ++i){
^
0_0_16898027_30319\Main.java:19: 错误: 需要class, interface或enum
for(int i = 0; i < 3; ++i){
^
0_0_16898027_30319\Main.java:19: 错误: 需要class, interface或enum
for(int i = 0; i < 3; ++i){
^
0_0_16898027_30319\Main.java:20: 错误: 需要class, interface或enum
for(int j = 0; j < 3; ++j){
^
0_0_16898027_30319\Main.java:20: 错误: 需要class, interface或enum
for(int j = 0; j < 3; ++j){
^
0_0_16898027_30319\Main.java:21: 错误: 需要class, interface或enum
for(int k = 0; k < 3; ++k)
^
0_0_16898027_30319\Main.java:21: 错误: 需要class, interface或enum
for(int k = 0; k < 3; ++k)
^
0_0_16898027_30319\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:30: 错误: 需要class, interface或enum
for(int i = 0; i < 3; ++i)
^
0_0_16898027_30319\Main.java:30: 错误: 需要class, interface或enum
for(int i = 0; i < 3; ++i)
^
0_0_16898027_30319\Main.java:30: 错误: 需要class, interface或enum
for(int i = 0; i < 3; ++i)
^
0_0_16898027_30319\Main.java:32: 错误: 需要class, interface或enum
while(n){
^
0_0_16898027_30319\Main.java:35: 错误: 需要class, interface或enum
n >>= 1;
^
0_0_16898027_30319\Main.java:36: 错误: 需要class, interface或enum
base = multi(base,base);
^
0_0_16898027_30319\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:43: 错误: 需要class, interface或enum
while(n){
^
0_0_16898027_30319\Main.java:46: 错误: 需要class, interface或enum
n >>= 1;
^
0_0_16898027_30319\Main.java:47: 错误: 需要class, interface或enum
a = a*a%p;
^
0_0_16898027_30319\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:50: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:54: 错误: 需要class, interface或enum
scanf("%d",&T);
^
0_0_16898027_30319\Main.java:55: 错误: 需要class, interface或enum
while(T--){
^
0_0_16898027_30319\Main.java:57: 错误: 需要class, interface或enum
scanf("%lld%lld%lld%lld%lld",&n,&a,&b,&c,&p);
^
0_0_16898027_30319\Main.java:58: 错误: 需要class, interface或enum
if(a%p == 0){
^
0_0_16898027_30319\Main.java:60: 错误: 需要class, interface或enum
continue;
^
0_0_16898027_30319\Main.java:61: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:63: 错误: 需要class, interface或enum
Matrix base;
^
0_0_16898027_30319\Main.java:64: 错误: 需要class, interface或enum
base.ary[0][0] = c; base.ary[0][1] = 1; base.ary[0][2] = 1;
^
0_0_16898027_30319\Main.java:64: 错误: 需要class, interface或enum
base.ary[0][0] = c; base.ary[0][1] = 1; base.ary[0][2] = 1;
^
0_0_16898027_30319\Main.java:64: 错误: 需要class, interface或enum
base.ary[0][0] = c; base.ary[0][1] = 1; base.ary[0][2] = 1;
^
0_0_16898027_30319\Main.java:65: 错误: 需要class, interface或enum
base.ary[1][0] = 1; base.ary[1][1] = 0; base.ary[1][2] = 0;
^
0_0_16898027_30319\Main.java:65: 错误: 需要class, interface或enum
base.ary[1][0] = 1; base.ary[1][1] = 0; base.ary[1][2] = 0;
^
0_0_16898027_30319\Main.java:65: 错误: 需要class, interface或enum
base.ary[1][0] = 1; base.ary[1][1] = 0; base.ary[1][2] = 0;
^
0_0_16898027_30319\Main.java:66: 错误: 需要class, interface或enum
base.ary[2][0] = 0; base.ary[2][1] = 0; base.ary[2][2] = 1;
^
0_0_16898027_30319\Main.java:66: 错误: 需要class, interface或enum
base.ary[2][0] = 0; base.ary[2][1] = 0; base.ary[2][2] = 1;
^
0_0_16898027_30319\Main.java:66: 错误: 需要class, interface或enum
base.ary[2][0] = 0; base.ary[2][1] = 0; base.ary[2][2] = 1;
^
0_0_16898027_30319\Main.java:67: 错误: 需要class, interface或enum
ll exp = quick_pow(base,n-2);
^
0_0_16898027_30319\Main.java:68: 错误: 需要class, interface或enum
ll ans = quick_pow(quick_pow(a,b,p),exp,p);
^
0_0_16898027_30319\Main.java:69: 错误: 需要class, interface或enum
printf("%lld\n",ans);
^
0_0_16898027_30319\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_16898027_30319\Main.java:72: 错误: 需要class, interface或enum
}
^
52 个错误
|