QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#665960#8726. Magic Showhuazai6760 0ms1860kbC++171.5kb2024-10-22 16:02:202024-10-22 16:02:25

Judging History

你现在查看的是最新测评结果

  • [2024-10-22 16:02:25]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:1860kb
  • [2024-10-22 16:02:20]
  • 提交

Alice

#include<iostream>
#include<cstring>
#include<algorithm>
#include<vector>
#include<random>
#include "Alice.h"

using namespace std;

namespace
{
    const int N=63,M=60;
    typedef long long ll;
    mt19937 rd(172328);
    int a[N*M+10];
}

vector<pair<int,int> > Alice()
{
    vector<pair<int,int> > res;
    ll x=setN(N*M+2);
    int n=N*M+2;
    for(int i=1;i<=n;i++) a[i]=i;
    shuffle(a+1,a+n+1,rd);
    for(int i=0;i<N;i++)
    {
        for(int j=1;j<=M;j++)
        {
            int u=i*M+j;
            if(x>>i&1)
                res.push_back({a[u],a[N*M+1]});
            else
                res.push_back({a[u],a[N*M+2]});
        }
    }
    res.push_back({a[N*M+1],a[N*M+2]});
    shuffle(res.begin(),res.end(),rd);
    return res;
}

Bob

#include<iostream>
#include<cstring>
#include<algorithm>
#include<vector>
#include<random>
#include "Bob.h"

using namespace std;

namespace
{
    const int N=63,M=60;
    typedef long long ll;
    int fa[N*M+10];
    mt19937 rd(172328);
    int a[N*M+10],b[N*M+10];
}

ll Bob(vector<pair<int,int> > V)
{
    int n=N*M+2;
    for(int i=1;i<=n;i++) a[i]=i;
    shuffle(a+1,a+n+1,rd);
    for(int i=1;i<=n;i++) b[a[i]]=i;
    for(auto[u,v]:V)
    {
        if(b[v]==N*M+1) fa[b[u]]=1;
        if(b[u]==N*M+1) fa[b[v]]=1;
    }
    ll res=0;
    for(int i=0;i<N;i++)
    {
        ll f=0;
        for(int j=1;j<=M;j++)
        {
            int u=i*M+j;
            f|=fa[u];
        }
        res|=f<<i;
    }
    return res;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1844kb,1836kb

input:

1
4005

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 3087
175 3087
3390 3087
2121 2250
2338 3087
617 2250
1385 3087
2375 2250
3601 3087
1941 3087
922 2250
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 3087
175 3087
3390 3087
2121 2250
2338 3087
617 2250
1385 3087
2375 2250
3601 3087
1941 3087
922 2250
...

output:

2
3782 1922
3 3087
4 3087
9 2250
12 3087
15 3087
17 3087
18 2250
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 3087
34 3087
36 3087
37 3087
39 3087
46 3087
48 3087
50 3087
51 2250
54 3087
55 3087
57 3087
59 3087
60 3087
61 2250
64 3087
65 3087
67 3087
69 3087
71 3087
72 3087
74 3087
80 3087
81 ...

input:

2
3782 1922
3 3087
4 3087
9 2250
12 3087
15 3087
17 3087
18 2250
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 3087
34 3087
36 3087
37 3087
39 3087
46 3087
48 3087
50 3087
51 2250
54 3087
55 3087
57 3087
59 3087
60 3087
61 2250
64 3087
65 3087
67 3087
69 3087
71 3087
72 3087
74 3087
80 3087
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
4005

Test #2:

score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1844kb,1836kb

input:

1
459

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 2250
175 3087
3390 3087
2121 3087
2338 3087
617 2250
1385 3087
2375 2250
3601 3087
1941 3087
922 3087
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 2250
175 3087
3390 3087
2121 3087
2338 3087
617 2250
1385 3087
2375 2250
3601 3087
1941 3087
922 3087
...

output:

2
3782 1922
3 3087
4 3087
9 3087
12 3087
15 3087
17 3087
18 2250
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 3087
34 3087
36 3087
37 3087
39 3087
46 3087
48 3087
50 3087
51 2250
54 3087
55 2250
57 3087
59 3087
60 3087
61 3087
64 3087
65 3087
67 2250
69 3087
71 3087
72 3087
74 2250
80 3087
81 ...

input:

2
3782 1922
3 3087
4 3087
9 3087
12 3087
15 3087
17 3087
18 2250
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 3087
34 3087
36 3087
37 3087
39 3087
46 3087
48 3087
50 3087
51 2250
54 3087
55 2250
57 3087
59 3087
60 3087
61 3087
64 3087
65 3087
67 2250
69 3087
71 3087
72 3087
74 2250
80 3087
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
459

Test #3:

score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1844kb,1840kb

input:

1
2495

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 3087
175 3087
3390 3087
2121 2250
2338 3087
617 2250
1385 3087
2375 2250
3601 3087
1941 3087
922 2250
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 3087
175 3087
3390 3087
2121 2250
2338 3087
617 2250
1385 3087
2375 2250
3601 3087
1941 3087
922 2250
...

output:

2
3782 1922
3 3087
4 3087
9 2250
12 3087
15 3087
17 3087
18 2250
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 3087
34 3087
36 3087
37 3087
39 3087
46 3087
48 3087
50 3087
51 2250
54 3087
55 2250
57 3087
59 3087
60 3087
61 2250
64 3087
65 3087
67 2250
69 3087
71 3087
72 3087
74 3087
80 3087
81 ...

input:

2
3782 1922
3 3087
4 3087
9 2250
12 3087
15 3087
17 3087
18 2250
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 3087
34 3087
36 3087
37 3087
39 3087
46 3087
48 3087
50 3087
51 2250
54 3087
55 2250
57 3087
59 3087
60 3087
61 2250
64 3087
65 3087
67 2250
69 3087
71 3087
72 3087
74 3087
80 3087
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
2495

Test #4:

score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1848kb,1860kb

input:

3
1560

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 3087
175 3087
3390 3087
2121 3087
2338 3087
617 3087
1385 3087
2375 3087
3601 3087
1941 3087
922 3087
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 3087
175 3087
3390 3087
2121 3087
2338 3087
617 3087
1385 3087
2375 3087
3601 3087
1941 3087
922 3087
...

output:

4
3782 3539
1 3087
2 3087
3 3087
4 3087
5 3087
6 3087
7 3087
8 3087
9 3087
10 3087
11 3087
12 3087
13 3087
14 3087
15 3087
16 3087
17 3087
18 3087
19 3087
20 3087
21 3087
22 3087
23 3087
24 3087
25 3087
26 3087
27 3087
28 3087
29 3087
30 3087
31 3087
32 3087
33 3087
34 3087
35 3087
36 3087
37 3087
3...

input:

4
3782 3539
1 3087
2 3087
3 3087
4 3087
5 3087
6 3087
7 3087
8 3087
9 3087
10 3087
11 3087
12 3087
13 3087
14 3087
15 3087
16 3087
17 3087
18 3087
19 3087
20 3087
21 3087
22 3087
23 3087
24 3087
25 3087
26 3087
27 3087
28 3087
29 3087
30 3087
31 3087
32 3087
33 3087
34 3087
35 3087
36 3087
37 3087
3...

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Incorrect answer.

Subtask #2:

score: 0
Wrong Answer

Test #13:

score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1840kb,1844kb

input:

1
17476204

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 2250
96 3087
1858 3087
846 3087
2308 2250
175 3087
3390 3087
2121 2250
2338 3087
617 3087
1385 3087
2375 3087
3601 3087
1941 3087
922 2250
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 2250
96 3087
1858 3087
846 3087
2308 2250
175 3087
3390 3087
2121 2250
2338 3087
617 3087
1385 3087
2375 3087
3601 3087
1941 3087
922 2250
...

output:

2
3782 1922
3 3087
4 3087
9 2250
12 3087
15 3087
17 3087
18 3087
19 3087
20 3087
21 2250
26 3087
30 3087
31 3087
33 3087
34 3087
36 2250
37 3087
39 3087
46 3087
48 3087
50 2250
51 3087
54 3087
55 3087
57 3087
59 3087
60 3087
61 2250
64 3087
65 3087
67 3087
69 3087
71 3087
72 3087
74 2250
80 3087
81 ...

input:

2
3782 1922
3 3087
4 3087
9 2250
12 3087
15 3087
17 3087
18 3087
19 3087
20 3087
21 2250
26 3087
30 3087
31 3087
33 3087
34 3087
36 2250
37 3087
39 3087
46 3087
48 3087
50 2250
51 3087
54 3087
55 3087
57 3087
59 3087
60 3087
61 2250
64 3087
65 3087
67 3087
69 3087
71 3087
72 3087
74 2250
80 3087
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
17476204

Test #14:

score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1840kb,1848kb

input:

1
11926600

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 2250
2308 2250
175 3087
3390 3087
2121 3087
2338 3087
617 3087
1385 3087
2375 3087
3601 3087
1941 3087
922 2250
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 2250
2308 2250
175 3087
3390 3087
2121 3087
2338 3087
617 3087
1385 3087
2375 3087
3601 3087
1941 3087
922 2250
...

output:

2
3782 1922
3 3087
4 3087
9 2250
12 3087
15 3087
17 3087
18 3087
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 2250
34 3087
36 2250
37 3087
39 3087
46 3087
48 3087
50 3087
51 3087
54 3087
55 3087
57 3087
59 3087
60 3087
61 3087
64 2250
65 2250
67 3087
69 3087
71 3087
72 3087
74 2250
80 3087
81 ...

input:

2
3782 1922
3 3087
4 3087
9 2250
12 3087
15 3087
17 3087
18 3087
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 2250
34 3087
36 2250
37 3087
39 3087
46 3087
48 3087
50 3087
51 3087
54 3087
55 3087
57 3087
59 3087
60 3087
61 3087
64 2250
65 2250
67 3087
69 3087
71 3087
72 3087
74 2250
80 3087
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
11926600

Test #15:

score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1844kb,1844kb

input:

1
16602378

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 2250
96 3087
1858 3087
846 2250
2308 3087
175 3087
3390 3087
2121 3087
2338 3087
617 2250
1385 3087
2375 3087
3601 3087
1941 3087
922 3087
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 2250
96 3087
1858 3087
846 2250
2308 3087
175 3087
3390 3087
2121 3087
2338 3087
617 2250
1385 3087
2375 3087
3601 3087
1941 3087
922 3087
...

output:

2
3782 1922
3 3087
4 3087
9 3087
12 3087
15 3087
17 3087
18 3087
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 2250
34 3087
36 3087
37 3087
39 3087
46 3087
48 3087
50 3087
51 2250
54 3087
55 2250
57 3087
59 3087
60 3087
61 3087
64 2250
65 2250
67 2250
69 3087
71 3087
72 3087
74 3087
80 3087
81 ...

input:

2
3782 1922
3 3087
4 3087
9 3087
12 3087
15 3087
17 3087
18 3087
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 2250
34 3087
36 3087
37 3087
39 3087
46 3087
48 3087
50 3087
51 2250
54 3087
55 2250
57 3087
59 3087
60 3087
61 3087
64 2250
65 2250
67 2250
69 3087
71 3087
72 3087
74 3087
80 3087
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
16602378

Test #16:

score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1840kb,1856kb

input:

3
13129243

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
3782
1563 3087
1161 3087
2236 2250
96 3087
1858 3087
846 2250
2308 3087
175 3087
3390 3087
2121 3087
2338 3087
617 3087
1385 3087
2375 2250
3601 3087
1941 3087
922 3087
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
3782
1563 3087
1161 3087
2236 2250
96 3087
1858 3087
846 2250
2308 3087
175 3087
3390 3087
2121 3087
2338 3087
617 3087
1385 3087
2375 2250
3601 3087
1941 3087
922 3087
...

output:

4
3782 3119
1 3087
2 3087
3 3087
4 3087
5 3087
6 3087
7 3087
8 3087
9 3087
10 3087
11 3087
12 3087
13 3087
14 3087
15 3087
16 3087
17 3087
18 3087
19 3087
20 3087
21 3087
22 3087
23 3087
24 3087
25 3087
26 3087
27 3087
28 3087
29 3087
30 3087
31 3087
32 3087
34 3087
35 3087
36 3087
37 3087
38 3087
3...

input:

4
3782 3119
1 3087
2 3087
3 3087
4 3087
5 3087
6 3087
7 3087
8 3087
9 3087
10 3087
11 3087
12 3087
13 3087
14 3087
15 3087
16 3087
17 3087
18 3087
19 3087
20 3087
21 3087
22 3087
23 3087
24 3087
25 3087
26 3087
27 3087
28 3087
29 3087
30 3087
31 3087
32 3087
34 3087
35 3087
36 3087
37 3087
38 3087
3...

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Incorrect answer.

Subtask #3:

score: 0
Wrong Answer

Test #25:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1840kb,1844kb

input:

1
355365355024496523

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 2250
1161 3087
2236 3087
96 3087
1858 2250
846 3087
2308 3087
175 3087
3390 2250
2121 3087
2338 2250
617 2250
1385 2250
2375 2250
3601 2250
1941 2250
922 3087
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 2250
1161 3087
2236 3087
96 3087
1858 2250
846 3087
2308 3087
175 3087
3390 2250
2121 3087
2338 2250
617 2250
1385 2250
2375 2250
3601 2250
1941 2250
922 3087
...

output:

2
3782 1922
3 3087
4 2250
9 3087
12 3087
15 2250
17 2250
18 2250
19 3087
20 3087
21 2250
26 3087
30 3087
31 3087
33 3087
34 2250
36 2250
37 2250
39 3087
46 2250
48 3087
50 2250
51 2250
54 3087
55 2250
57 3087
59 3087
60 3087
61 3087
64 2250
65 2250
67 2250
69 3087
71 2250
72 2250
74 3087
80 2250
81 ...

input:

2
3782 1922
3 3087
4 2250
9 3087
12 3087
15 2250
17 2250
18 2250
19 3087
20 3087
21 2250
26 3087
30 3087
31 3087
33 3087
34 2250
36 2250
37 2250
39 3087
46 2250
48 3087
50 2250
51 2250
54 3087
55 2250
57 3087
59 3087
60 3087
61 3087
64 2250
65 2250
67 2250
69 3087
71 2250
72 2250
74 3087
80 2250
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
355365355024496523

Test #26:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1848kb,1848kb

input:

1
727827999106414164

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 2250
1161 2250
2236 3087
96 2250
1858 3087
846 3087
2308 2250
175 3087
3390 2250
2121 3087
2338 2250
617 3087
1385 3087
2375 3087
3601 3087
1941 3087
922 3087
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 2250
1161 2250
2236 3087
96 2250
1858 3087
846 3087
2308 2250
175 3087
3390 2250
2121 3087
2338 2250
617 3087
1385 3087
2375 3087
3601 3087
1941 3087
922 3087
...

output:

2
3782 1922
3 2250
4 3087
9 3087
12 3087
15 3087
17 2250
18 3087
19 2250
20 3087
21 2250
26 2250
30 3087
31 3087
33 3087
34 3087
36 2250
37 3087
39 2250
46 3087
48 3087
50 3087
51 3087
54 3087
55 3087
57 2250
59 3087
60 2250
61 2250
64 3087
65 3087
67 3087
69 3087
71 3087
72 2250
74 2250
80 2250
81 ...

input:

2
3782 1922
3 2250
4 3087
9 3087
12 3087
15 3087
17 2250
18 3087
19 2250
20 3087
21 2250
26 2250
30 3087
31 3087
33 3087
34 3087
36 2250
37 3087
39 2250
46 3087
48 3087
50 3087
51 3087
54 3087
55 3087
57 2250
59 3087
60 2250
61 2250
64 3087
65 3087
67 3087
69 3087
71 3087
72 2250
74 2250
80 2250
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
727827999106414164

Test #27:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1840kb,1852kb

input:

1
656410143989222955

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 2250
2236 3087
96 2250
1858 3087
846 2250
2308 3087
175 3087
3390 3087
2121 2250
2338 2250
617 3087
1385 2250
2375 2250
3601 3087
1941 3087
922 2250
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 2250
2236 3087
96 2250
1858 3087
846 2250
2308 3087
175 3087
3390 3087
2121 2250
2338 2250
617 3087
1385 2250
2375 2250
3601 3087
1941 3087
922 2250
...

output:

2
3782 1922
3 2250
4 3087
9 2250
12 3087
15 2250
17 3087
18 3087
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 2250
34 2250
36 3087
37 3087
39 2250
46 3087
48 3087
50 2250
51 3087
54 3087
55 2250
57 3087
59 3087
60 3087
61 3087
64 3087
65 3087
67 2250
69 3087
71 3087
72 2250
74 3087
80 2250
81 ...

input:

2
3782 1922
3 2250
4 3087
9 2250
12 3087
15 2250
17 3087
18 3087
19 3087
20 3087
21 3087
26 3087
30 3087
31 3087
33 2250
34 2250
36 3087
37 3087
39 2250
46 3087
48 3087
50 2250
51 3087
54 3087
55 2250
57 3087
59 3087
60 3087
61 3087
64 3087
65 3087
67 2250
69 3087
71 3087
72 2250
74 3087
80 2250
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
656410143989222955

Test #28:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1844kb,1852kb

input:

1
410366615149657534

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 2250
1161 2250
2236 2250
96 3087
1858 3087
846 3087
2308 3087
175 3087
3390 2250
2121 2250
2338 3087
617 2250
1385 2250
2375 3087
3601 2250
1941 2250
922 2250
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 2250
1161 2250
2236 2250
96 3087
1858 3087
846 3087
2308 3087
175 3087
3390 2250
2121 2250
2338 3087
617 2250
1385 2250
2375 3087
3601 2250
1941 2250
922 2250
...

output:

2
3782 1922
3 3087
4 3087
9 2250
12 2250
15 3087
17 2250
18 2250
19 2250
20 2250
21 3087
26 3087
30 3087
31 3087
33 3087
34 3087
36 2250
37 2250
39 2250
46 3087
48 2250
50 2250
51 2250
54 3087
55 2250
57 2250
59 2250
60 3087
61 2250
64 2250
65 3087
67 2250
69 2250
71 2250
72 3087
74 3087
80 3087
81 ...

input:

2
3782 1922
3 3087
4 3087
9 2250
12 2250
15 3087
17 2250
18 2250
19 2250
20 2250
21 3087
26 3087
30 3087
31 3087
33 3087
34 3087
36 2250
37 2250
39 2250
46 3087
48 2250
50 2250
51 2250
54 3087
55 2250
57 2250
59 2250
60 3087
61 2250
64 2250
65 3087
67 2250
69 2250
71 2250
72 3087
74 3087
80 3087
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
410366615149657534

Test #29:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1848kb,1848kb

input:

1
298090682780948428

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 2250
175 2250
3390 3087
2121 3087
2338 3087
617 2250
1385 2250
2375 3087
3601 2250
1941 3087
922 3087
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
3782
1563 3087
1161 3087
2236 3087
96 3087
1858 3087
846 3087
2308 2250
175 2250
3390 3087
2121 3087
2338 3087
617 2250
1385 2250
2375 3087
3601 2250
1941 3087
922 3087
...

output:

2
3782 1922
3 2250
4 3087
9 3087
12 3087
15 3087
17 2250
18 2250
19 3087
20 3087
21 2250
26 3087
30 3087
31 3087
33 3087
34 3087
36 3087
37 2250
39 3087
46 2250
48 3087
50 3087
51 2250
54 2250
55 3087
57 3087
59 3087
60 3087
61 2250
64 3087
65 2250
67 3087
69 3087
71 2250
72 2250
74 2250
80 3087
81 ...

input:

2
3782 1922
3 2250
4 3087
9 3087
12 3087
15 3087
17 2250
18 2250
19 3087
20 3087
21 2250
26 3087
30 3087
31 3087
33 3087
34 3087
36 3087
37 2250
39 3087
46 2250
48 3087
50 3087
51 2250
54 2250
55 3087
57 3087
59 3087
60 3087
61 2250
64 3087
65 2250
67 3087
69 3087
71 2250
72 2250
74 2250
80 3087
81 ...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
298090682780948428

Test #30:

score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1844kb,1840kb

input:

3
969441916331132577

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
3782
1563 3087
1161 2250
2236 2250
96 2250
1858 2250
846 3087
2308 3087
175 2250
3390 3087
2121 2250
2338 3087
617 3087
1385 3087
2375 2250
3601 2250
1941 3087
922 3087
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
3782
1563 3087
1161 2250
2236 2250
96 2250
1858 2250
846 3087
2308 3087
175 2250
3390 3087
2121 2250
2338 3087
617 3087
1385 3087
2375 2250
3601 2250
1941 3087
922 3087
...

output:

4
3782 2160
1 3087
2 3087
3 3087
6 3087
9 3087
10 3087
11 3087
12 3087
13 3087
14 3087
19 3087
25 3087
26 3087
27 3087
28 3087
29 3087
30 3087
31 3087
32 3087
33 3087
35 3087
36 3087
40 3087
42 3087
45 3087
46 3087
47 3087
48 3087
49 3087
51 3087
52 3087
53 3087
55 3087
56 3087
57 3087
58 3087
59 30...

input:

4
3782 2160
1 3087
2 3087
3 3087
6 3087
9 3087
10 3087
11 3087
12 3087
13 3087
14 3087
19 3087
25 3087
26 3087
27 3087
28 3087
29 3087
30 3087
31 3087
32 3087
33 3087
35 3087
36 3087
40 3087
42 3087
45 3087
46 3087
47 3087
48 3087
49 3087
51 3087
52 3087
53 3087
55 3087
56 3087
57 3087
58 3087
59 30...

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Incorrect answer.