#include "closing.h"
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define sz(a) (int)a.size()
#define all(a) begin(a),end(a)
using ll = long long;
using ar = array<ll,2>;
using vi = vector<ll>;
const int mxN = (int)3e5+10;
const ll LINF = (ll)2e18;
ar a[mxN];
ll n, dis[2][mxN], dp[3010][6010];
vector<pair<int,ll>> adj[mxN];
void dfs(int s, int p, int t){
for(auto [u,w] : adj[s]){
if(u==p) continue;
dis[t][u] = dis[t][s]+w; dfs(u,s,t);
}
}
int max_score(int N, int X, int Y, ll K, vector<int> U, vector<int> V, vector<int> W){
n = N; int ans = 0;
for(int i = 0; i <= n; i++) adj[i].clear();
for(int i = 0; i < sz(U); i++){
auto [a,b,c] = tie(U[i],V[i],W[i]);
adj[a].pb({b,c}), adj[b].pb({a,c});
}
dis[0][X]=dis[1][Y]=0;
dfs(X,-1,0); dfs(Y,-1,1);
vi v; v.clear();
for(int i = 0; i < n; i++){
ll mn = min(dis[0][i],dis[1][i]);
ll mx = max(dis[0][i],dis[1][i]);
a[i][0] = mn, a[i][1] = mx;
v.pb(mn), v.pb(mx);
}
ll D = 0; int i = 0; sort(all(v));
for(auto u : v){
D+=u; if(D<=K) ans=i+1;
i++;
}
if(n>3000) return ans;
for(int i = 0; i <= n; i++)
for(int j = 0; j <= 2*n+4; j++)
dp[i][j] = LINF;
dp[0][0] = 0;
for(int i = 0; i < n; i++){
for(int j = 0; j <= 2*i; j++){
if(dis[0][i]+dis[1][i]!=dis[0][Y])
dp[i+1][j] = min(dp[i+1][j], dp[i][j]);
for(int k : {0,1})
dp[i+1][j+k+1] = min(dp[i+1][j+k+1], dp[i][j]+a[i][k]);
}
}
for(int i = 0; i <= 2*n; i++)
if(dp[n][i]<=K) ans=max(ans,i);
return ans;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
7512 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
107 ms |
40896 KB |
Output is correct |
2 |
Correct |
112 ms |
47220 KB |
Output is correct |
3 |
Correct |
506 ms |
32448 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
7516 KB |
Output is correct |
2 |
Correct |
3 ms |
7516 KB |
Output is correct |
3 |
Correct |
3 ms |
7516 KB |
Output is correct |
4 |
Correct |
4 ms |
7420 KB |
Output is correct |
5 |
Correct |
4 ms |
7516 KB |
Output is correct |
6 |
Correct |
3 ms |
7744 KB |
Output is correct |
7 |
Correct |
5 ms |
7516 KB |
Output is correct |
8 |
Correct |
3 ms |
7516 KB |
Output is correct |
9 |
Correct |
3 ms |
7516 KB |
Output is correct |
10 |
Correct |
3 ms |
7756 KB |
Output is correct |
11 |
Correct |
3 ms |
7512 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
7516 KB |
Output is correct |
2 |
Correct |
3 ms |
7516 KB |
Output is correct |
3 |
Correct |
3 ms |
7516 KB |
Output is correct |
4 |
Correct |
4 ms |
7420 KB |
Output is correct |
5 |
Correct |
4 ms |
7516 KB |
Output is correct |
6 |
Correct |
3 ms |
7744 KB |
Output is correct |
7 |
Correct |
5 ms |
7516 KB |
Output is correct |
8 |
Correct |
3 ms |
7516 KB |
Output is correct |
9 |
Correct |
3 ms |
7516 KB |
Output is correct |
10 |
Correct |
3 ms |
7756 KB |
Output is correct |
11 |
Correct |
3 ms |
7512 KB |
Output is correct |
12 |
Correct |
4 ms |
8028 KB |
Output is correct |
13 |
Correct |
3 ms |
8028 KB |
Output is correct |
14 |
Correct |
4 ms |
8028 KB |
Output is correct |
15 |
Correct |
3 ms |
8028 KB |
Output is correct |
16 |
Correct |
4 ms |
8028 KB |
Output is correct |
17 |
Correct |
3 ms |
8028 KB |
Output is correct |
18 |
Correct |
4 ms |
7456 KB |
Output is correct |
19 |
Correct |
6 ms |
13400 KB |
Output is correct |
20 |
Correct |
6 ms |
12684 KB |
Output is correct |
21 |
Correct |
5 ms |
13144 KB |
Output is correct |
22 |
Correct |
6 ms |
13404 KB |
Output is correct |
23 |
Correct |
6 ms |
13400 KB |
Output is correct |
24 |
Correct |
8 ms |
13404 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
7516 KB |
Output is correct |
2 |
Correct |
3 ms |
7516 KB |
Output is correct |
3 |
Correct |
3 ms |
7516 KB |
Output is correct |
4 |
Correct |
4 ms |
7420 KB |
Output is correct |
5 |
Correct |
4 ms |
7516 KB |
Output is correct |
6 |
Correct |
3 ms |
7744 KB |
Output is correct |
7 |
Correct |
5 ms |
7516 KB |
Output is correct |
8 |
Correct |
3 ms |
7516 KB |
Output is correct |
9 |
Correct |
3 ms |
7516 KB |
Output is correct |
10 |
Correct |
3 ms |
7756 KB |
Output is correct |
11 |
Correct |
3 ms |
7512 KB |
Output is correct |
12 |
Correct |
4 ms |
8028 KB |
Output is correct |
13 |
Correct |
3 ms |
8028 KB |
Output is correct |
14 |
Correct |
4 ms |
8028 KB |
Output is correct |
15 |
Correct |
3 ms |
8028 KB |
Output is correct |
16 |
Correct |
4 ms |
8028 KB |
Output is correct |
17 |
Correct |
3 ms |
8028 KB |
Output is correct |
18 |
Correct |
4 ms |
7456 KB |
Output is correct |
19 |
Correct |
6 ms |
13400 KB |
Output is correct |
20 |
Correct |
6 ms |
12684 KB |
Output is correct |
21 |
Correct |
5 ms |
13144 KB |
Output is correct |
22 |
Correct |
6 ms |
13404 KB |
Output is correct |
23 |
Correct |
6 ms |
13400 KB |
Output is correct |
24 |
Correct |
8 ms |
13404 KB |
Output is correct |
25 |
Correct |
5 ms |
8024 KB |
Output is correct |
26 |
Correct |
72 ms |
149148 KB |
Output is correct |
27 |
Correct |
81 ms |
139184 KB |
Output is correct |
28 |
Correct |
68 ms |
140116 KB |
Output is correct |
29 |
Correct |
68 ms |
145488 KB |
Output is correct |
30 |
Correct |
69 ms |
138568 KB |
Output is correct |
31 |
Correct |
71 ms |
149364 KB |
Output is correct |
32 |
Correct |
69 ms |
149300 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
7512 KB |
Output is correct |
2 |
Correct |
4 ms |
7516 KB |
Output is correct |
3 |
Correct |
3 ms |
7516 KB |
Output is correct |
4 |
Correct |
3 ms |
7516 KB |
Output is correct |
5 |
Correct |
4 ms |
7420 KB |
Output is correct |
6 |
Correct |
4 ms |
7516 KB |
Output is correct |
7 |
Correct |
3 ms |
7516 KB |
Output is correct |
8 |
Correct |
4 ms |
7408 KB |
Output is correct |
9 |
Correct |
4 ms |
7768 KB |
Output is correct |
10 |
Correct |
3 ms |
7516 KB |
Output is correct |
11 |
Correct |
3 ms |
7516 KB |
Output is correct |
12 |
Correct |
3 ms |
7516 KB |
Output is correct |
13 |
Correct |
3 ms |
7516 KB |
Output is correct |
14 |
Correct |
3 ms |
7536 KB |
Output is correct |
15 |
Correct |
3 ms |
7512 KB |
Output is correct |
16 |
Correct |
3 ms |
7516 KB |
Output is correct |
17 |
Correct |
3 ms |
7516 KB |
Output is correct |
18 |
Correct |
3 ms |
7512 KB |
Output is correct |
19 |
Correct |
3 ms |
7516 KB |
Output is correct |
20 |
Correct |
4 ms |
7364 KB |
Output is correct |
21 |
Correct |
3 ms |
7516 KB |
Output is correct |
22 |
Correct |
3 ms |
7532 KB |
Output is correct |
23 |
Correct |
4 ms |
7516 KB |
Output is correct |
24 |
Correct |
3 ms |
7516 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
7512 KB |
Output is correct |
2 |
Correct |
4 ms |
7516 KB |
Output is correct |
3 |
Correct |
3 ms |
7516 KB |
Output is correct |
4 |
Correct |
3 ms |
7516 KB |
Output is correct |
5 |
Correct |
4 ms |
7420 KB |
Output is correct |
6 |
Correct |
4 ms |
7516 KB |
Output is correct |
7 |
Correct |
3 ms |
7744 KB |
Output is correct |
8 |
Correct |
5 ms |
7516 KB |
Output is correct |
9 |
Correct |
3 ms |
7516 KB |
Output is correct |
10 |
Correct |
3 ms |
7516 KB |
Output is correct |
11 |
Correct |
3 ms |
7756 KB |
Output is correct |
12 |
Correct |
3 ms |
7512 KB |
Output is correct |
13 |
Correct |
4 ms |
8028 KB |
Output is correct |
14 |
Correct |
3 ms |
8028 KB |
Output is correct |
15 |
Correct |
4 ms |
8028 KB |
Output is correct |
16 |
Correct |
3 ms |
8028 KB |
Output is correct |
17 |
Correct |
4 ms |
8028 KB |
Output is correct |
18 |
Correct |
3 ms |
8028 KB |
Output is correct |
19 |
Correct |
3 ms |
7516 KB |
Output is correct |
20 |
Correct |
4 ms |
7408 KB |
Output is correct |
21 |
Correct |
4 ms |
7768 KB |
Output is correct |
22 |
Correct |
3 ms |
7516 KB |
Output is correct |
23 |
Correct |
3 ms |
7516 KB |
Output is correct |
24 |
Correct |
3 ms |
7516 KB |
Output is correct |
25 |
Correct |
3 ms |
7516 KB |
Output is correct |
26 |
Correct |
3 ms |
7536 KB |
Output is correct |
27 |
Correct |
3 ms |
7512 KB |
Output is correct |
28 |
Correct |
3 ms |
7516 KB |
Output is correct |
29 |
Correct |
3 ms |
7516 KB |
Output is correct |
30 |
Correct |
3 ms |
7512 KB |
Output is correct |
31 |
Correct |
3 ms |
7516 KB |
Output is correct |
32 |
Correct |
4 ms |
7364 KB |
Output is correct |
33 |
Correct |
3 ms |
7516 KB |
Output is correct |
34 |
Correct |
3 ms |
7532 KB |
Output is correct |
35 |
Correct |
4 ms |
7516 KB |
Output is correct |
36 |
Correct |
3 ms |
7516 KB |
Output is correct |
37 |
Correct |
4 ms |
7512 KB |
Output is correct |
38 |
Correct |
4 ms |
7516 KB |
Output is correct |
39 |
Correct |
4 ms |
7952 KB |
Output is correct |
40 |
Correct |
3 ms |
8028 KB |
Output is correct |
41 |
Correct |
3 ms |
8028 KB |
Output is correct |
42 |
Correct |
4 ms |
8028 KB |
Output is correct |
43 |
Correct |
4 ms |
8028 KB |
Output is correct |
44 |
Correct |
4 ms |
8028 KB |
Output is correct |
45 |
Correct |
4 ms |
8000 KB |
Output is correct |
46 |
Correct |
4 ms |
8028 KB |
Output is correct |
47 |
Correct |
3 ms |
8028 KB |
Output is correct |
48 |
Correct |
3 ms |
7772 KB |
Output is correct |
49 |
Correct |
5 ms |
7772 KB |
Output is correct |
50 |
Correct |
3 ms |
7496 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
7512 KB |
Output is correct |
2 |
Correct |
4 ms |
7516 KB |
Output is correct |
3 |
Correct |
3 ms |
7516 KB |
Output is correct |
4 |
Correct |
3 ms |
7516 KB |
Output is correct |
5 |
Correct |
4 ms |
7420 KB |
Output is correct |
6 |
Correct |
4 ms |
7516 KB |
Output is correct |
7 |
Correct |
3 ms |
7744 KB |
Output is correct |
8 |
Correct |
5 ms |
7516 KB |
Output is correct |
9 |
Correct |
3 ms |
7516 KB |
Output is correct |
10 |
Correct |
3 ms |
7516 KB |
Output is correct |
11 |
Correct |
3 ms |
7756 KB |
Output is correct |
12 |
Correct |
3 ms |
7512 KB |
Output is correct |
13 |
Correct |
4 ms |
8028 KB |
Output is correct |
14 |
Correct |
3 ms |
8028 KB |
Output is correct |
15 |
Correct |
4 ms |
8028 KB |
Output is correct |
16 |
Correct |
3 ms |
8028 KB |
Output is correct |
17 |
Correct |
4 ms |
8028 KB |
Output is correct |
18 |
Correct |
3 ms |
8028 KB |
Output is correct |
19 |
Correct |
4 ms |
7456 KB |
Output is correct |
20 |
Correct |
6 ms |
13400 KB |
Output is correct |
21 |
Correct |
6 ms |
12684 KB |
Output is correct |
22 |
Correct |
5 ms |
13144 KB |
Output is correct |
23 |
Correct |
6 ms |
13404 KB |
Output is correct |
24 |
Correct |
6 ms |
13400 KB |
Output is correct |
25 |
Correct |
8 ms |
13404 KB |
Output is correct |
26 |
Correct |
3 ms |
7516 KB |
Output is correct |
27 |
Correct |
4 ms |
7408 KB |
Output is correct |
28 |
Correct |
4 ms |
7768 KB |
Output is correct |
29 |
Correct |
3 ms |
7516 KB |
Output is correct |
30 |
Correct |
3 ms |
7516 KB |
Output is correct |
31 |
Correct |
3 ms |
7516 KB |
Output is correct |
32 |
Correct |
3 ms |
7516 KB |
Output is correct |
33 |
Correct |
3 ms |
7536 KB |
Output is correct |
34 |
Correct |
3 ms |
7512 KB |
Output is correct |
35 |
Correct |
3 ms |
7516 KB |
Output is correct |
36 |
Correct |
3 ms |
7516 KB |
Output is correct |
37 |
Correct |
3 ms |
7512 KB |
Output is correct |
38 |
Correct |
3 ms |
7516 KB |
Output is correct |
39 |
Correct |
4 ms |
7364 KB |
Output is correct |
40 |
Correct |
3 ms |
7516 KB |
Output is correct |
41 |
Correct |
3 ms |
7532 KB |
Output is correct |
42 |
Correct |
4 ms |
7516 KB |
Output is correct |
43 |
Correct |
3 ms |
7516 KB |
Output is correct |
44 |
Correct |
4 ms |
7512 KB |
Output is correct |
45 |
Correct |
4 ms |
7516 KB |
Output is correct |
46 |
Correct |
4 ms |
7952 KB |
Output is correct |
47 |
Correct |
3 ms |
8028 KB |
Output is correct |
48 |
Correct |
3 ms |
8028 KB |
Output is correct |
49 |
Correct |
4 ms |
8028 KB |
Output is correct |
50 |
Correct |
4 ms |
8028 KB |
Output is correct |
51 |
Correct |
4 ms |
8028 KB |
Output is correct |
52 |
Correct |
4 ms |
8000 KB |
Output is correct |
53 |
Correct |
4 ms |
8028 KB |
Output is correct |
54 |
Correct |
3 ms |
8028 KB |
Output is correct |
55 |
Correct |
3 ms |
7772 KB |
Output is correct |
56 |
Correct |
5 ms |
7772 KB |
Output is correct |
57 |
Correct |
3 ms |
7496 KB |
Output is correct |
58 |
Correct |
4 ms |
7512 KB |
Output is correct |
59 |
Correct |
4 ms |
8028 KB |
Output is correct |
60 |
Correct |
4 ms |
7932 KB |
Output is correct |
61 |
Correct |
3 ms |
8284 KB |
Output is correct |
62 |
Correct |
4 ms |
8284 KB |
Output is correct |
63 |
Correct |
5 ms |
13400 KB |
Output is correct |
64 |
Correct |
5 ms |
12892 KB |
Output is correct |
65 |
Correct |
6 ms |
12636 KB |
Output is correct |
66 |
Correct |
7 ms |
12892 KB |
Output is correct |
67 |
Correct |
7 ms |
13408 KB |
Output is correct |
68 |
Correct |
6 ms |
12464 KB |
Output is correct |
69 |
Correct |
6 ms |
13400 KB |
Output is correct |
70 |
Correct |
6 ms |
13148 KB |
Output is correct |
71 |
Correct |
6 ms |
12892 KB |
Output is correct |
72 |
Correct |
6 ms |
13148 KB |
Output is correct |
73 |
Correct |
5 ms |
11356 KB |
Output is correct |
74 |
Correct |
5 ms |
11864 KB |
Output is correct |
75 |
Correct |
4 ms |
8096 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
7512 KB |
Output is correct |
2 |
Correct |
4 ms |
7516 KB |
Output is correct |
3 |
Correct |
3 ms |
7516 KB |
Output is correct |
4 |
Correct |
3 ms |
7516 KB |
Output is correct |
5 |
Correct |
4 ms |
7420 KB |
Output is correct |
6 |
Correct |
4 ms |
7516 KB |
Output is correct |
7 |
Correct |
3 ms |
7744 KB |
Output is correct |
8 |
Correct |
5 ms |
7516 KB |
Output is correct |
9 |
Correct |
3 ms |
7516 KB |
Output is correct |
10 |
Correct |
3 ms |
7516 KB |
Output is correct |
11 |
Correct |
3 ms |
7756 KB |
Output is correct |
12 |
Correct |
3 ms |
7512 KB |
Output is correct |
13 |
Correct |
4 ms |
8028 KB |
Output is correct |
14 |
Correct |
3 ms |
8028 KB |
Output is correct |
15 |
Correct |
4 ms |
8028 KB |
Output is correct |
16 |
Correct |
3 ms |
8028 KB |
Output is correct |
17 |
Correct |
4 ms |
8028 KB |
Output is correct |
18 |
Correct |
3 ms |
8028 KB |
Output is correct |
19 |
Correct |
4 ms |
7456 KB |
Output is correct |
20 |
Correct |
6 ms |
13400 KB |
Output is correct |
21 |
Correct |
6 ms |
12684 KB |
Output is correct |
22 |
Correct |
5 ms |
13144 KB |
Output is correct |
23 |
Correct |
6 ms |
13404 KB |
Output is correct |
24 |
Correct |
6 ms |
13400 KB |
Output is correct |
25 |
Correct |
8 ms |
13404 KB |
Output is correct |
26 |
Correct |
5 ms |
8024 KB |
Output is correct |
27 |
Correct |
72 ms |
149148 KB |
Output is correct |
28 |
Correct |
81 ms |
139184 KB |
Output is correct |
29 |
Correct |
68 ms |
140116 KB |
Output is correct |
30 |
Correct |
68 ms |
145488 KB |
Output is correct |
31 |
Correct |
69 ms |
138568 KB |
Output is correct |
32 |
Correct |
71 ms |
149364 KB |
Output is correct |
33 |
Correct |
69 ms |
149300 KB |
Output is correct |
34 |
Correct |
3 ms |
7516 KB |
Output is correct |
35 |
Correct |
4 ms |
7408 KB |
Output is correct |
36 |
Correct |
4 ms |
7768 KB |
Output is correct |
37 |
Correct |
3 ms |
7516 KB |
Output is correct |
38 |
Correct |
3 ms |
7516 KB |
Output is correct |
39 |
Correct |
3 ms |
7516 KB |
Output is correct |
40 |
Correct |
3 ms |
7516 KB |
Output is correct |
41 |
Correct |
3 ms |
7536 KB |
Output is correct |
42 |
Correct |
3 ms |
7512 KB |
Output is correct |
43 |
Correct |
3 ms |
7516 KB |
Output is correct |
44 |
Correct |
3 ms |
7516 KB |
Output is correct |
45 |
Correct |
3 ms |
7512 KB |
Output is correct |
46 |
Correct |
3 ms |
7516 KB |
Output is correct |
47 |
Correct |
4 ms |
7364 KB |
Output is correct |
48 |
Correct |
3 ms |
7516 KB |
Output is correct |
49 |
Correct |
3 ms |
7532 KB |
Output is correct |
50 |
Correct |
4 ms |
7516 KB |
Output is correct |
51 |
Correct |
3 ms |
7516 KB |
Output is correct |
52 |
Correct |
4 ms |
7512 KB |
Output is correct |
53 |
Correct |
4 ms |
7516 KB |
Output is correct |
54 |
Correct |
4 ms |
7952 KB |
Output is correct |
55 |
Correct |
3 ms |
8028 KB |
Output is correct |
56 |
Correct |
3 ms |
8028 KB |
Output is correct |
57 |
Correct |
4 ms |
8028 KB |
Output is correct |
58 |
Correct |
4 ms |
8028 KB |
Output is correct |
59 |
Correct |
4 ms |
8028 KB |
Output is correct |
60 |
Correct |
4 ms |
8000 KB |
Output is correct |
61 |
Correct |
4 ms |
8028 KB |
Output is correct |
62 |
Correct |
3 ms |
8028 KB |
Output is correct |
63 |
Correct |
3 ms |
7772 KB |
Output is correct |
64 |
Correct |
5 ms |
7772 KB |
Output is correct |
65 |
Correct |
3 ms |
7496 KB |
Output is correct |
66 |
Correct |
4 ms |
7512 KB |
Output is correct |
67 |
Correct |
4 ms |
8028 KB |
Output is correct |
68 |
Correct |
4 ms |
7932 KB |
Output is correct |
69 |
Correct |
3 ms |
8284 KB |
Output is correct |
70 |
Correct |
4 ms |
8284 KB |
Output is correct |
71 |
Correct |
5 ms |
13400 KB |
Output is correct |
72 |
Correct |
5 ms |
12892 KB |
Output is correct |
73 |
Correct |
6 ms |
12636 KB |
Output is correct |
74 |
Correct |
7 ms |
12892 KB |
Output is correct |
75 |
Correct |
7 ms |
13408 KB |
Output is correct |
76 |
Correct |
6 ms |
12464 KB |
Output is correct |
77 |
Correct |
6 ms |
13400 KB |
Output is correct |
78 |
Correct |
6 ms |
13148 KB |
Output is correct |
79 |
Correct |
6 ms |
12892 KB |
Output is correct |
80 |
Correct |
6 ms |
13148 KB |
Output is correct |
81 |
Correct |
5 ms |
11356 KB |
Output is correct |
82 |
Correct |
5 ms |
11864 KB |
Output is correct |
83 |
Correct |
4 ms |
8096 KB |
Output is correct |
84 |
Correct |
6 ms |
7772 KB |
Output is correct |
85 |
Correct |
9 ms |
9948 KB |
Output is correct |
86 |
Correct |
5 ms |
8028 KB |
Output is correct |
87 |
Correct |
5 ms |
8540 KB |
Output is correct |
88 |
Correct |
5 ms |
8540 KB |
Output is correct |
89 |
Correct |
78 ms |
149076 KB |
Output is correct |
90 |
Correct |
83 ms |
134304 KB |
Output is correct |
91 |
Correct |
75 ms |
148304 KB |
Output is correct |
92 |
Correct |
66 ms |
138832 KB |
Output is correct |
93 |
Correct |
68 ms |
140112 KB |
Output is correct |
94 |
Correct |
60 ms |
142256 KB |
Output is correct |
95 |
Correct |
70 ms |
145624 KB |
Output is correct |
96 |
Correct |
65 ms |
136016 KB |
Output is correct |
97 |
Correct |
72 ms |
145236 KB |
Output is correct |
98 |
Correct |
71 ms |
143184 KB |
Output is correct |
99 |
Correct |
70 ms |
148968 KB |
Output is correct |
100 |
Correct |
41 ms |
84172 KB |
Output is correct |
101 |
Correct |
8 ms |
13404 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
7512 KB |
Output is correct |
2 |
Correct |
4 ms |
7516 KB |
Output is correct |
3 |
Correct |
3 ms |
7516 KB |
Output is correct |
4 |
Correct |
3 ms |
7516 KB |
Output is correct |
5 |
Correct |
4 ms |
7420 KB |
Output is correct |
6 |
Correct |
4 ms |
7516 KB |
Output is correct |
7 |
Correct |
3 ms |
7744 KB |
Output is correct |
8 |
Correct |
5 ms |
7516 KB |
Output is correct |
9 |
Correct |
3 ms |
7516 KB |
Output is correct |
10 |
Correct |
3 ms |
7516 KB |
Output is correct |
11 |
Correct |
3 ms |
7756 KB |
Output is correct |
12 |
Correct |
3 ms |
7512 KB |
Output is correct |
13 |
Correct |
4 ms |
8028 KB |
Output is correct |
14 |
Correct |
3 ms |
8028 KB |
Output is correct |
15 |
Correct |
4 ms |
8028 KB |
Output is correct |
16 |
Correct |
3 ms |
8028 KB |
Output is correct |
17 |
Correct |
4 ms |
8028 KB |
Output is correct |
18 |
Correct |
3 ms |
8028 KB |
Output is correct |
19 |
Correct |
4 ms |
7456 KB |
Output is correct |
20 |
Correct |
6 ms |
13400 KB |
Output is correct |
21 |
Correct |
6 ms |
12684 KB |
Output is correct |
22 |
Correct |
5 ms |
13144 KB |
Output is correct |
23 |
Correct |
6 ms |
13404 KB |
Output is correct |
24 |
Correct |
6 ms |
13400 KB |
Output is correct |
25 |
Correct |
8 ms |
13404 KB |
Output is correct |
26 |
Correct |
5 ms |
8024 KB |
Output is correct |
27 |
Correct |
72 ms |
149148 KB |
Output is correct |
28 |
Correct |
81 ms |
139184 KB |
Output is correct |
29 |
Correct |
68 ms |
140116 KB |
Output is correct |
30 |
Correct |
68 ms |
145488 KB |
Output is correct |
31 |
Correct |
69 ms |
138568 KB |
Output is correct |
32 |
Correct |
71 ms |
149364 KB |
Output is correct |
33 |
Correct |
69 ms |
149300 KB |
Output is correct |
34 |
Correct |
3 ms |
7516 KB |
Output is correct |
35 |
Correct |
4 ms |
7408 KB |
Output is correct |
36 |
Correct |
4 ms |
7768 KB |
Output is correct |
37 |
Correct |
3 ms |
7516 KB |
Output is correct |
38 |
Correct |
3 ms |
7516 KB |
Output is correct |
39 |
Correct |
3 ms |
7516 KB |
Output is correct |
40 |
Correct |
3 ms |
7516 KB |
Output is correct |
41 |
Correct |
3 ms |
7536 KB |
Output is correct |
42 |
Correct |
3 ms |
7512 KB |
Output is correct |
43 |
Correct |
3 ms |
7516 KB |
Output is correct |
44 |
Correct |
3 ms |
7516 KB |
Output is correct |
45 |
Correct |
3 ms |
7512 KB |
Output is correct |
46 |
Correct |
3 ms |
7516 KB |
Output is correct |
47 |
Correct |
4 ms |
7364 KB |
Output is correct |
48 |
Correct |
3 ms |
7516 KB |
Output is correct |
49 |
Correct |
3 ms |
7532 KB |
Output is correct |
50 |
Correct |
4 ms |
7516 KB |
Output is correct |
51 |
Correct |
3 ms |
7516 KB |
Output is correct |
52 |
Correct |
4 ms |
7512 KB |
Output is correct |
53 |
Correct |
4 ms |
7516 KB |
Output is correct |
54 |
Correct |
4 ms |
7952 KB |
Output is correct |
55 |
Correct |
3 ms |
8028 KB |
Output is correct |
56 |
Correct |
3 ms |
8028 KB |
Output is correct |
57 |
Correct |
4 ms |
8028 KB |
Output is correct |
58 |
Correct |
4 ms |
8028 KB |
Output is correct |
59 |
Correct |
4 ms |
8028 KB |
Output is correct |
60 |
Correct |
4 ms |
8000 KB |
Output is correct |
61 |
Correct |
4 ms |
8028 KB |
Output is correct |
62 |
Correct |
3 ms |
8028 KB |
Output is correct |
63 |
Correct |
3 ms |
7772 KB |
Output is correct |
64 |
Correct |
5 ms |
7772 KB |
Output is correct |
65 |
Correct |
3 ms |
7496 KB |
Output is correct |
66 |
Correct |
4 ms |
7512 KB |
Output is correct |
67 |
Correct |
4 ms |
8028 KB |
Output is correct |
68 |
Correct |
4 ms |
7932 KB |
Output is correct |
69 |
Correct |
3 ms |
8284 KB |
Output is correct |
70 |
Correct |
4 ms |
8284 KB |
Output is correct |
71 |
Correct |
5 ms |
13400 KB |
Output is correct |
72 |
Correct |
5 ms |
12892 KB |
Output is correct |
73 |
Correct |
6 ms |
12636 KB |
Output is correct |
74 |
Correct |
7 ms |
12892 KB |
Output is correct |
75 |
Correct |
7 ms |
13408 KB |
Output is correct |
76 |
Correct |
6 ms |
12464 KB |
Output is correct |
77 |
Correct |
6 ms |
13400 KB |
Output is correct |
78 |
Correct |
6 ms |
13148 KB |
Output is correct |
79 |
Correct |
6 ms |
12892 KB |
Output is correct |
80 |
Correct |
6 ms |
13148 KB |
Output is correct |
81 |
Correct |
5 ms |
11356 KB |
Output is correct |
82 |
Correct |
5 ms |
11864 KB |
Output is correct |
83 |
Correct |
4 ms |
8096 KB |
Output is correct |
84 |
Correct |
6 ms |
7772 KB |
Output is correct |
85 |
Correct |
9 ms |
9948 KB |
Output is correct |
86 |
Correct |
5 ms |
8028 KB |
Output is correct |
87 |
Correct |
5 ms |
8540 KB |
Output is correct |
88 |
Correct |
5 ms |
8540 KB |
Output is correct |
89 |
Correct |
78 ms |
149076 KB |
Output is correct |
90 |
Correct |
83 ms |
134304 KB |
Output is correct |
91 |
Correct |
75 ms |
148304 KB |
Output is correct |
92 |
Correct |
66 ms |
138832 KB |
Output is correct |
93 |
Correct |
68 ms |
140112 KB |
Output is correct |
94 |
Correct |
60 ms |
142256 KB |
Output is correct |
95 |
Correct |
70 ms |
145624 KB |
Output is correct |
96 |
Correct |
65 ms |
136016 KB |
Output is correct |
97 |
Correct |
72 ms |
145236 KB |
Output is correct |
98 |
Correct |
71 ms |
143184 KB |
Output is correct |
99 |
Correct |
70 ms |
148968 KB |
Output is correct |
100 |
Correct |
41 ms |
84172 KB |
Output is correct |
101 |
Correct |
8 ms |
13404 KB |
Output is correct |
102 |
Correct |
95 ms |
13140 KB |
Output is correct |
103 |
Correct |
222 ms |
16724 KB |
Output is correct |
104 |
Incorrect |
148 ms |
43884 KB |
1st lines differ - on the 1st token, expected: '333334', found: '269589' |
105 |
Halted |
0 ms |
0 KB |
- |