QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#481618 | #7413. Determinant | Catluo | WA | 2ms | 9004kb | C++14 | 3.4kb | 2024-07-17 11:45:13 | 2024-07-17 11:45:13 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
namespace IO{
char buff[1<<21],*p1=buff,*p2=buff;
char getch(){
return p1==p2&&(p2=((p1=buff)+fread(buff,1,1<<21,stdin)),p1==p2)?EOF:*p1++;
}
template<typename T>
void read(T &x){
char ch=getch();int fl=1;x=0;
while(ch>'9'||ch<'0'){if(ch=='-')fl=-1;ch=getch();}
while(ch<='9'&&ch>='0'){x=x*10+ch-48;ch=getch();}
x*=fl;
}
template<typename T,typename ...Args>
void read(T &x,Args& ...args){
read(x);read(args...);
}
char obuf[1<<21],*p3=obuf;
void putch(char ch){
if(p3-obuf<(1<<21))*p3++=ch;
else fwrite(obuf,p3-obuf,1,stdout),p3=obuf,*p3++=ch;
}
char ch[100];
template<typename T>
void write(T x){
if(!x)return putch('0');
if(x<0)putch('-'),x*=-1;
int top=0;
while(x)ch[++top]=x%10+48,x/=10;
while(top)putch(ch[top]),top--;
}
template<typename T,typename ...Args>
void write(T x,Args ...args){
write(x);write(args...);
}
void flush(){fwrite(obuf,p3-obuf,1,stdout);}
}
using namespace IO;
const int N=25005,K=25,mod=998244353;
inline int Mod(int x){return x>=mod?x-mod:x;}
inline int poww(int x,int y){
int sum=1;
while(y){
if(y&1)sum=1ll*sum*x%mod;
x=1ll*x*x%mod;
y>>=1;
}
return sum;
}
int n,m,MAXNK,Num;
vector<int>BCC[N];
int color[N],Wid[N];
vector<int>to[N];
int f[N][2];
int dfn[N],stk[N],low[N],top,dfs_clock;
void tarjan(int i,int fa){
// cout<<fa<<"->"<<i<<'\n';
low[i]=dfn[i]=++dfs_clock;
stk[++top]=i;
for(auto j:to[i]){
if(j==fa)continue;
if(dfn[j]==0)tarjan(j,i), low[i]=min(low[i],low[j]);
else low[i]=min(low[i],dfn[j]);
}
if(low[i]==dfn[i]){
Num++;
while(1){
int x=stk[top--];
color[x]=Num;
Wid[x]=BCC[Num].size();
BCC[Num].push_back(x);
if(x==i) break;
}
}
}
int val[K][K],g[K];
int det(int len){
static int a[K][K];
for(int i=0;i<len;i++)
for(int j=0;j<len;j++)
if(i!=j)a[i][j]=val[i][j]*g[i]%mod;
else a[i][j]=val[i][j];
int ans=1;
for(int i=0;i<len;i++){
int id=-1;
for(int j=i;j<len;j++)if(a[j][i]){id=j;break;}
if(id==-1)return 0;
if(id!=i)ans=mod-ans;
swap(a[i],a[id]);
int Inv=poww(a[i][i],mod-2);
for(int j=i+1;j<len;j++){
int s=mod-1ll*a[j][i]*Inv%mod;
for(int k=i;k<len;k++)a[j][k]=Mod(a[j][k]+1ll*a[i][k]*s%mod);
}
}
for(int i=0;i<len;i++)ans=1ll*ans*a[i][i]%mod;
return ans;
}
void calc(int X,int fa){
for(auto x:BCC[X])for(auto y:to[x])if(color[y]!=X&&color[y]!=fa)calc(color[y],X);
int rt=1,len=BCC[X].size();g[len]=1;
memset(val,0,sizeof val);
for(auto x:BCC[X]){
int res0=1,res1=0;
for(auto y:to[x]){
if(X==color[y])val[Wid[x]][Wid[y]]++;
else if(color[y]==fa)rt=Wid[x];
else res1=Mod(1ll*res1*f[color[y]][1]%mod+1ll*res0*f[color[y]][0]%mod),res0=1ll*res0*f[color[y]][1]%mod;
}
g[Wid[x]]=res0;
val[Wid[x]][Wid[x]]=res1;
}
f[X][1]=det(len);
val[len][rt]=val[rt][len]=1;
f[X][0]=det(len+1);
}
signed main(){
read(n,m,MAXNK);
for(int i=1;i<=m;i++){
int x,y;
read(x,y);
to[x].push_back(y);
to[y].push_back(x);
}
tarjan(1,0);
calc(Num,0);
write(f[Num][1]);
flush();
return 0;
}/*
10 12 3
3 5
5 9
5 10
1 2
1 3
2 3
4 5
4 6
5 6
7 8
7 9
8 9
*/
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 8432kb
input:
4 3 1 1 2 2 3 3 4
output:
1
result:
ok 1 number(s): "1"
Test #2:
score: 0
Accepted
time: 1ms
memory: 7696kb
input:
6 6 3 2 3 5 6 2 5 1 2 3 4 6 2
output:
998244352
result:
ok 1 number(s): "998244352"
Test #3:
score: 0
Accepted
time: 0ms
memory: 7768kb
input:
10 15 10 1 8 1 7 6 7 2 8 6 9 1 2 4 9 4 10 4 6 5 6 3 8 9 10 8 10 3 5 2 7
output:
35
result:
ok 1 number(s): "35"
Test #4:
score: 0
Accepted
time: 0ms
memory: 7764kb
input:
10 9 1 1 2 1 3 3 4 3 5 1 6 3 7 6 8 3 9 8 10
output:
0
result:
ok 1 number(s): "0"
Test #5:
score: 0
Accepted
time: 1ms
memory: 8444kb
input:
1 0 1
output:
0
result:
ok 1 number(s): "0"
Test #6:
score: 0
Accepted
time: 1ms
memory: 8424kb
input:
10 9 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10
output:
0
result:
ok 1 number(s): "0"
Test #7:
score: 0
Accepted
time: 1ms
memory: 7892kb
input:
10 12 3 3 5 5 9 5 10 1 2 1 3 2 3 4 5 4 6 5 6 7 8 7 9 8 9
output:
4
result:
ok 1 number(s): "4"
Test #8:
score: 0
Accepted
time: 1ms
memory: 8076kb
input:
10 12 3 3 5 1 8 6 10 1 2 1 3 2 3 4 5 4 6 5 6 7 8 7 9 8 9
output:
3
result:
ok 1 number(s): "3"
Test #9:
score: 0
Accepted
time: 1ms
memory: 7756kb
input:
10 11 3 1 2 1 3 1 8 1 9 3 4 3 5 4 5 6 7 6 8 7 8 9 10
output:
4
result:
ok 1 number(s): "4"
Test #10:
score: 0
Accepted
time: 1ms
memory: 8692kb
input:
10 11 3 1 2 1 3 1 6 1 9 3 4 3 5 4 5 6 7 6 8 7 8 9 10
output:
4
result:
ok 1 number(s): "4"
Test #11:
score: 0
Accepted
time: 1ms
memory: 7756kb
input:
10 15 7 2 9 1 2 1 4 1 6 1 7 2 3 2 5 2 6 3 5 4 5 4 6 5 6 8 9 8 10 9 10
output:
3
result:
ok 1 number(s): "3"
Test #12:
score: 0
Accepted
time: 1ms
memory: 8372kb
input:
10 25 7 4 10 1 2 1 3 1 4 1 5 1 6 1 7 2 3 2 4 2 5 2 6 2 7 3 4 3 5 3 6 3 7 4 5 4 6 4 7 5 6 5 7 6 7 8 9 8 10 9 10
output:
7
result:
ok 1 number(s): "7"
Test #13:
score: 0
Accepted
time: 0ms
memory: 8420kb
input:
10 12 7 1 2 1 5 1 10 3 4 3 7 3 9 4 6 4 9 5 8 6 9 7 8 8 9
output:
0
result:
ok 1 number(s): "0"
Test #14:
score: 0
Accepted
time: 0ms
memory: 8464kb
input:
10 24 7 1 2 1 4 1 10 3 4 3 5 3 6 3 7 3 8 3 9 4 5 4 6 4 7 4 8 4 9 5 6 5 7 5 8 5 9 6 7 6 8 6 9 7 8 7 9 8 9
output:
0
result:
ok 1 number(s): "0"
Test #15:
score: 0
Accepted
time: 1ms
memory: 8688kb
input:
10 18 10 1 3 1 5 1 6 1 8 1 9 2 5 2 7 2 9 3 5 3 9 3 10 4 5 4 10 5 6 6 7 6 8 7 9 8 9
output:
998244349
result:
ok 1 number(s): "998244349"
Test #16:
score: 0
Accepted
time: 1ms
memory: 6960kb
input:
10 45 10 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 3 4 3 5 3 6 3 7 3 8 3 9 3 10 4 5 4 6 4 7 4 8 4 9 4 10 5 6 5 7 5 8 5 9 5 10 6 7 6 8 6 9 6 10 7 8 7 9 7 10 8 9 8 10 9 10
output:
998244344
result:
ok 1 number(s): "998244344"
Test #17:
score: 0
Accepted
time: 1ms
memory: 8776kb
input:
10 14 10 1 2 1 10 3 5 4 6 4 8 4 9 5 6 5 8 5 9 6 8 6 9 7 8 8 9 9 10
output:
998244352
result:
ok 1 number(s): "998244352"
Test #18:
score: 0
Accepted
time: 1ms
memory: 8720kb
input:
10 30 10 1 2 1 10 3 4 3 5 3 6 3 7 3 8 3 9 3 10 4 5 4 6 4 7 4 8 4 9 4 10 5 6 5 7 5 8 5 9 5 10 6 7 6 8 6 9 6 10 7 8 7 9 7 10 8 9 8 10 9 10
output:
7
result:
ok 1 number(s): "7"
Test #19:
score: 0
Accepted
time: 1ms
memory: 8096kb
input:
10 24 15 1 3 1 4 1 5 1 6 1 9 2 3 2 4 2 5 2 7 2 9 2 10 3 5 3 6 4 6 4 7 4 9 4 10 6 7 6 8 6 9 7 9 7 10 8 10 9 10
output:
16
result:
ok 1 number(s): "16"
Test #20:
score: 0
Accepted
time: 1ms
memory: 8768kb
input:
10 45 15 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 3 4 3 5 3 6 3 7 3 8 3 9 3 10 4 5 4 6 4 7 4 8 4 9 4 10 5 6 5 7 5 8 5 9 5 10 6 7 6 8 6 9 6 10 7 8 7 9 7 10 8 9 8 10 9 10
output:
998244344
result:
ok 1 number(s): "998244344"
Test #21:
score: 0
Accepted
time: 1ms
memory: 8276kb
input:
10 16 15 1 2 1 6 3 5 3 6 3 7 3 9 3 10 4 7 4 9 4 10 5 10 6 8 6 9 7 9 7 10 8 9
output:
7
result:
ok 1 number(s): "7"
Test #22:
score: 0
Accepted
time: 1ms
memory: 8300kb
input:
10 30 15 1 2 1 7 3 4 3 5 3 6 3 7 3 8 3 9 3 10 4 5 4 6 4 7 4 8 4 9 4 10 5 6 5 7 5 8 5 9 5 10 6 7 6 8 6 9 6 10 7 8 7 9 7 10 8 9 8 10 9 10
output:
7
result:
ok 1 number(s): "7"
Test #23:
score: 0
Accepted
time: 0ms
memory: 7796kb
input:
10 20 25 1 2 1 7 1 8 1 9 2 3 2 5 2 6 2 9 2 10 3 6 3 10 4 6 4 8 5 6 5 7 6 9 7 9 8 9 8 10 9 10
output:
11
result:
ok 1 number(s): "11"
Test #24:
score: 0
Accepted
time: 0ms
memory: 7820kb
input:
10 45 25 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 3 4 3 5 3 6 3 7 3 8 3 9 3 10 4 5 4 6 4 7 4 8 4 9 4 10 5 6 5 7 5 8 5 9 5 10 6 7 6 8 6 9 6 10 7 8 7 9 7 10 8 9 8 10 9 10
output:
998244344
result:
ok 1 number(s): "998244344"
Test #25:
score: 0
Accepted
time: 0ms
memory: 7776kb
input:
10 18 25 1 2 1 9 3 5 3 9 3 10 4 6 4 7 4 9 4 10 5 7 5 9 5 10 6 7 6 9 7 9 7 10 8 9 8 10
output:
998244352
result:
ok 1 number(s): "998244352"
Test #26:
score: 0
Accepted
time: 0ms
memory: 8936kb
input:
10 30 25 1 2 1 10 3 4 3 5 3 6 3 7 3 8 3 9 3 10 4 5 4 6 4 7 4 8 4 9 4 10 5 6 5 7 5 8 5 9 5 10 6 7 6 8 6 9 6 10 7 8 7 9 7 10 8 9 8 10 9 10
output:
7
result:
ok 1 number(s): "7"
Test #27:
score: 0
Accepted
time: 1ms
memory: 8848kb
input:
1000 999 1 1 2 1 3 1 4 4 5 5 6 4 7 1 8 6 9 9 10 9 11 11 12 11 13 11 14 5 15 6 16 4 17 16 18 10 19 8 20 6 21 16 22 14 23 22 24 4 25 6 26 14 27 27 28 26 29 6 30 28 31 20 32 10 33 26 34 21 35 16 36 33 37 4 38 27 39 19 40 24 41 35 42 33 43 36 44 22 45 12 46 9 47 3 48 34 49 12 50 28 51 41 52 7 53 39 54 3...
output:
0
result:
ok 1 number(s): "0"
Test #28:
score: 0
Accepted
time: 1ms
memory: 8332kb
input:
1000 999 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 ...
output:
0
result:
ok 1 number(s): "0"
Test #29:
score: 0
Accepted
time: 1ms
memory: 8652kb
input:
1000 1332 3 3 5 5 9 8 10 8 13 13 16 15 21 6 22 23 26 1 30 4 31 8 36 36 39 4 41 21 44 42 48 33 51 14 53 48 57 10 60 46 63 55 64 10 67 42 71 42 75 1 78 16 80 50 83 81 85 69 90 80 93 55 96 10 98 16 100 101 103 85 108 18 110 1 112 85 115 37 120 75 121 45 124 15 129 80 132 29 134 71 136 132 141 85 144 12...
output:
56551060
result:
ok 1 number(s): "56551060"
Test #30:
score: 0
Accepted
time: 2ms
memory: 8536kb
input:
1000 1332 3 1 4 6 7 7 11 1 13 8 16 4 19 12 23 4 25 18 29 9 31 2 35 26 39 15 42 10 43 30 46 17 49 45 53 48 56 19 59 38 62 17 65 17 67 15 70 11 73 72 77 78 79 25 84 80 87 20 88 8 93 59 94 73 98 75 102 94 105 59 108 84 111 15 113 88 116 57 120 42 122 14 126 55 129 11 131 59 135 39 137 128 140 51 144 12...
output:
989092356
result:
ok 1 number(s): "989092356"
Test #31:
score: 0
Accepted
time: 0ms
memory: 7864kb
input:
1000 1331 3 1 2 1 3 1 6 1 10 1 14 1 15 1 18 1 23 1 25 1 27 1 31 1 35 1 38 1 39 1 44 1 45 1 48 1 52 1 54 1 57 1 61 1 63 1 67 1 71 1 73 1 76 1 78 1 81 1 86 1 89 1 92 1 95 1 97 1 101 1 102 1 107 1 108 1 112 1 114 1 118 1 120 1 125 1 126 1 131 1 132 1 136 1 139 1 143 1 144 1 147 1 150 1 153 1 158 1 159 ...
output:
179729948
result:
ok 1 number(s): "179729948"
Test #32:
score: 0
Accepted
time: 0ms
memory: 8800kb
input:
1000 1331 3 1 2 1 4 1 7 1 9 1 13 1 16 1 19 1 22 1 26 1 29 1 30 1 34 1 38 1 40 1 44 1 46 1 49 1 52 1 55 1 57 1 60 1 64 1 67 1 69 1 74 1 77 1 78 1 83 1 85 1 89 1 91 1 95 1 96 1 101 1 104 1 106 1 108 1 111 1 114 1 119 1 121 1 124 1 128 1 129 1 133 1 137 1 140 1 142 1 144 1 149 1 150 1 153 1 158 1 160 1...
output:
179729948
result:
ok 1 number(s): "179729948"
Test #33:
score: 0
Accepted
time: 2ms
memory: 8640kb
input:
1000 1747 7 7 8 7 20 2 22 10 34 34 38 31 43 33 52 39 58 58 64 27 76 2 80 76 89 89 98 66 100 45 107 60 115 109 126 119 130 16 137 3 147 122 150 89 158 105 168 62 169 93 180 50 187 130 192 81 198 21 205 3 216 90 220 172 227 229 238 221 244 59 246 31 256 71 262 181 271 63 278 246 282 121 294 205 298 14...
output:
721276012
result:
ok 1 number(s): "721276012"
Test #34:
score: 0
Accepted
time: 2ms
memory: 8988kb
input:
1000 3139 7 2 11 9 17 13 26 24 35 3 41 12 43 27 52 48 62 34 69 38 71 66 78 22 89 15 96 72 104 15 111 23 114 59 124 90 130 133 134 11 144 78 152 132 158 94 167 155 173 119 178 173 189 75 196 192 200 104 210 54 216 95 218 95 229 84 232 79 244 243 252 240 258 93 265 138 272 102 276 55 283 78 294 12 298...
output:
576050090
result:
ok 1 number(s): "576050090"
Test #35:
score: 0
Accepted
time: 1ms
memory: 7824kb
input:
1000 1758 7 1 2 1 4 1 13 1 23 1 24 1 31 1 38 1 45 1 55 1 62 1 66 1 78 1 81 1 90 1 96 1 102 1 112 1 115 1 125 1 131 1 139 1 146 1 154 1 159 1 167 1 177 1 183 1 187 1 192 1 202 1 208 1 218 1 223 1 228 1 237 1 245 1 251 1 255 1 265 1 274 1 276 1 288 1 294 1 299 1 307 1 314 1 320 1 328 1 333 1 340 1 352...
output:
703853731
result:
ok 1 number(s): "703853731"
Test #36:
score: 0
Accepted
time: 2ms
memory: 8964kb
input:
1000 3132 7 1 2 1 4 1 16 1 20 1 24 1 31 1 39 1 49 1 56 1 63 1 66 1 79 1 83 1 92 1 100 1 101 1 108 1 116 1 128 1 135 1 138 1 147 1 153 1 157 1 168 1 176 1 183 1 189 1 198 1 202 1 208 1 217 1 224 1 228 1 236 1 247 1 249 1 260 1 263 1 273 1 277 1 287 1 296 1 297 1 308 1 311 1 324 1 328 1 338 1 342 1 34...
output:
900612370
result:
ok 1 number(s): "900612370"
Test #37:
score: 0
Accepted
time: 2ms
memory: 8160kb
input:
1000 2371 10 8 11 18 27 12 36 38 43 48 60 49 66 26 79 5 85 72 95 20 106 7 114 36 126 84 139 52 147 150 158 4 168 77 179 39 183 68 196 62 203 60 219 22 221 19 238 71 242 26 254 229 264 123 271 202 287 154 294 139 304 231 317 46 326 262 336 215 347 206 355 242 364 277 380 7 385 311 400 237 407 5 414 2...
output:
41358971
result:
ok 1 number(s): "41358971"
Test #38:
score: 0
Accepted
time: 2ms
memory: 7872kb
input:
1000 4599 10 2 11 2 24 24 32 12 47 45 51 17 67 41 71 28 89 34 96 62 103 15 111 116 129 25 136 123 149 104 151 125 168 96 173 136 181 93 197 73 205 205 214 85 227 32 237 56 244 2 257 125 267 47 275 213 285 158 296 68 306 247 314 255 328 43 338 276 348 113 359 150 367 305 379 79 383 202 400 196 405 34...
output:
996745867
result:
ok 1 number(s): "996745867"
Test #39:
score: 0
Accepted
time: 2ms
memory: 8152kb
input:
1000 2379 10 1 2 1 12 1 19 1 30 1 35 1 52 1 60 1 65 1 80 1 91 1 93 1 105 1 115 1 125 1 141 1 147 1 154 1 164 1 182 1 186 1 198 1 212 1 222 1 230 1 240 1 243 1 254 1 267 1 281 1 286 1 299 1 312 1 313 1 331 1 340 1 344 1 359 1 368 1 381 1 385 1 396 1 404 1 415 1 425 1 436 1 447 1 457 1 464 1 478 1 486...
output:
693447153
result:
ok 1 number(s): "693447153"
Test #40:
score: 0
Accepted
time: 2ms
memory: 8468kb
input:
1000 4584 10 1 2 1 9 1 15 1 23 1 38 1 50 1 59 1 68 1 81 1 87 1 95 1 103 1 113 1 128 1 134 1 151 1 153 1 165 1 173 1 188 1 199 1 207 1 215 1 230 1 240 1 250 1 258 1 265 1 273 1 289 1 301 1 312 1 321 1 325 1 334 1 349 1 361 1 369 1 380 1 391 1 395 1 404 1 414 1 430 1 442 1 448 1 457 1 463 1 477 1 492 ...
output:
718963985
result:
ok 1 number(s): "718963985"
Test #41:
score: 0
Accepted
time: 2ms
memory: 8504kb
input:
1000 3541 15 2 24 14 37 6 52 16 62 58 82 12 99 21 107 60 124 126 138 77 157 125 175 53 194 2 201 172 220 194 231 159 248 14 266 83 278 276 291 198 307 74 330 104 332 22 358 108 375 102 383 295 397 281 418 68 428 172 442 60 456 440 469 332 483 99 502 207 524 134 537 284 541 369 563 416 575 394 592 39...
output:
78661251
result:
ok 1 number(s): "78661251"
Test #42:
score: 0
Accepted
time: 2ms
memory: 7928kb
input:
1000 7041 15 12 30 5 44 5 47 50 70 54 87 46 104 4 118 84 124 66 150 89 162 111 170 171 193 187 199 63 215 18 235 85 253 142 269 28 283 46 292 104 315 249 320 189 332 236 357 77 367 316 378 137 405 164 408 71 432 366 448 374 460 457 470 177 481 402 496 419 523 525 533 247 554 423 556 419 579 239 590 ...
output:
70436014
result:
ok 1 number(s): "70436014"
Test #43:
score: 0
Accepted
time: 0ms
memory: 8372kb
input:
1000 3532 15 1 2 1 17 1 30 1 43 1 52 1 70 1 80 1 103 1 118 1 127 1 148 1 163 1 175 1 194 1 199 1 222 1 242 1 251 1 261 1 281 1 295 1 313 1 322 1 346 1 351 1 367 1 387 1 394 1 419 1 437 1 442 1 464 1 479 1 491 1 506 1 523 1 535 1 548 1 572 1 579 1 591 1 607 1 618 1 643 1 659 1 677 1 679 1 696 1 708 1...
output:
449126096
result:
ok 1 number(s): "449126096"
Test #44:
score: 0
Accepted
time: 2ms
memory: 9004kb
input:
1000 7026 15 1 2 1 15 1 25 1 37 1 51 1 68 1 90 1 102 1 114 1 132 1 144 1 155 1 173 1 189 1 203 1 226 1 229 1 249 1 261 1 274 1 299 1 313 1 321 1 339 1 361 1 367 1 392 1 398 1 411 1 425 1 444 1 455 1 473 1 491 1 511 1 523 1 536 1 553 1 571 1 581 1 597 1 609 1 623 1 635 1 652 1 668 1 679 1 694 1 721 1...
output:
438565245
result:
ok 1 number(s): "438565245"
Test #45:
score: -100
Wrong Answer
time: 2ms
memory: 7868kb
input:
1000 6064 25 20 46 40 60 58 98 2 105 84 127 125 162 92 188 183 203 31 227 230 257 234 299 3 316 36 333 260 352 295 387 218 403 417 450 304 473 310 498 31 518 488 526 212 565 269 581 567 625 390 642 442 656 237 687 239 719 282 741 214 753 62 791 778 816 459 849 628 859 318 891 28 908 330 948 608 960 ...
output:
642982809
result:
wrong answer 1st numbers differ - expected: '81250834', found: '642982809'