#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> ii;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<ll> vll;
typedef vector<pll> vpll;
#define PB push_back
#define PF push_front
#define PPB pop_back
#define PPF pop_front
#define X first
#define Y second
#define MP make_pair
#define all(x) (x).begin(), (x).end()
const int mod = 1e9 + 7; //998244353;
const int inf = 1e9 + 7;
const ll INF = 1e18 + 7;
const int logo = 20;
const int M = 1e6 + 7;
const int MAXN = 3001;
const int off = 1 << logo;
const int trsz = off << 1;
vii g[M];
ll dx[M][2], dp[MAXN][2 * MAXN];
vll vec;
void dfs(int u, int f, int p = -1){
for(auto &y : g[u]){
int x = y.X, w = y.Y;
if(x == p) continue;
dx[x][f] = dx[u][f] + (ll)w;
dfs(x, f, u);
}
}
int max_score(int n, int x, int y, ll k, vi u, vi v, vi w){
for(int i=0; i<n; i++) g[i].clear();
for(int i=0; i<n-1; i++){
g[u[i]].PB({v[i], w[i]});
g[v[i]].PB({u[i], w[i]});
}
dx[x][0] = 0;
dfs(x, 0);
dx[y][1] = 0;
dfs(y, 1);
vec.clear();
int ret = 0;
for(int i=0; i<n; i++){
vec.PB(dx[i][0]);
vec.PB(dx[i][1]);
if(dx[i][0] > dx[i][1]) swap(dx[i][0], dx[i][1]);
}
sort(all(vec));
ll csu = 0;
for(int i=0; i<(int)vec.size(); i++){
csu += vec[i];
if(csu <= k) ret = i + 1;
else break;
}
if(n > 3000) return ret;
for(int i=0; i<=n; i++) for(int j=0; j<=2*i; j++) dp[i][j] = INF;
dp[0][0] = 0;
for(int i=0; i<n; i++){
for(int j=0; j<=2*i; j++){
if(dp[i][j] > k) continue;
if(dx[i][0] + dx[i][1] != dx[x][1]) dp[i + 1][j] = min(dp[i + 1][j], dp[i][j]);
dp[i + 1][j + 1] = min(dp[i + 1][j + 1], dp[i][j] + dx[i][0]);
dp[i + 1][j + 2] = min(dp[i + 1][j + 2], dp[i][j] + dx[i][1]);
}
}
for(int j=0; j<=2*n; j++) if(dp[n][j] <= k) ret = max(ret, j);
return ret;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
28504 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
89 ms |
53440 KB |
Output is correct |
2 |
Correct |
94 ms |
62920 KB |
Output is correct |
3 |
Correct |
248 ms |
62544 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
26460 KB |
Output is correct |
2 |
Correct |
4 ms |
28508 KB |
Output is correct |
3 |
Correct |
5 ms |
28508 KB |
Output is correct |
4 |
Correct |
4 ms |
28504 KB |
Output is correct |
5 |
Correct |
5 ms |
28504 KB |
Output is correct |
6 |
Correct |
4 ms |
30556 KB |
Output is correct |
7 |
Correct |
7 ms |
28504 KB |
Output is correct |
8 |
Correct |
5 ms |
28504 KB |
Output is correct |
9 |
Correct |
5 ms |
28508 KB |
Output is correct |
10 |
Correct |
5 ms |
30556 KB |
Output is correct |
11 |
Correct |
5 ms |
30552 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
26460 KB |
Output is correct |
2 |
Correct |
4 ms |
28508 KB |
Output is correct |
3 |
Correct |
5 ms |
28508 KB |
Output is correct |
4 |
Correct |
4 ms |
28504 KB |
Output is correct |
5 |
Correct |
5 ms |
28504 KB |
Output is correct |
6 |
Correct |
4 ms |
30556 KB |
Output is correct |
7 |
Correct |
7 ms |
28504 KB |
Output is correct |
8 |
Correct |
5 ms |
28504 KB |
Output is correct |
9 |
Correct |
5 ms |
28508 KB |
Output is correct |
10 |
Correct |
5 ms |
30556 KB |
Output is correct |
11 |
Correct |
5 ms |
30552 KB |
Output is correct |
12 |
Correct |
7 ms |
32604 KB |
Output is correct |
13 |
Correct |
6 ms |
32604 KB |
Output is correct |
14 |
Correct |
6 ms |
32604 KB |
Output is correct |
15 |
Correct |
6 ms |
32600 KB |
Output is correct |
16 |
Correct |
5 ms |
32604 KB |
Output is correct |
17 |
Correct |
5 ms |
32440 KB |
Output is correct |
18 |
Correct |
4 ms |
28508 KB |
Output is correct |
19 |
Correct |
6 ms |
44488 KB |
Output is correct |
20 |
Correct |
6 ms |
48988 KB |
Output is correct |
21 |
Correct |
6 ms |
48988 KB |
Output is correct |
22 |
Correct |
7 ms |
51032 KB |
Output is correct |
23 |
Correct |
7 ms |
51032 KB |
Output is correct |
24 |
Correct |
7 ms |
44376 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
26460 KB |
Output is correct |
2 |
Correct |
4 ms |
28508 KB |
Output is correct |
3 |
Correct |
5 ms |
28508 KB |
Output is correct |
4 |
Correct |
4 ms |
28504 KB |
Output is correct |
5 |
Correct |
5 ms |
28504 KB |
Output is correct |
6 |
Correct |
4 ms |
30556 KB |
Output is correct |
7 |
Correct |
7 ms |
28504 KB |
Output is correct |
8 |
Correct |
5 ms |
28504 KB |
Output is correct |
9 |
Correct |
5 ms |
28508 KB |
Output is correct |
10 |
Correct |
5 ms |
30556 KB |
Output is correct |
11 |
Correct |
5 ms |
30552 KB |
Output is correct |
12 |
Correct |
7 ms |
32604 KB |
Output is correct |
13 |
Correct |
6 ms |
32604 KB |
Output is correct |
14 |
Correct |
6 ms |
32604 KB |
Output is correct |
15 |
Correct |
6 ms |
32600 KB |
Output is correct |
16 |
Correct |
5 ms |
32604 KB |
Output is correct |
17 |
Correct |
5 ms |
32440 KB |
Output is correct |
18 |
Correct |
4 ms |
28508 KB |
Output is correct |
19 |
Correct |
6 ms |
44488 KB |
Output is correct |
20 |
Correct |
6 ms |
48988 KB |
Output is correct |
21 |
Correct |
6 ms |
48988 KB |
Output is correct |
22 |
Correct |
7 ms |
51032 KB |
Output is correct |
23 |
Correct |
7 ms |
51032 KB |
Output is correct |
24 |
Correct |
7 ms |
44376 KB |
Output is correct |
25 |
Correct |
6 ms |
30556 KB |
Output is correct |
26 |
Correct |
48 ms |
121764 KB |
Output is correct |
27 |
Correct |
42 ms |
114516 KB |
Output is correct |
28 |
Correct |
39 ms |
114012 KB |
Output is correct |
29 |
Correct |
44 ms |
120784 KB |
Output is correct |
30 |
Correct |
47 ms |
112468 KB |
Output is correct |
31 |
Correct |
39 ms |
123224 KB |
Output is correct |
32 |
Correct |
41 ms |
121672 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
28504 KB |
Output is correct |
2 |
Correct |
4 ms |
26460 KB |
Output is correct |
3 |
Correct |
4 ms |
28508 KB |
Output is correct |
4 |
Correct |
5 ms |
28508 KB |
Output is correct |
5 |
Correct |
4 ms |
28504 KB |
Output is correct |
6 |
Correct |
5 ms |
28504 KB |
Output is correct |
7 |
Correct |
5 ms |
28508 KB |
Output is correct |
8 |
Correct |
4 ms |
28508 KB |
Output is correct |
9 |
Correct |
5 ms |
28508 KB |
Output is correct |
10 |
Correct |
5 ms |
28356 KB |
Output is correct |
11 |
Correct |
5 ms |
28508 KB |
Output is correct |
12 |
Correct |
4 ms |
28508 KB |
Output is correct |
13 |
Correct |
4 ms |
28508 KB |
Output is correct |
14 |
Correct |
5 ms |
28572 KB |
Output is correct |
15 |
Correct |
5 ms |
28508 KB |
Output is correct |
16 |
Correct |
4 ms |
28504 KB |
Output is correct |
17 |
Correct |
4 ms |
28508 KB |
Output is correct |
18 |
Correct |
5 ms |
28508 KB |
Output is correct |
19 |
Correct |
4 ms |
28508 KB |
Output is correct |
20 |
Correct |
4 ms |
28508 KB |
Output is correct |
21 |
Correct |
4 ms |
28508 KB |
Output is correct |
22 |
Correct |
6 ms |
28368 KB |
Output is correct |
23 |
Correct |
4 ms |
28504 KB |
Output is correct |
24 |
Correct |
5 ms |
28376 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
28504 KB |
Output is correct |
2 |
Correct |
4 ms |
26460 KB |
Output is correct |
3 |
Correct |
4 ms |
28508 KB |
Output is correct |
4 |
Correct |
5 ms |
28508 KB |
Output is correct |
5 |
Correct |
4 ms |
28504 KB |
Output is correct |
6 |
Correct |
5 ms |
28504 KB |
Output is correct |
7 |
Correct |
4 ms |
30556 KB |
Output is correct |
8 |
Correct |
7 ms |
28504 KB |
Output is correct |
9 |
Correct |
5 ms |
28504 KB |
Output is correct |
10 |
Correct |
5 ms |
28508 KB |
Output is correct |
11 |
Correct |
5 ms |
30556 KB |
Output is correct |
12 |
Correct |
5 ms |
30552 KB |
Output is correct |
13 |
Correct |
7 ms |
32604 KB |
Output is correct |
14 |
Correct |
6 ms |
32604 KB |
Output is correct |
15 |
Correct |
6 ms |
32604 KB |
Output is correct |
16 |
Correct |
6 ms |
32600 KB |
Output is correct |
17 |
Correct |
5 ms |
32604 KB |
Output is correct |
18 |
Correct |
5 ms |
32440 KB |
Output is correct |
19 |
Correct |
5 ms |
28508 KB |
Output is correct |
20 |
Correct |
4 ms |
28508 KB |
Output is correct |
21 |
Correct |
5 ms |
28508 KB |
Output is correct |
22 |
Correct |
5 ms |
28356 KB |
Output is correct |
23 |
Correct |
5 ms |
28508 KB |
Output is correct |
24 |
Correct |
4 ms |
28508 KB |
Output is correct |
25 |
Correct |
4 ms |
28508 KB |
Output is correct |
26 |
Correct |
5 ms |
28572 KB |
Output is correct |
27 |
Correct |
5 ms |
28508 KB |
Output is correct |
28 |
Correct |
4 ms |
28504 KB |
Output is correct |
29 |
Correct |
4 ms |
28508 KB |
Output is correct |
30 |
Correct |
5 ms |
28508 KB |
Output is correct |
31 |
Correct |
4 ms |
28508 KB |
Output is correct |
32 |
Correct |
4 ms |
28508 KB |
Output is correct |
33 |
Correct |
4 ms |
28508 KB |
Output is correct |
34 |
Correct |
6 ms |
28368 KB |
Output is correct |
35 |
Correct |
4 ms |
28504 KB |
Output is correct |
36 |
Correct |
5 ms |
28376 KB |
Output is correct |
37 |
Correct |
4 ms |
28508 KB |
Output is correct |
38 |
Correct |
5 ms |
28508 KB |
Output is correct |
39 |
Correct |
5 ms |
32604 KB |
Output is correct |
40 |
Correct |
6 ms |
32600 KB |
Output is correct |
41 |
Correct |
5 ms |
32600 KB |
Output is correct |
42 |
Correct |
5 ms |
32604 KB |
Output is correct |
43 |
Correct |
4 ms |
32604 KB |
Output is correct |
44 |
Correct |
5 ms |
32600 KB |
Output is correct |
45 |
Correct |
5 ms |
32600 KB |
Output is correct |
46 |
Correct |
5 ms |
32604 KB |
Output is correct |
47 |
Correct |
4 ms |
32604 KB |
Output is correct |
48 |
Correct |
5 ms |
30556 KB |
Output is correct |
49 |
Correct |
4 ms |
30556 KB |
Output is correct |
50 |
Correct |
4 ms |
28508 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
28504 KB |
Output is correct |
2 |
Correct |
4 ms |
26460 KB |
Output is correct |
3 |
Correct |
4 ms |
28508 KB |
Output is correct |
4 |
Correct |
5 ms |
28508 KB |
Output is correct |
5 |
Correct |
4 ms |
28504 KB |
Output is correct |
6 |
Correct |
5 ms |
28504 KB |
Output is correct |
7 |
Correct |
4 ms |
30556 KB |
Output is correct |
8 |
Correct |
7 ms |
28504 KB |
Output is correct |
9 |
Correct |
5 ms |
28504 KB |
Output is correct |
10 |
Correct |
5 ms |
28508 KB |
Output is correct |
11 |
Correct |
5 ms |
30556 KB |
Output is correct |
12 |
Correct |
5 ms |
30552 KB |
Output is correct |
13 |
Correct |
7 ms |
32604 KB |
Output is correct |
14 |
Correct |
6 ms |
32604 KB |
Output is correct |
15 |
Correct |
6 ms |
32604 KB |
Output is correct |
16 |
Correct |
6 ms |
32600 KB |
Output is correct |
17 |
Correct |
5 ms |
32604 KB |
Output is correct |
18 |
Correct |
5 ms |
32440 KB |
Output is correct |
19 |
Correct |
4 ms |
28508 KB |
Output is correct |
20 |
Correct |
6 ms |
44488 KB |
Output is correct |
21 |
Correct |
6 ms |
48988 KB |
Output is correct |
22 |
Correct |
6 ms |
48988 KB |
Output is correct |
23 |
Correct |
7 ms |
51032 KB |
Output is correct |
24 |
Correct |
7 ms |
51032 KB |
Output is correct |
25 |
Correct |
7 ms |
44376 KB |
Output is correct |
26 |
Correct |
5 ms |
28508 KB |
Output is correct |
27 |
Correct |
4 ms |
28508 KB |
Output is correct |
28 |
Correct |
5 ms |
28508 KB |
Output is correct |
29 |
Correct |
5 ms |
28356 KB |
Output is correct |
30 |
Correct |
5 ms |
28508 KB |
Output is correct |
31 |
Correct |
4 ms |
28508 KB |
Output is correct |
32 |
Correct |
4 ms |
28508 KB |
Output is correct |
33 |
Correct |
5 ms |
28572 KB |
Output is correct |
34 |
Correct |
5 ms |
28508 KB |
Output is correct |
35 |
Correct |
4 ms |
28504 KB |
Output is correct |
36 |
Correct |
4 ms |
28508 KB |
Output is correct |
37 |
Correct |
5 ms |
28508 KB |
Output is correct |
38 |
Correct |
4 ms |
28508 KB |
Output is correct |
39 |
Correct |
4 ms |
28508 KB |
Output is correct |
40 |
Correct |
4 ms |
28508 KB |
Output is correct |
41 |
Correct |
6 ms |
28368 KB |
Output is correct |
42 |
Correct |
4 ms |
28504 KB |
Output is correct |
43 |
Correct |
5 ms |
28376 KB |
Output is correct |
44 |
Correct |
4 ms |
28508 KB |
Output is correct |
45 |
Correct |
5 ms |
28508 KB |
Output is correct |
46 |
Correct |
5 ms |
32604 KB |
Output is correct |
47 |
Correct |
6 ms |
32600 KB |
Output is correct |
48 |
Correct |
5 ms |
32600 KB |
Output is correct |
49 |
Correct |
5 ms |
32604 KB |
Output is correct |
50 |
Correct |
4 ms |
32604 KB |
Output is correct |
51 |
Correct |
5 ms |
32600 KB |
Output is correct |
52 |
Correct |
5 ms |
32600 KB |
Output is correct |
53 |
Correct |
5 ms |
32604 KB |
Output is correct |
54 |
Correct |
4 ms |
32604 KB |
Output is correct |
55 |
Correct |
5 ms |
30556 KB |
Output is correct |
56 |
Correct |
4 ms |
30556 KB |
Output is correct |
57 |
Correct |
4 ms |
28508 KB |
Output is correct |
58 |
Correct |
5 ms |
28508 KB |
Output is correct |
59 |
Correct |
5 ms |
32604 KB |
Output is correct |
60 |
Correct |
6 ms |
32604 KB |
Output is correct |
61 |
Correct |
7 ms |
34652 KB |
Output is correct |
62 |
Correct |
5 ms |
34648 KB |
Output is correct |
63 |
Correct |
7 ms |
49244 KB |
Output is correct |
64 |
Correct |
6 ms |
48988 KB |
Output is correct |
65 |
Correct |
7 ms |
47196 KB |
Output is correct |
66 |
Correct |
7 ms |
48988 KB |
Output is correct |
67 |
Correct |
6 ms |
47708 KB |
Output is correct |
68 |
Correct |
6 ms |
47068 KB |
Output is correct |
69 |
Correct |
8 ms |
47708 KB |
Output is correct |
70 |
Correct |
6 ms |
48988 KB |
Output is correct |
71 |
Correct |
7 ms |
49052 KB |
Output is correct |
72 |
Correct |
7 ms |
47580 KB |
Output is correct |
73 |
Correct |
7 ms |
44892 KB |
Output is correct |
74 |
Correct |
8 ms |
46936 KB |
Output is correct |
75 |
Correct |
5 ms |
32604 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
28504 KB |
Output is correct |
2 |
Correct |
4 ms |
26460 KB |
Output is correct |
3 |
Correct |
4 ms |
28508 KB |
Output is correct |
4 |
Correct |
5 ms |
28508 KB |
Output is correct |
5 |
Correct |
4 ms |
28504 KB |
Output is correct |
6 |
Correct |
5 ms |
28504 KB |
Output is correct |
7 |
Correct |
4 ms |
30556 KB |
Output is correct |
8 |
Correct |
7 ms |
28504 KB |
Output is correct |
9 |
Correct |
5 ms |
28504 KB |
Output is correct |
10 |
Correct |
5 ms |
28508 KB |
Output is correct |
11 |
Correct |
5 ms |
30556 KB |
Output is correct |
12 |
Correct |
5 ms |
30552 KB |
Output is correct |
13 |
Correct |
7 ms |
32604 KB |
Output is correct |
14 |
Correct |
6 ms |
32604 KB |
Output is correct |
15 |
Correct |
6 ms |
32604 KB |
Output is correct |
16 |
Correct |
6 ms |
32600 KB |
Output is correct |
17 |
Correct |
5 ms |
32604 KB |
Output is correct |
18 |
Correct |
5 ms |
32440 KB |
Output is correct |
19 |
Correct |
4 ms |
28508 KB |
Output is correct |
20 |
Correct |
6 ms |
44488 KB |
Output is correct |
21 |
Correct |
6 ms |
48988 KB |
Output is correct |
22 |
Correct |
6 ms |
48988 KB |
Output is correct |
23 |
Correct |
7 ms |
51032 KB |
Output is correct |
24 |
Correct |
7 ms |
51032 KB |
Output is correct |
25 |
Correct |
7 ms |
44376 KB |
Output is correct |
26 |
Correct |
6 ms |
30556 KB |
Output is correct |
27 |
Correct |
48 ms |
121764 KB |
Output is correct |
28 |
Correct |
42 ms |
114516 KB |
Output is correct |
29 |
Correct |
39 ms |
114012 KB |
Output is correct |
30 |
Correct |
44 ms |
120784 KB |
Output is correct |
31 |
Correct |
47 ms |
112468 KB |
Output is correct |
32 |
Correct |
39 ms |
123224 KB |
Output is correct |
33 |
Correct |
41 ms |
121672 KB |
Output is correct |
34 |
Correct |
5 ms |
28508 KB |
Output is correct |
35 |
Correct |
4 ms |
28508 KB |
Output is correct |
36 |
Correct |
5 ms |
28508 KB |
Output is correct |
37 |
Correct |
5 ms |
28356 KB |
Output is correct |
38 |
Correct |
5 ms |
28508 KB |
Output is correct |
39 |
Correct |
4 ms |
28508 KB |
Output is correct |
40 |
Correct |
4 ms |
28508 KB |
Output is correct |
41 |
Correct |
5 ms |
28572 KB |
Output is correct |
42 |
Correct |
5 ms |
28508 KB |
Output is correct |
43 |
Correct |
4 ms |
28504 KB |
Output is correct |
44 |
Correct |
4 ms |
28508 KB |
Output is correct |
45 |
Correct |
5 ms |
28508 KB |
Output is correct |
46 |
Correct |
4 ms |
28508 KB |
Output is correct |
47 |
Correct |
4 ms |
28508 KB |
Output is correct |
48 |
Correct |
4 ms |
28508 KB |
Output is correct |
49 |
Correct |
6 ms |
28368 KB |
Output is correct |
50 |
Correct |
4 ms |
28504 KB |
Output is correct |
51 |
Correct |
5 ms |
28376 KB |
Output is correct |
52 |
Correct |
4 ms |
28508 KB |
Output is correct |
53 |
Correct |
5 ms |
28508 KB |
Output is correct |
54 |
Correct |
5 ms |
32604 KB |
Output is correct |
55 |
Correct |
6 ms |
32600 KB |
Output is correct |
56 |
Correct |
5 ms |
32600 KB |
Output is correct |
57 |
Correct |
5 ms |
32604 KB |
Output is correct |
58 |
Correct |
4 ms |
32604 KB |
Output is correct |
59 |
Correct |
5 ms |
32600 KB |
Output is correct |
60 |
Correct |
5 ms |
32600 KB |
Output is correct |
61 |
Correct |
5 ms |
32604 KB |
Output is correct |
62 |
Correct |
4 ms |
32604 KB |
Output is correct |
63 |
Correct |
5 ms |
30556 KB |
Output is correct |
64 |
Correct |
4 ms |
30556 KB |
Output is correct |
65 |
Correct |
4 ms |
28508 KB |
Output is correct |
66 |
Correct |
5 ms |
28508 KB |
Output is correct |
67 |
Correct |
5 ms |
32604 KB |
Output is correct |
68 |
Correct |
6 ms |
32604 KB |
Output is correct |
69 |
Correct |
7 ms |
34652 KB |
Output is correct |
70 |
Correct |
5 ms |
34648 KB |
Output is correct |
71 |
Correct |
7 ms |
49244 KB |
Output is correct |
72 |
Correct |
6 ms |
48988 KB |
Output is correct |
73 |
Correct |
7 ms |
47196 KB |
Output is correct |
74 |
Correct |
7 ms |
48988 KB |
Output is correct |
75 |
Correct |
6 ms |
47708 KB |
Output is correct |
76 |
Correct |
6 ms |
47068 KB |
Output is correct |
77 |
Correct |
8 ms |
47708 KB |
Output is correct |
78 |
Correct |
6 ms |
48988 KB |
Output is correct |
79 |
Correct |
7 ms |
49052 KB |
Output is correct |
80 |
Correct |
7 ms |
47580 KB |
Output is correct |
81 |
Correct |
7 ms |
44892 KB |
Output is correct |
82 |
Correct |
8 ms |
46936 KB |
Output is correct |
83 |
Correct |
5 ms |
32604 KB |
Output is correct |
84 |
Correct |
5 ms |
30552 KB |
Output is correct |
85 |
Correct |
7 ms |
40796 KB |
Output is correct |
86 |
Correct |
6 ms |
32604 KB |
Output is correct |
87 |
Correct |
7 ms |
34720 KB |
Output is correct |
88 |
Correct |
6 ms |
34652 KB |
Output is correct |
89 |
Correct |
50 ms |
123232 KB |
Output is correct |
90 |
Correct |
41 ms |
109400 KB |
Output is correct |
91 |
Correct |
40 ms |
121620 KB |
Output is correct |
92 |
Correct |
50 ms |
114256 KB |
Output is correct |
93 |
Correct |
35 ms |
115544 KB |
Output is correct |
94 |
Correct |
37 ms |
116060 KB |
Output is correct |
95 |
Correct |
41 ms |
120916 KB |
Output is correct |
96 |
Correct |
35 ms |
112172 KB |
Output is correct |
97 |
Correct |
33 ms |
164184 KB |
Output is correct |
98 |
Correct |
25 ms |
162140 KB |
Output is correct |
99 |
Correct |
31 ms |
166236 KB |
Output is correct |
100 |
Correct |
17 ms |
125020 KB |
Output is correct |
101 |
Correct |
11 ms |
51036 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
28504 KB |
Output is correct |
2 |
Correct |
4 ms |
26460 KB |
Output is correct |
3 |
Correct |
4 ms |
28508 KB |
Output is correct |
4 |
Correct |
5 ms |
28508 KB |
Output is correct |
5 |
Correct |
4 ms |
28504 KB |
Output is correct |
6 |
Correct |
5 ms |
28504 KB |
Output is correct |
7 |
Correct |
4 ms |
30556 KB |
Output is correct |
8 |
Correct |
7 ms |
28504 KB |
Output is correct |
9 |
Correct |
5 ms |
28504 KB |
Output is correct |
10 |
Correct |
5 ms |
28508 KB |
Output is correct |
11 |
Correct |
5 ms |
30556 KB |
Output is correct |
12 |
Correct |
5 ms |
30552 KB |
Output is correct |
13 |
Correct |
7 ms |
32604 KB |
Output is correct |
14 |
Correct |
6 ms |
32604 KB |
Output is correct |
15 |
Correct |
6 ms |
32604 KB |
Output is correct |
16 |
Correct |
6 ms |
32600 KB |
Output is correct |
17 |
Correct |
5 ms |
32604 KB |
Output is correct |
18 |
Correct |
5 ms |
32440 KB |
Output is correct |
19 |
Correct |
4 ms |
28508 KB |
Output is correct |
20 |
Correct |
6 ms |
44488 KB |
Output is correct |
21 |
Correct |
6 ms |
48988 KB |
Output is correct |
22 |
Correct |
6 ms |
48988 KB |
Output is correct |
23 |
Correct |
7 ms |
51032 KB |
Output is correct |
24 |
Correct |
7 ms |
51032 KB |
Output is correct |
25 |
Correct |
7 ms |
44376 KB |
Output is correct |
26 |
Correct |
6 ms |
30556 KB |
Output is correct |
27 |
Correct |
48 ms |
121764 KB |
Output is correct |
28 |
Correct |
42 ms |
114516 KB |
Output is correct |
29 |
Correct |
39 ms |
114012 KB |
Output is correct |
30 |
Correct |
44 ms |
120784 KB |
Output is correct |
31 |
Correct |
47 ms |
112468 KB |
Output is correct |
32 |
Correct |
39 ms |
123224 KB |
Output is correct |
33 |
Correct |
41 ms |
121672 KB |
Output is correct |
34 |
Correct |
5 ms |
28508 KB |
Output is correct |
35 |
Correct |
4 ms |
28508 KB |
Output is correct |
36 |
Correct |
5 ms |
28508 KB |
Output is correct |
37 |
Correct |
5 ms |
28356 KB |
Output is correct |
38 |
Correct |
5 ms |
28508 KB |
Output is correct |
39 |
Correct |
4 ms |
28508 KB |
Output is correct |
40 |
Correct |
4 ms |
28508 KB |
Output is correct |
41 |
Correct |
5 ms |
28572 KB |
Output is correct |
42 |
Correct |
5 ms |
28508 KB |
Output is correct |
43 |
Correct |
4 ms |
28504 KB |
Output is correct |
44 |
Correct |
4 ms |
28508 KB |
Output is correct |
45 |
Correct |
5 ms |
28508 KB |
Output is correct |
46 |
Correct |
4 ms |
28508 KB |
Output is correct |
47 |
Correct |
4 ms |
28508 KB |
Output is correct |
48 |
Correct |
4 ms |
28508 KB |
Output is correct |
49 |
Correct |
6 ms |
28368 KB |
Output is correct |
50 |
Correct |
4 ms |
28504 KB |
Output is correct |
51 |
Correct |
5 ms |
28376 KB |
Output is correct |
52 |
Correct |
4 ms |
28508 KB |
Output is correct |
53 |
Correct |
5 ms |
28508 KB |
Output is correct |
54 |
Correct |
5 ms |
32604 KB |
Output is correct |
55 |
Correct |
6 ms |
32600 KB |
Output is correct |
56 |
Correct |
5 ms |
32600 KB |
Output is correct |
57 |
Correct |
5 ms |
32604 KB |
Output is correct |
58 |
Correct |
4 ms |
32604 KB |
Output is correct |
59 |
Correct |
5 ms |
32600 KB |
Output is correct |
60 |
Correct |
5 ms |
32600 KB |
Output is correct |
61 |
Correct |
5 ms |
32604 KB |
Output is correct |
62 |
Correct |
4 ms |
32604 KB |
Output is correct |
63 |
Correct |
5 ms |
30556 KB |
Output is correct |
64 |
Correct |
4 ms |
30556 KB |
Output is correct |
65 |
Correct |
4 ms |
28508 KB |
Output is correct |
66 |
Correct |
5 ms |
28508 KB |
Output is correct |
67 |
Correct |
5 ms |
32604 KB |
Output is correct |
68 |
Correct |
6 ms |
32604 KB |
Output is correct |
69 |
Correct |
7 ms |
34652 KB |
Output is correct |
70 |
Correct |
5 ms |
34648 KB |
Output is correct |
71 |
Correct |
7 ms |
49244 KB |
Output is correct |
72 |
Correct |
6 ms |
48988 KB |
Output is correct |
73 |
Correct |
7 ms |
47196 KB |
Output is correct |
74 |
Correct |
7 ms |
48988 KB |
Output is correct |
75 |
Correct |
6 ms |
47708 KB |
Output is correct |
76 |
Correct |
6 ms |
47068 KB |
Output is correct |
77 |
Correct |
8 ms |
47708 KB |
Output is correct |
78 |
Correct |
6 ms |
48988 KB |
Output is correct |
79 |
Correct |
7 ms |
49052 KB |
Output is correct |
80 |
Correct |
7 ms |
47580 KB |
Output is correct |
81 |
Correct |
7 ms |
44892 KB |
Output is correct |
82 |
Correct |
8 ms |
46936 KB |
Output is correct |
83 |
Correct |
5 ms |
32604 KB |
Output is correct |
84 |
Correct |
5 ms |
30552 KB |
Output is correct |
85 |
Correct |
7 ms |
40796 KB |
Output is correct |
86 |
Correct |
6 ms |
32604 KB |
Output is correct |
87 |
Correct |
7 ms |
34720 KB |
Output is correct |
88 |
Correct |
6 ms |
34652 KB |
Output is correct |
89 |
Correct |
50 ms |
123232 KB |
Output is correct |
90 |
Correct |
41 ms |
109400 KB |
Output is correct |
91 |
Correct |
40 ms |
121620 KB |
Output is correct |
92 |
Correct |
50 ms |
114256 KB |
Output is correct |
93 |
Correct |
35 ms |
115544 KB |
Output is correct |
94 |
Correct |
37 ms |
116060 KB |
Output is correct |
95 |
Correct |
41 ms |
120916 KB |
Output is correct |
96 |
Correct |
35 ms |
112172 KB |
Output is correct |
97 |
Correct |
33 ms |
164184 KB |
Output is correct |
98 |
Correct |
25 ms |
162140 KB |
Output is correct |
99 |
Correct |
31 ms |
166236 KB |
Output is correct |
100 |
Correct |
17 ms |
125020 KB |
Output is correct |
101 |
Correct |
11 ms |
51036 KB |
Output is correct |
102 |
Correct |
73 ms |
35160 KB |
Output is correct |
103 |
Correct |
177 ms |
49472 KB |
Output is correct |
104 |
Incorrect |
87 ms |
56000 KB |
1st lines differ - on the 1st token, expected: '333334', found: '269589' |
105 |
Halted |
0 ms |
0 KB |
- |