QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#172932 | #5470. Hasty Santa Claus | Forever_Young# | AC ✓ | 5ms | 6056kb | C++14 | 2.0kb | 2023-09-09 21:17:31 | 2023-09-09 21:17:32 |
Judging History
answer
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,tune=native")
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=1;i<=n;++i)
#define per(i,n) for(int i=n;i>=1;--i)
#define pb push_back
#define mp make_pair
#define stack stck
#define N 1100
#define M 510000
#define inf 1000000007
struct EDGE { int adj, w, next; } edge[M];
int top, gh[N], nrl[N],S,T;
void addedge(int x, int y, int w) {
edge[++top].adj = y;
edge[top].w = w;
edge[top].next = gh[x];
gh[x] = top;
edge[++top].adj = x;
edge[top].w = 0;
edge[top].next = gh[y];
gh[y] = top;
}
int dist[N], q[N];
int bfs() {
memset(dist, 0, sizeof(dist));
q[1] = S; int head = 0, tail = 1; dist[S] = 1;
while (head != tail) {
int x = q[++head];
for (int p=gh[x]; p; p=edge[p].next)
if (edge[p].w && !dist[edge[p].adj]) {
dist[edge[p].adj] = dist[x] + 1;
q[++tail] = edge[p].adj;
}
}
return dist[T];
}
int dinic(int x, int delta) {
if (x==T) return delta;
for (int& p=nrl[x]; p && delta; p=edge[p].next)
if (edge[p].w && dist[x]+1 == dist[edge[p].adj]) {
int dd = dinic(edge[p].adj, min(delta, edge[p].w));
if (!dd) continue;
edge[p].w -= dd;
edge[p^1].w += dd;
return dd;
}
return 0;
}
int work() {
int ans = 0;
while (bfs()) {
memcpy(nrl, gh, sizeof(gh));
int t; while (t = dinic(S, inf)) ans += t;
}
return ans;
}
int id[1010][35],n,k,l[1010],r[1010];
int main()
{
cin>>n>>k;
top=1;
S=0; T=n+31+1;
rep(i,n)addedge(S,i,1);
rep(i,31)addedge(n+i,T,k);
rep(i,n)
{
scanf("%d%d",&l[i],&r[i]);
for(int j=l[i];j<=r[i];j++)
{
id[i][j]=top+1;
addedge(i,n+j,1);
}
}
work();
rep(i,n)
{
for(int j=l[i];j<=r[i];j++)
if (edge[id[i][j]].w==0)
{
printf("%d\n",j);
break;
}
}
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 2ms
memory: 3984kb
input:
5 1 23 25 23 27 24 25 25 25 25 26
output:
23 27 24 25 26
result:
ok ok
Test #2:
score: 0
Accepted
time: 2ms
memory: 3988kb
input:
7 2 1 31 1 31 1 31 1 31 1 31 1 31 1 31
output:
28 29 29 30 30 31 31
result:
ok ok
Test #3:
score: 0
Accepted
time: 2ms
memory: 3988kb
input:
6 2 24 25 24 25 24 25 25 26 25 26 25 26
output:
24 24 25 25 26 26
result:
ok ok
Test #4:
score: 0
Accepted
time: 1ms
memory: 3924kb
input:
20 5 9 26 7 29 7 30 4 30 4 27 19 30 8 27 13 25 6 29 1 25 8 31 2 29 13 25 9 26 8 31 1 28 8 26 3 26 5 25 1 28
output:
26 29 30 30 27 30 27 25 29 25 31 29 25 26 31 28 26 26 25 28
result:
ok ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 4000kb
input:
100 5 9 25 2 30 2 31 4 29 2 25 1 27 7 26 3 25 15 30 2 26 9 26 2 30 6 30 24 31 7 28 15 27 2 29 23 31 18 29 23 31 1 31 2 27 7 29 2 27 23 31 16 31 17 31 10 29 4 30 3 26 2 26 19 28 1 30 8 30 4 31 10 29 1 31 22 30 6 29 3 26 3 30 5 28 1 31 9 28 2 30 2 26 13 30 4 25 2 27 1 25 5 27 5 26 9 27 1 28 19 31 5 31...
output:
13 13 13 14 14 14 14 14 15 15 15 15 15 30 16 16 16 31 29 31 16 16 17 17 31 17 17 17 18 18 18 28 18 18 19 19 19 30 19 19 20 20 20 20 20 21 21 21 21 21 22 22 22 22 22 23 23 23 23 23 24 24 24 24 24 25 25 25 25 26 26 27 27 27 27 26 28 26 30 30 12 28 28 29 31 27 13 26 28 29 30 12 12 31 29 12 25 29 13 12
result:
ok ok
Test #6:
score: 0
Accepted
time: 2ms
memory: 3868kb
input:
100 50 3 27 6 25 1 31 2 29 24 31 5 31 14 31 9 25 11 26 25 30 7 30 24 28 10 30 2 26 1 26 1 25 6 31 23 31 5 28 4 28 2 25 1 26 4 30 6 27 7 29 11 31 3 29 23 28 3 26 4 31 10 29 1 30 8 25 17 25 7 25 8 28 23 29 1 27 1 25 6 30 1 29 13 25 5 30 1 30 1 29 2 31 9 27 4 25 1 31 1 25 18 31 3 27 12 31 7 29 13 30 1 ...
output:
27 25 31 29 31 31 31 25 26 30 30 28 30 26 26 25 31 31 28 28 25 26 30 27 29 31 29 28 26 31 29 30 25 25 25 28 29 27 25 30 29 25 30 30 29 31 27 25 31 25 31 27 31 29 30 27 30 27 27 28 25 31 31 28 25 25 25 27 29 28 28 29 29 26 28 26 26 30 25 28 27 29 26 30 26 29 27 29 25 30 25 26 31 25 30 26 28 30 31 25
result:
ok ok
Test #7:
score: 0
Accepted
time: 1ms
memory: 3904kb
input:
100 100 9 25 3 25 24 31 4 31 2 29 2 31 22 30 18 30 3 25 6 29 19 31 3 30 15 31 1 27 20 30 4 26 5 25 23 30 11 31 20 26 13 25 3 27 8 25 1 25 15 31 13 30 24 29 3 27 22 27 14 29 4 30 11 31 21 30 2 29 12 27 25 28 20 28 5 30 1 30 6 30 2 27 11 28 18 29 4 26 1 26 7 29 18 30 1 26 18 29 2 28 1 25 1 26 9 31 4 2...
output:
25 25 31 31 29 31 30 30 25 29 31 30 31 27 30 26 25 30 31 26 25 27 25 25 31 30 29 27 27 29 30 31 30 29 27 28 28 30 30 30 27 28 29 26 26 29 30 26 29 28 25 26 31 29 26 27 25 29 29 29 26 28 27 27 26 30 30 27 29 25 28 29 25 31 29 26 25 27 26 29 28 30 29 26 26 28 27 30 31 30 25 27 28 31 26 25 31 28 31 25
result:
ok ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 4648kb
input:
1000 50 11 30 4 29 2 26 1 31 3 27 23 29 5 26 4 27 5 28 11 26 2 28 18 27 1 31 8 28 6 25 5 25 14 31 3 27 4 26 16 27 4 31 9 31 6 29 8 27 8 25 3 29 17 27 2 28 9 29 2 31 11 31 12 30 2 30 2 31 19 31 7 26 18 27 9 31 1 27 8 25 8 28 2 27 10 28 7 26 5 31 8 26 12 30 19 31 25 29 2 31 1 31 6 29 4 29 11 27 21 30 ...
output:
13 13 13 13 13 29 13 13 13 13 13 27 13 13 13 13 31 13 13 27 13 13 13 13 13 13 27 13 13 13 13 13 13 13 31 13 27 13 13 13 13 13 13 13 13 13 13 31 29 13 13 14 14 14 30 14 14 27 14 14 14 14 14 14 31 14 14 14 14 14 14 14 14 14 14 29 26 31 14 14 14 14 28 14 14 30 14 14 14 14 14 14 14 14 28 14 14 14 14 14 ...
result:
ok ok
Test #9:
score: 0
Accepted
time: 2ms
memory: 4492kb
input:
1000 100 8 28 11 29 9 30 1 28 17 25 20 29 6 26 15 25 1 28 12 30 6 31 10 31 4 27 15 28 4 31 10 25 5 30 4 25 19 31 17 27 5 28 6 31 6 31 3 29 1 29 10 31 9 30 9 31 1 31 10 31 5 28 25 29 15 27 4 31 3 31 18 27 1 31 11 26 4 30 24 29 4 31 1 27 4 25 7 31 2 26 3 31 19 31 1 28 7 25 4 27 9 27 13 26 5 26 12 30 6...
output:
22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 29 22 22 22 22 22 22 22 29 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 23 23 ...
result:
ok ok
Test #10:
score: 0
Accepted
time: 2ms
memory: 4448kb
input:
1000 1000 14 31 5 29 7 27 4 26 1 27 10 30 17 31 5 31 8 30 10 28 3 29 18 31 7 31 4 30 7 29 5 28 4 31 19 27 5 27 20 29 15 27 10 29 2 27 4 27 4 25 5 29 4 27 13 27 3 31 9 30 11 30 3 31 10 26 2 30 24 31 19 31 13 27 1 31 6 26 17 26 1 31 13 31 10 30 1 30 16 26 3 25 15 27 2 31 6 28 4 26 7 26 1 31 12 25 19 2...
output:
31 29 27 26 27 30 31 31 30 28 29 31 31 30 29 28 31 27 27 29 27 29 27 27 25 29 27 27 31 30 30 31 26 30 31 31 27 31 26 26 31 31 30 30 26 25 27 31 28 26 26 31 25 27 27 28 28 28 27 31 28 25 30 30 31 25 28 26 27 30 28 30 27 25 28 25 25 30 29 26 29 30 29 25 26 31 27 29 25 27 30 31 31 26 30 29 31 26 29 25 ...
result:
ok ok
Test #11:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
31 1 21 25 25 26 18 25 11 25 25 27 20 25 23 25 19 25 25 31 10 25 1 25 25 25 8 25 16 25 17 25 14 25 4 25 22 25 12 25 5 25 15 25 7 25 2 25 25 30 25 28 6 25 24 25 9 25 13 25 25 29 3 25
output:
21 26 18 11 27 20 23 19 31 10 1 25 8 16 17 14 4 22 12 5 15 7 2 30 28 6 24 9 13 29 3
result:
ok ok
Test #12:
score: 0
Accepted
time: 2ms
memory: 3908kb
input:
310 10 23 25 11 25 10 25 14 25 16 25 23 25 18 25 25 26 21 25 25 27 19 25 3 25 22 25 13 25 18 25 24 25 15 25 3 25 21 25 25 25 25 26 25 31 25 25 7 25 11 25 4 25 12 25 25 31 18 25 17 25 7 25 4 25 25 25 20 25 25 25 18 25 10 25 7 25 25 28 17 25 25 27 9 25 13 25 16 25 12 25 25 26 25 26 25 27 19 25 18 25 2...
output:
23 11 10 14 16 23 18 26 21 27 19 3 22 13 18 24 15 3 21 25 26 31 25 7 11 4 12 31 18 17 7 4 25 20 25 18 10 7 28 17 27 9 13 16 12 26 26 27 19 18 20 20 14 22 27 19 30 5 10 7 22 8 16 27 3 18 23 9 23 10 12 6 5 7 2 29 16 29 4 3 28 16 13 26 30 24 29 25 17 11 17 9 8 13 26 13 30 9 8 15 7 19 20 26 28 9 8 25 24...
result:
ok ok
Test #13:
score: 0
Accepted
time: 5ms
memory: 4196kb
input:
992 32 10 25 13 25 20 25 1 25 10 25 25 28 6 25 25 25 16 25 25 28 19 25 23 25 14 25 25 28 16 25 25 26 14 25 25 27 19 25 10 25 25 29 18 25 25 25 22 25 14 25 21 25 17 25 19 25 11 25 21 25 25 29 23 25 21 25 8 25 7 25 4 25 1 25 2 25 10 25 11 25 6 25 15 25 1 25 17 25 13 25 3 25 6 25 9 25 19 25 2 25 20 25 ...
output:
10 13 20 1 10 28 6 25 16 28 19 23 14 28 16 26 14 27 19 10 29 18 25 22 14 21 17 19 11 21 29 23 21 8 7 4 1 2 10 11 6 15 1 17 13 3 6 9 19 2 20 19 24 17 22 12 5 6 19 30 21 22 13 10 18 18 16 13 31 31 7 7 20 19 16 29 4 15 1 18 19 6 2 22 4 6 28 28 23 13 24 15 25 8 25 13 12 18 9 14 26 25 21 26 29 26 4 9 30 ...
result:
ok ok
Test #14:
score: 0
Accepted
time: 1ms
memory: 3940kb
input:
46 2 13 25 25 26 12 25 22 25 6 25 7 25 19 25 15 25 25 27 25 25 10 25 23 25 14 25 13 25 8 25 16 25 16 25 25 27 9 25 25 26 24 25 20 25 5 25 11 25 15 25 18 25 10 25 12 25 7 25 8 25 21 25 17 25 11 25 17 25 6 25 23 25 24 25 14 25 22 25 18 25 9 25 5 25 25 25 20 25 21 25 19 25
output:
13 26 12 22 6 7 19 15 27 25 10 23 14 13 8 16 16 27 9 26 24 20 5 11 15 18 10 12 7 8 21 17 11 17 6 23 24 14 22 18 9 5 25 20 21 19
result:
ok ok
Test #15:
score: 0
Accepted
time: 0ms
memory: 4116kb
input:
570 30 25 26 13 25 15 25 18 25 25 25 14 25 18 25 19 25 19 25 17 25 12 25 22 25 20 25 24 25 25 28 22 25 24 25 12 25 25 29 12 25 22 25 25 26 18 25 20 25 19 25 17 25 18 25 14 25 21 25 25 29 25 27 23 25 12 25 25 28 21 25 25 29 14 25 12 25 21 25 25 30 15 25 17 25 25 26 14 25 22 25 23 25 22 25 14 25 14 25...
output:
26 13 15 18 25 14 18 19 19 17 12 22 20 24 28 22 24 12 29 12 22 26 18 20 19 17 18 14 21 29 27 23 12 28 21 29 14 12 21 30 15 17 26 14 22 23 22 14 14 19 21 26 25 24 21 18 26 29 20 26 13 13 28 20 20 19 28 17 25 25 18 16 12 13 30 21 21 15 22 24 12 24 20 30 19 22 25 25 30 13 24 27 17 18 17 12 30 12 26 23 ...
result:
ok ok
Test #16:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
1000 100 25 25 19 25 22 25 22 25 24 25 23 25 25 25 19 25 21 25 21 25 25 26 25 26 23 25 25 26 19 25 23 25 21 25 20 25 21 25 20 25 24 25 25 27 25 25 22 25 19 25 25 25 24 25 21 25 20 25 25 27 25 28 25 25 23 25 23 25 25 26 25 27 25 27 25 26 25 26 23 25 22 25 23 25 19 25 25 27 20 25 23 25 25 28 25 26 23 ...
output:
25 19 22 22 24 23 25 19 21 21 26 26 23 26 19 23 21 20 21 20 24 27 25 22 19 25 24 21 20 27 28 25 23 23 26 27 27 26 26 23 22 23 19 27 20 23 28 26 23 20 28 26 22 25 20 27 24 27 24 28 19 27 24 20 24 26 21 21 24 26 24 28 22 28 23 19 28 26 19 22 24 19 20 28 22 25 28 24 27 20 23 26 27 22 23 19 26 21 25 26 ...
result:
ok ok
Test #17:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
200 100 24 25 24 25 24 25 25 25 25 25 25 25 25 25 24 25 24 25 24 25 25 25 24 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 24 25 24 25 24 25 25 25 24 25 25 25 25 25 25 25 25 25 25 25 24 25 25 25 25 25 25 25 25 25 24 25 25 25 25 25 25 25 24 25 25 25 24 25 25 25 24 25 25 25 24 25 25 25 25 25 24 25 24 2...
output:
24 24 24 25 25 25 25 24 24 24 25 24 25 25 25 25 25 25 25 24 24 24 25 24 25 25 25 25 25 24 25 25 25 25 24 25 25 25 24 25 24 25 24 25 24 25 25 24 24 24 25 24 25 25 25 24 25 24 25 25 25 24 24 24 24 24 24 24 24 25 25 24 24 25 25 25 25 25 25 24 24 24 24 25 25 24 25 24 25 25 25 24 25 24 25 24 24 24 25 25 ...
result:
ok ok
Test #18:
score: 0
Accepted
time: 1ms
memory: 4172kb
input:
1000 1000 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25...
output:
25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 ...
result:
ok ok
Test #19:
score: 0
Accepted
time: 0ms
memory: 6056kb
input:
360 20 9 25 22 25 25 26 17 25 19 25 9 25 17 25 25 26 17 25 25 25 10 25 10 25 24 25 14 25 23 25 13 25 14 25 25 25 12 25 10 25 17 25 14 25 16 25 22 25 15 25 16 25 21 25 25 25 22 25 24 25 19 25 11 25 25 26 15 25 8 25 15 25 23 25 23 25 20 25 9 25 12 25 22 25 22 25 14 25 9 25 10 25 21 25 15 25 11 25 13 2...
output:
9 22 26 17 19 9 17 26 17 25 10 10 24 14 23 13 14 25 12 10 17 14 16 22 15 16 21 25 22 24 19 11 26 15 8 15 23 23 20 9 12 22 22 14 9 10 21 15 11 13 13 17 13 22 14 13 13 19 10 23 26 22 25 12 18 16 25 22 10 11 15 15 14 16 9 13 12 24 13 11 23 13 11 15 12 22 25 24 10 19 18 12 9 8 10 20 21 25 9 23 11 24 16 ...
result:
ok ok
Test #20:
score: 0
Accepted
time: 2ms
memory: 3924kb
input:
300 10 9 25 2 25 25 26 7 25 24 25 11 25 15 25 5 25 2 25 10 25 7 25 11 25 18 25 20 25 25 27 2 25 8 25 25 26 21 25 22 25 25 26 2 25 6 25 9 25 5 25 25 28 5 25 3 25 12 25 22 25 19 25 23 25 25 28 25 31 7 25 25 30 6 25 22 25 25 30 19 25 21 25 25 28 25 26 7 25 10 25 12 25 25 27 4 25 16 25 23 25 12 25 15 25...
output:
9 2 26 7 24 11 15 5 2 10 7 11 18 20 27 2 8 26 21 22 26 2 6 9 5 28 5 3 12 22 19 23 28 31 7 30 6 22 30 19 21 28 26 7 10 12 27 4 16 23 12 15 15 23 30 4 25 23 15 22 6 11 15 10 27 23 13 30 8 29 18 25 2 27 29 29 14 29 3 30 4 21 14 28 17 1 25 4 20 24 1 14 20 9 17 9 5 20 2 8 12 7 19 22 12 19 27 22 31 7 11 1...
result:
ok ok
Test #21:
score: 0
Accepted
time: 1ms
memory: 4060kb
input:
999 333 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 2...
output:
24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 ...
result:
ok ok
Test #22:
score: 0
Accepted
time: 0ms
memory: 4192kb
input:
999 333 25 26 24 25 24 25 24 25 25 26 24 25 25 26 24 25 24 25 25 26 25 26 25 26 24 25 24 25 24 25 25 26 25 26 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 25 26 25 26 24 25 25 26 25 26 24 25 24 25 24 25 25 26 24 25 24 25 24 25 24 25 24 25 24 25 25 26 24 25 24 25 24 25 24 25 24 25 25 26 25 26 25 2...
output:
25 24 24 24 25 24 25 24 24 25 25 25 24 24 24 25 25 24 24 24 24 24 24 24 24 25 25 24 25 25 24 24 24 25 24 24 24 24 24 24 25 24 24 24 24 24 25 25 25 24 24 24 25 25 25 24 25 24 25 25 24 24 25 25 24 25 24 24 24 25 24 24 24 25 24 25 24 24 25 24 25 25 24 25 24 25 25 24 24 25 25 25 25 24 25 25 25 25 24 25 ...
result:
ok ok
Test #23:
score: 0
Accepted
time: 1ms
memory: 4200kb
input:
1000 250 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 25 23 ...
output:
23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ...
result:
ok ok
Test #24:
score: 0
Accepted
time: 1ms
memory: 4072kb
input:
1000 250 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 25 24 ...
output:
24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 ...
result:
ok ok
Test #25:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
1 1 24 25
output:
25
result:
ok ok
Test #26:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
1 1 25 25
output:
25
result:
ok ok
Test #27:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
1 1 25 26
output:
26
result:
ok ok
Test #28:
score: 0
Accepted
time: 1ms
memory: 3924kb
input:
2 1 24 25 24 25
output:
24 25
result:
ok ok
Test #29:
score: 0
Accepted
time: 1ms
memory: 3884kb
input:
2 1 24 25 25 25
output:
24 25
result:
ok ok
Test #30:
score: 0
Accepted
time: 0ms
memory: 3980kb
input:
2 1 24 25 25 26
output:
25 26
result:
ok ok
Test #31:
score: 0
Accepted
time: 1ms
memory: 3844kb
input:
2 1 24 25 24 26
output:
25 26
result:
ok ok
Test #32:
score: 0
Accepted
time: 1ms
memory: 5880kb
input:
2 1 25 25 24 25
output:
25 24
result:
ok ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 5820kb
input:
2 1 25 25 25 26
output:
25 26
result:
ok ok
Test #34:
score: 0
Accepted
time: 1ms
memory: 3936kb
input:
2 1 25 25 24 26
output:
25 26
result:
ok ok
Test #35:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
2 1 25 26 24 25
output:
26 25
result:
ok ok
Test #36:
score: 0
Accepted
time: 1ms
memory: 3944kb
input:
2 1 25 26 25 25
output:
26 25
result:
ok ok
Test #37:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
2 1 25 26 25 26
output:
25 26
result:
ok ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 3988kb
input:
2 1 25 26 24 26
output:
25 26
result:
ok ok
Test #39:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
2 1 24 26 24 25
output:
26 25
result:
ok ok
Test #40:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
2 1 24 26 25 25
output:
26 25
result:
ok ok
Test #41:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
2 1 24 26 25 26
output:
25 26
result:
ok ok
Test #42:
score: 0
Accepted
time: 1ms
memory: 3856kb
input:
2 1 24 26 24 26
output:
25 26
result:
ok ok
Test #43:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
3 1 24 25 24 25 25 26
output:
24 25 26
result:
ok ok
Test #44:
score: 0
Accepted
time: 0ms
memory: 3920kb
input:
3 1 24 25 24 25 24 26
output:
24 25 26
result:
ok ok
Test #45:
score: 0
Accepted
time: 1ms
memory: 3856kb
input:
3 1 24 25 25 25 25 26
output:
24 25 26
result:
ok ok
Test #46:
score: 0
Accepted
time: 1ms
memory: 3920kb
input:
3 1 24 25 25 25 24 26
output:
24 25 26
result:
ok ok
Test #47:
score: 0
Accepted
time: 1ms
memory: 3992kb
input:
3 1 24 25 25 26 25 26
output:
24 25 26
result:
ok ok
Test #48:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
3 1 24 25 25 26 24 26
output:
24 25 26
result:
ok ok
Test #49:
score: 0
Accepted
time: 1ms
memory: 3984kb
input:
3 1 24 25 24 26 24 26
output:
24 25 26
result:
ok ok
Test #50:
score: 0
Accepted
time: 1ms
memory: 3996kb
input:
3 1 25 25 25 26 24 26
output:
25 26 24
result:
ok ok
Test #51:
score: 0
Accepted
time: 1ms
memory: 3992kb
input:
3 1 25 25 24 26 24 26
output:
25 24 26
result:
ok ok
Test #52:
score: 0
Accepted
time: 1ms
memory: 3860kb
input:
3 1 25 26 25 26 24 26
output:
26 25 24
result:
ok ok
Test #53:
score: 0
Accepted
time: 0ms
memory: 3936kb
input:
3 1 25 26 24 26 24 26
output:
26 25 24
result:
ok ok
Test #54:
score: 0
Accepted
time: 1ms
memory: 3936kb
input:
3 1 24 26 24 26 24 26
output:
24 25 26
result:
ok ok