#include "light.h"
#include <cstring>
#include <vector>
using namespace std;
#ifdef DEBUG
#include "../Library/debug.h"
#else
#define dbg(x...)
#endif
typedef long long ll;
int n,m;
ll a[150],b[150];
void prepare(){
a[0]=1;
n=1;
}
void update(ll v){
dbg(1)
dbg(n)
for(int i=0;i<n;++i)
a[i]+=v;
b[0]=1;
m=1;
for(int i=0;i<n;++i){
if(a[i]<=b[m-1])
continue;
ll x=2*b[m-1]+1;
while(x<a[i]){
while(m>=2&&b[m-2]*2+1>=x)
m--;
b[m++]=x;
x=b[m-1]*2+1;
}
x=a[i];
while(m>=2&&b[m-2]*2+1>=x)
m--;
b[m++]=x;
}
memcpy(a,b,(n=m)*sizeof*b);
dbg(2)
}
vector<ll> query(){
vector<ll> res(n);
for(int i=0;i<n;++i)
res[i]=a[n-1]-a[n-1-i]+1;
return res;
}
std::pair<long long, std::vector<long long>> join(long long p){
update(p);
return {p,query()};
}
std::pair<long long, std::vector<long long>> leave(long long p){
update(-p);
return {p,query()};
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
336 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
336 KB |
Correct |
2 |
Correct |
924 ms |
428 KB |
Correct |
3 |
Correct |
861 ms |
428 KB |
Correct |
4 |
Correct |
895 ms |
424 KB |
Correct |
5 |
Correct |
914 ms |
420 KB |
Correct |
6 |
Correct |
928 ms |
428 KB |
Correct |
7 |
Correct |
893 ms |
420 KB |
Correct |
8 |
Correct |
868 ms |
424 KB |
Correct |
9 |
Correct |
936 ms |
428 KB |
Correct |
10 |
Correct |
918 ms |
424 KB |
Correct |
11 |
Correct |
903 ms |
420 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
336 KB |
Correct |
2 |
Correct |
923 ms |
336 KB |
Correct |
3 |
Correct |
140 ms |
336 KB |
Correct |
4 |
Correct |
894 ms |
336 KB |
Correct |
5 |
Correct |
840 ms |
336 KB |
Correct |
6 |
Correct |
16 ms |
336 KB |
Correct |
7 |
Correct |
864 ms |
336 KB |
Correct |
8 |
Correct |
49 ms |
336 KB |
Correct |
9 |
Correct |
861 ms |
336 KB |
Correct |
10 |
Correct |
914 ms |
336 KB |
Correct |
11 |
Correct |
239 ms |
336 KB |
Correct |
12 |
Correct |
872 ms |
336 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
336 KB |
Correct |
2 |
Correct |
923 ms |
336 KB |
Correct |
3 |
Correct |
140 ms |
336 KB |
Correct |
4 |
Correct |
894 ms |
336 KB |
Correct |
5 |
Correct |
840 ms |
336 KB |
Correct |
6 |
Correct |
16 ms |
336 KB |
Correct |
7 |
Correct |
864 ms |
336 KB |
Correct |
8 |
Correct |
49 ms |
336 KB |
Correct |
9 |
Correct |
861 ms |
336 KB |
Correct |
10 |
Correct |
914 ms |
336 KB |
Correct |
11 |
Correct |
239 ms |
336 KB |
Correct |
12 |
Correct |
872 ms |
336 KB |
Correct |
13 |
Correct |
1 ms |
336 KB |
Correct |
14 |
Correct |
859 ms |
336 KB |
Correct |
15 |
Correct |
139 ms |
336 KB |
Correct |
16 |
Correct |
911 ms |
336 KB |
Correct |
17 |
Correct |
865 ms |
336 KB |
Correct |
18 |
Correct |
17 ms |
336 KB |
Correct |
19 |
Correct |
921 ms |
336 KB |
Correct |
20 |
Correct |
66 ms |
336 KB |
Correct |
21 |
Correct |
889 ms |
336 KB |
Correct |
22 |
Correct |
853 ms |
336 KB |
Correct |
23 |
Correct |
214 ms |
336 KB |
Correct |
24 |
Correct |
908 ms |
336 KB |
Correct |
25 |
Correct |
13 ms |
336 KB |
Correct |
26 |
Correct |
10 ms |
336 KB |
Correct |
27 |
Correct |
11 ms |
336 KB |
Correct |
28 |
Correct |
906 ms |
336 KB |
Correct |
29 |
Correct |
55 ms |
336 KB |
Correct |
30 |
Correct |
896 ms |
336 KB |
Correct |
31 |
Correct |
916 ms |
336 KB |
Correct |
32 |
Correct |
22 ms |
336 KB |
Correct |
33 |
Correct |
880 ms |
336 KB |
Correct |
34 |
Correct |
854 ms |
336 KB |
Correct |
35 |
Correct |
867 ms |
336 KB |
Correct |
36 |
Correct |
879 ms |
336 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
336 KB |
Correct |
2 |
Correct |
923 ms |
336 KB |
Correct |
3 |
Correct |
140 ms |
336 KB |
Correct |
4 |
Correct |
894 ms |
336 KB |
Correct |
5 |
Correct |
840 ms |
336 KB |
Correct |
6 |
Correct |
16 ms |
336 KB |
Correct |
7 |
Correct |
864 ms |
336 KB |
Correct |
8 |
Correct |
49 ms |
336 KB |
Correct |
9 |
Correct |
861 ms |
336 KB |
Correct |
10 |
Correct |
914 ms |
336 KB |
Correct |
11 |
Correct |
239 ms |
336 KB |
Correct |
12 |
Correct |
872 ms |
336 KB |
Correct |
13 |
Correct |
1 ms |
336 KB |
Correct |
14 |
Correct |
859 ms |
336 KB |
Correct |
15 |
Correct |
139 ms |
336 KB |
Correct |
16 |
Correct |
911 ms |
336 KB |
Correct |
17 |
Correct |
865 ms |
336 KB |
Correct |
18 |
Correct |
17 ms |
336 KB |
Correct |
19 |
Correct |
921 ms |
336 KB |
Correct |
20 |
Correct |
66 ms |
336 KB |
Correct |
21 |
Correct |
889 ms |
336 KB |
Correct |
22 |
Correct |
853 ms |
336 KB |
Correct |
23 |
Correct |
214 ms |
336 KB |
Correct |
24 |
Correct |
908 ms |
336 KB |
Correct |
25 |
Correct |
13 ms |
336 KB |
Correct |
26 |
Correct |
10 ms |
336 KB |
Correct |
27 |
Correct |
11 ms |
336 KB |
Correct |
28 |
Correct |
906 ms |
336 KB |
Correct |
29 |
Correct |
55 ms |
336 KB |
Correct |
30 |
Correct |
896 ms |
336 KB |
Correct |
31 |
Correct |
916 ms |
336 KB |
Correct |
32 |
Correct |
22 ms |
336 KB |
Correct |
33 |
Correct |
880 ms |
336 KB |
Correct |
34 |
Correct |
854 ms |
336 KB |
Correct |
35 |
Correct |
867 ms |
336 KB |
Correct |
36 |
Correct |
879 ms |
336 KB |
Correct |
37 |
Correct |
1 ms |
336 KB |
Correct |
38 |
Correct |
885 ms |
336 KB |
Correct |
39 |
Correct |
139 ms |
336 KB |
Correct |
40 |
Correct |
914 ms |
336 KB |
Correct |
41 |
Correct |
817 ms |
336 KB |
Correct |
42 |
Correct |
17 ms |
336 KB |
Correct |
43 |
Correct |
854 ms |
336 KB |
Correct |
44 |
Correct |
48 ms |
336 KB |
Correct |
45 |
Correct |
857 ms |
336 KB |
Correct |
46 |
Correct |
880 ms |
336 KB |
Correct |
47 |
Correct |
209 ms |
336 KB |
Correct |
48 |
Correct |
857 ms |
336 KB |
Correct |
49 |
Correct |
14 ms |
336 KB |
Correct |
50 |
Correct |
12 ms |
336 KB |
Correct |
51 |
Correct |
11 ms |
336 KB |
Correct |
52 |
Correct |
865 ms |
336 KB |
Correct |
53 |
Correct |
43 ms |
336 KB |
Correct |
54 |
Correct |
855 ms |
336 KB |
Correct |
55 |
Correct |
906 ms |
336 KB |
Correct |
56 |
Correct |
21 ms |
336 KB |
Correct |
57 |
Correct |
946 ms |
336 KB |
Correct |
58 |
Correct |
882 ms |
336 KB |
Correct |
59 |
Correct |
931 ms |
336 KB |
Correct |
60 |
Correct |
883 ms |
336 KB |
Correct |
61 |
Correct |
63 ms |
336 KB |
Correct |
62 |
Correct |
129 ms |
336 KB |
Correct |
63 |
Correct |
53 ms |
336 KB |
Correct |
64 |
Correct |
922 ms |
336 KB |
Correct |
65 |
Correct |
897 ms |
336 KB |
Correct |
66 |
Correct |
907 ms |
336 KB |
Correct |
67 |
Correct |
845 ms |
336 KB |
Correct |
68 |
Correct |
886 ms |
336 KB |
Correct |
69 |
Correct |
840 ms |
336 KB |
Correct |
70 |
Correct |
871 ms |
508 KB |
Correct |
71 |
Correct |
944 ms |
336 KB |
Correct |
72 |
Correct |
891 ms |
336 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
336 KB |
Correct |
2 |
Correct |
923 ms |
336 KB |
Correct |
3 |
Correct |
140 ms |
336 KB |
Correct |
4 |
Correct |
894 ms |
336 KB |
Correct |
5 |
Correct |
840 ms |
336 KB |
Correct |
6 |
Correct |
16 ms |
336 KB |
Correct |
7 |
Correct |
864 ms |
336 KB |
Correct |
8 |
Correct |
49 ms |
336 KB |
Correct |
9 |
Correct |
861 ms |
336 KB |
Correct |
10 |
Correct |
914 ms |
336 KB |
Correct |
11 |
Correct |
239 ms |
336 KB |
Correct |
12 |
Correct |
872 ms |
336 KB |
Correct |
13 |
Correct |
1 ms |
336 KB |
Correct |
14 |
Correct |
859 ms |
336 KB |
Correct |
15 |
Correct |
139 ms |
336 KB |
Correct |
16 |
Correct |
911 ms |
336 KB |
Correct |
17 |
Correct |
865 ms |
336 KB |
Correct |
18 |
Correct |
17 ms |
336 KB |
Correct |
19 |
Correct |
921 ms |
336 KB |
Correct |
20 |
Correct |
66 ms |
336 KB |
Correct |
21 |
Correct |
889 ms |
336 KB |
Correct |
22 |
Correct |
853 ms |
336 KB |
Correct |
23 |
Correct |
214 ms |
336 KB |
Correct |
24 |
Correct |
908 ms |
336 KB |
Correct |
25 |
Correct |
13 ms |
336 KB |
Correct |
26 |
Correct |
10 ms |
336 KB |
Correct |
27 |
Correct |
11 ms |
336 KB |
Correct |
28 |
Correct |
906 ms |
336 KB |
Correct |
29 |
Correct |
55 ms |
336 KB |
Correct |
30 |
Correct |
896 ms |
336 KB |
Correct |
31 |
Correct |
916 ms |
336 KB |
Correct |
32 |
Correct |
22 ms |
336 KB |
Correct |
33 |
Correct |
880 ms |
336 KB |
Correct |
34 |
Correct |
854 ms |
336 KB |
Correct |
35 |
Correct |
867 ms |
336 KB |
Correct |
36 |
Correct |
879 ms |
336 KB |
Correct |
37 |
Correct |
1 ms |
336 KB |
Correct |
38 |
Correct |
885 ms |
336 KB |
Correct |
39 |
Correct |
139 ms |
336 KB |
Correct |
40 |
Correct |
914 ms |
336 KB |
Correct |
41 |
Correct |
817 ms |
336 KB |
Correct |
42 |
Correct |
17 ms |
336 KB |
Correct |
43 |
Correct |
854 ms |
336 KB |
Correct |
44 |
Correct |
48 ms |
336 KB |
Correct |
45 |
Correct |
857 ms |
336 KB |
Correct |
46 |
Correct |
880 ms |
336 KB |
Correct |
47 |
Correct |
209 ms |
336 KB |
Correct |
48 |
Correct |
857 ms |
336 KB |
Correct |
49 |
Correct |
14 ms |
336 KB |
Correct |
50 |
Correct |
12 ms |
336 KB |
Correct |
51 |
Correct |
11 ms |
336 KB |
Correct |
52 |
Correct |
865 ms |
336 KB |
Correct |
53 |
Correct |
43 ms |
336 KB |
Correct |
54 |
Correct |
855 ms |
336 KB |
Correct |
55 |
Correct |
906 ms |
336 KB |
Correct |
56 |
Correct |
21 ms |
336 KB |
Correct |
57 |
Correct |
946 ms |
336 KB |
Correct |
58 |
Correct |
882 ms |
336 KB |
Correct |
59 |
Correct |
931 ms |
336 KB |
Correct |
60 |
Correct |
883 ms |
336 KB |
Correct |
61 |
Correct |
63 ms |
336 KB |
Correct |
62 |
Correct |
129 ms |
336 KB |
Correct |
63 |
Correct |
53 ms |
336 KB |
Correct |
64 |
Correct |
922 ms |
336 KB |
Correct |
65 |
Correct |
897 ms |
336 KB |
Correct |
66 |
Correct |
907 ms |
336 KB |
Correct |
67 |
Correct |
845 ms |
336 KB |
Correct |
68 |
Correct |
886 ms |
336 KB |
Correct |
69 |
Correct |
840 ms |
336 KB |
Correct |
70 |
Correct |
871 ms |
508 KB |
Correct |
71 |
Correct |
944 ms |
336 KB |
Correct |
72 |
Correct |
891 ms |
336 KB |
Correct |
73 |
Correct |
1 ms |
336 KB |
Correct |
74 |
Correct |
850 ms |
336 KB |
Correct |
75 |
Correct |
167 ms |
504 KB |
Correct |
76 |
Correct |
914 ms |
336 KB |
Correct |
77 |
Correct |
896 ms |
336 KB |
Correct |
78 |
Correct |
11 ms |
336 KB |
Correct |
79 |
Correct |
866 ms |
336 KB |
Correct |
80 |
Correct |
53 ms |
336 KB |
Correct |
81 |
Correct |
878 ms |
336 KB |
Correct |
82 |
Correct |
898 ms |
336 KB |
Correct |
83 |
Correct |
264 ms |
336 KB |
Correct |
84 |
Correct |
917 ms |
336 KB |
Correct |
85 |
Correct |
13 ms |
336 KB |
Correct |
86 |
Correct |
9 ms |
336 KB |
Correct |
87 |
Correct |
15 ms |
504 KB |
Correct |
88 |
Correct |
934 ms |
336 KB |
Correct |
89 |
Correct |
49 ms |
336 KB |
Correct |
90 |
Correct |
855 ms |
504 KB |
Correct |
91 |
Correct |
906 ms |
336 KB |
Correct |
92 |
Correct |
19 ms |
336 KB |
Correct |
93 |
Correct |
888 ms |
336 KB |
Correct |
94 |
Correct |
911 ms |
336 KB |
Correct |
95 |
Correct |
904 ms |
336 KB |
Correct |
96 |
Correct |
863 ms |
336 KB |
Correct |
97 |
Correct |
66 ms |
336 KB |
Correct |
98 |
Correct |
136 ms |
336 KB |
Correct |
99 |
Correct |
64 ms |
336 KB |
Correct |
100 |
Correct |
880 ms |
336 KB |
Correct |
101 |
Correct |
883 ms |
336 KB |
Correct |
102 |
Correct |
898 ms |
336 KB |
Correct |
103 |
Correct |
892 ms |
336 KB |
Correct |
104 |
Correct |
933 ms |
336 KB |
Correct |
105 |
Correct |
852 ms |
336 KB |
Correct |
106 |
Correct |
864 ms |
336 KB |
Correct |
107 |
Correct |
914 ms |
336 KB |
Correct |
108 |
Correct |
875 ms |
504 KB |
Correct |
109 |
Correct |
898 ms |
336 KB |
Correct |
110 |
Correct |
897 ms |
504 KB |
Correct |
111 |
Correct |
907 ms |
336 KB |
Correct |
112 |
Correct |
871 ms |
424 KB |
Correct |
113 |
Correct |
870 ms |
336 KB |
Correct |
114 |
Correct |
905 ms |
336 KB |
Correct |
115 |
Correct |
874 ms |
424 KB |
Correct |
116 |
Correct |
897 ms |
336 KB |
Correct |
117 |
Correct |
918 ms |
336 KB |
Correct |
118 |
Correct |
888 ms |
336 KB |
Correct |
119 |
Correct |
930 ms |
336 KB |
Correct |
120 |
Correct |
918 ms |
336 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
336 KB |
Correct |
2 |
Correct |
923 ms |
336 KB |
Correct |
3 |
Correct |
140 ms |
336 KB |
Correct |
4 |
Correct |
894 ms |
336 KB |
Correct |
5 |
Correct |
840 ms |
336 KB |
Correct |
6 |
Correct |
16 ms |
336 KB |
Correct |
7 |
Correct |
864 ms |
336 KB |
Correct |
8 |
Correct |
49 ms |
336 KB |
Correct |
9 |
Correct |
861 ms |
336 KB |
Correct |
10 |
Correct |
914 ms |
336 KB |
Correct |
11 |
Correct |
239 ms |
336 KB |
Correct |
12 |
Correct |
872 ms |
336 KB |
Correct |
13 |
Correct |
1 ms |
336 KB |
Correct |
14 |
Correct |
859 ms |
336 KB |
Correct |
15 |
Correct |
139 ms |
336 KB |
Correct |
16 |
Correct |
911 ms |
336 KB |
Correct |
17 |
Correct |
865 ms |
336 KB |
Correct |
18 |
Correct |
17 ms |
336 KB |
Correct |
19 |
Correct |
921 ms |
336 KB |
Correct |
20 |
Correct |
66 ms |
336 KB |
Correct |
21 |
Correct |
889 ms |
336 KB |
Correct |
22 |
Correct |
853 ms |
336 KB |
Correct |
23 |
Correct |
214 ms |
336 KB |
Correct |
24 |
Correct |
908 ms |
336 KB |
Correct |
25 |
Correct |
13 ms |
336 KB |
Correct |
26 |
Correct |
10 ms |
336 KB |
Correct |
27 |
Correct |
11 ms |
336 KB |
Correct |
28 |
Correct |
906 ms |
336 KB |
Correct |
29 |
Correct |
55 ms |
336 KB |
Correct |
30 |
Correct |
896 ms |
336 KB |
Correct |
31 |
Correct |
916 ms |
336 KB |
Correct |
32 |
Correct |
22 ms |
336 KB |
Correct |
33 |
Correct |
880 ms |
336 KB |
Correct |
34 |
Correct |
854 ms |
336 KB |
Correct |
35 |
Correct |
867 ms |
336 KB |
Correct |
36 |
Correct |
879 ms |
336 KB |
Correct |
37 |
Correct |
1 ms |
336 KB |
Correct |
38 |
Correct |
885 ms |
336 KB |
Correct |
39 |
Correct |
139 ms |
336 KB |
Correct |
40 |
Correct |
914 ms |
336 KB |
Correct |
41 |
Correct |
817 ms |
336 KB |
Correct |
42 |
Correct |
17 ms |
336 KB |
Correct |
43 |
Correct |
854 ms |
336 KB |
Correct |
44 |
Correct |
48 ms |
336 KB |
Correct |
45 |
Correct |
857 ms |
336 KB |
Correct |
46 |
Correct |
880 ms |
336 KB |
Correct |
47 |
Correct |
209 ms |
336 KB |
Correct |
48 |
Correct |
857 ms |
336 KB |
Correct |
49 |
Correct |
14 ms |
336 KB |
Correct |
50 |
Correct |
12 ms |
336 KB |
Correct |
51 |
Correct |
11 ms |
336 KB |
Correct |
52 |
Correct |
865 ms |
336 KB |
Correct |
53 |
Correct |
43 ms |
336 KB |
Correct |
54 |
Correct |
855 ms |
336 KB |
Correct |
55 |
Correct |
906 ms |
336 KB |
Correct |
56 |
Correct |
21 ms |
336 KB |
Correct |
57 |
Correct |
946 ms |
336 KB |
Correct |
58 |
Correct |
882 ms |
336 KB |
Correct |
59 |
Correct |
931 ms |
336 KB |
Correct |
60 |
Correct |
883 ms |
336 KB |
Correct |
61 |
Correct |
63 ms |
336 KB |
Correct |
62 |
Correct |
129 ms |
336 KB |
Correct |
63 |
Correct |
53 ms |
336 KB |
Correct |
64 |
Correct |
922 ms |
336 KB |
Correct |
65 |
Correct |
897 ms |
336 KB |
Correct |
66 |
Correct |
907 ms |
336 KB |
Correct |
67 |
Correct |
845 ms |
336 KB |
Correct |
68 |
Correct |
886 ms |
336 KB |
Correct |
69 |
Correct |
840 ms |
336 KB |
Correct |
70 |
Correct |
871 ms |
508 KB |
Correct |
71 |
Correct |
944 ms |
336 KB |
Correct |
72 |
Correct |
891 ms |
336 KB |
Correct |
73 |
Correct |
1 ms |
336 KB |
Correct |
74 |
Correct |
850 ms |
336 KB |
Correct |
75 |
Correct |
167 ms |
504 KB |
Correct |
76 |
Correct |
914 ms |
336 KB |
Correct |
77 |
Correct |
896 ms |
336 KB |
Correct |
78 |
Correct |
11 ms |
336 KB |
Correct |
79 |
Correct |
866 ms |
336 KB |
Correct |
80 |
Correct |
53 ms |
336 KB |
Correct |
81 |
Correct |
878 ms |
336 KB |
Correct |
82 |
Correct |
898 ms |
336 KB |
Correct |
83 |
Correct |
264 ms |
336 KB |
Correct |
84 |
Correct |
917 ms |
336 KB |
Correct |
85 |
Correct |
13 ms |
336 KB |
Correct |
86 |
Correct |
9 ms |
336 KB |
Correct |
87 |
Correct |
15 ms |
504 KB |
Correct |
88 |
Correct |
934 ms |
336 KB |
Correct |
89 |
Correct |
49 ms |
336 KB |
Correct |
90 |
Correct |
855 ms |
504 KB |
Correct |
91 |
Correct |
906 ms |
336 KB |
Correct |
92 |
Correct |
19 ms |
336 KB |
Correct |
93 |
Correct |
888 ms |
336 KB |
Correct |
94 |
Correct |
911 ms |
336 KB |
Correct |
95 |
Correct |
904 ms |
336 KB |
Correct |
96 |
Correct |
863 ms |
336 KB |
Correct |
97 |
Correct |
66 ms |
336 KB |
Correct |
98 |
Correct |
136 ms |
336 KB |
Correct |
99 |
Correct |
64 ms |
336 KB |
Correct |
100 |
Correct |
880 ms |
336 KB |
Correct |
101 |
Correct |
883 ms |
336 KB |
Correct |
102 |
Correct |
898 ms |
336 KB |
Correct |
103 |
Correct |
892 ms |
336 KB |
Correct |
104 |
Correct |
933 ms |
336 KB |
Correct |
105 |
Correct |
852 ms |
336 KB |
Correct |
106 |
Correct |
864 ms |
336 KB |
Correct |
107 |
Correct |
914 ms |
336 KB |
Correct |
108 |
Correct |
875 ms |
504 KB |
Correct |
109 |
Correct |
898 ms |
336 KB |
Correct |
110 |
Correct |
897 ms |
504 KB |
Correct |
111 |
Correct |
907 ms |
336 KB |
Correct |
112 |
Correct |
871 ms |
424 KB |
Correct |
113 |
Correct |
870 ms |
336 KB |
Correct |
114 |
Correct |
905 ms |
336 KB |
Correct |
115 |
Correct |
874 ms |
424 KB |
Correct |
116 |
Correct |
897 ms |
336 KB |
Correct |
117 |
Correct |
918 ms |
336 KB |
Correct |
118 |
Correct |
888 ms |
336 KB |
Correct |
119 |
Correct |
930 ms |
336 KB |
Correct |
120 |
Correct |
918 ms |
336 KB |
Correct |
121 |
Correct |
1 ms |
336 KB |
Correct |
122 |
Correct |
861 ms |
336 KB |
Correct |
123 |
Correct |
136 ms |
336 KB |
Correct |
124 |
Correct |
853 ms |
336 KB |
Correct |
125 |
Correct |
848 ms |
336 KB |
Correct |
126 |
Correct |
16 ms |
336 KB |
Correct |
127 |
Correct |
888 ms |
336 KB |
Correct |
128 |
Correct |
64 ms |
336 KB |
Correct |
129 |
Correct |
818 ms |
336 KB |
Correct |
130 |
Correct |
872 ms |
336 KB |
Correct |
131 |
Correct |
259 ms |
336 KB |
Correct |
132 |
Correct |
902 ms |
336 KB |
Correct |
133 |
Correct |
12 ms |
336 KB |
Correct |
134 |
Correct |
11 ms |
336 KB |
Correct |
135 |
Correct |
8 ms |
336 KB |
Correct |
136 |
Correct |
869 ms |
336 KB |
Correct |
137 |
Correct |
54 ms |
336 KB |
Correct |
138 |
Correct |
870 ms |
336 KB |
Correct |
139 |
Correct |
900 ms |
336 KB |
Correct |
140 |
Correct |
19 ms |
336 KB |
Correct |
141 |
Correct |
938 ms |
336 KB |
Correct |
142 |
Correct |
894 ms |
336 KB |
Correct |
143 |
Correct |
856 ms |
336 KB |
Correct |
144 |
Correct |
905 ms |
336 KB |
Correct |
145 |
Correct |
61 ms |
336 KB |
Correct |
146 |
Correct |
147 ms |
336 KB |
Correct |
147 |
Correct |
61 ms |
336 KB |
Correct |
148 |
Correct |
954 ms |
336 KB |
Correct |
149 |
Correct |
862 ms |
336 KB |
Correct |
150 |
Correct |
911 ms |
336 KB |
Correct |
151 |
Correct |
870 ms |
336 KB |
Correct |
152 |
Correct |
897 ms |
336 KB |
Correct |
153 |
Correct |
908 ms |
336 KB |
Correct |
154 |
Correct |
927 ms |
336 KB |
Correct |
155 |
Correct |
911 ms |
336 KB |
Correct |
156 |
Correct |
880 ms |
336 KB |
Correct |
157 |
Correct |
883 ms |
336 KB |
Correct |
158 |
Correct |
877 ms |
336 KB |
Correct |
159 |
Correct |
895 ms |
336 KB |
Correct |
160 |
Correct |
873 ms |
336 KB |
Correct |
161 |
Correct |
876 ms |
336 KB |
Correct |
162 |
Correct |
918 ms |
336 KB |
Correct |
163 |
Correct |
850 ms |
420 KB |
Correct |
164 |
Correct |
929 ms |
336 KB |
Correct |
165 |
Correct |
862 ms |
336 KB |
Correct |
166 |
Correct |
900 ms |
336 KB |
Correct |
167 |
Correct |
887 ms |
336 KB |
Correct |
168 |
Correct |
899 ms |
336 KB |
Correct |
169 |
Correct |
901 ms |
336 KB |
Correct |
170 |
Correct |
920 ms |
336 KB |
Correct |
171 |
Correct |
910 ms |
336 KB |
Correct |
172 |
Correct |
862 ms |
336 KB |
Correct |
173 |
Correct |
795 ms |
504 KB |
Correct |
174 |
Correct |
738 ms |
504 KB |
Correct |
175 |
Correct |
752 ms |
336 KB |
Correct |
176 |
Correct |
747 ms |
336 KB |
Correct |
177 |
Correct |
768 ms |
504 KB |
Correct |
178 |
Correct |
740 ms |
336 KB |
Correct |
179 |
Correct |
759 ms |
420 KB |
Correct |
180 |
Correct |
732 ms |
336 KB |
Correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
336 KB |
Correct |
2 |
Correct |
747 ms |
424 KB |
Correct |
3 |
Correct |
821 ms |
424 KB |
Correct |
4 |
Correct |
793 ms |
420 KB |
Correct |
5 |
Correct |
944 ms |
424 KB |
Correct |
6 |
Correct |
905 ms |
504 KB |
Correct |
7 |
Correct |
880 ms |
420 KB |
Correct |
8 |
Correct |
932 ms |
428 KB |
Correct |
9 |
Correct |
891 ms |
428 KB |
Correct |
10 |
Correct |
910 ms |
424 KB |
Correct |
11 |
Correct |
929 ms |
424 KB |
Correct |
12 |
Correct |
907 ms |
336 KB |
Correct |
13 |
Correct |
161 ms |
336 KB |
Correct |
14 |
Correct |
860 ms |
508 KB |
Correct |
15 |
Correct |
875 ms |
336 KB |
Correct |
16 |
Correct |
18 ms |
336 KB |
Correct |
17 |
Correct |
912 ms |
336 KB |
Correct |
18 |
Correct |
58 ms |
336 KB |
Correct |
19 |
Correct |
888 ms |
336 KB |
Correct |
20 |
Correct |
846 ms |
336 KB |
Correct |
21 |
Correct |
228 ms |
336 KB |
Correct |
22 |
Correct |
873 ms |
336 KB |
Correct |
23 |
Correct |
9 ms |
336 KB |
Correct |
24 |
Correct |
8 ms |
336 KB |
Correct |
25 |
Correct |
12 ms |
336 KB |
Correct |
26 |
Correct |
933 ms |
336 KB |
Correct |
27 |
Correct |
56 ms |
336 KB |
Correct |
28 |
Correct |
930 ms |
500 KB |
Correct |
29 |
Correct |
931 ms |
336 KB |
Correct |
30 |
Correct |
25 ms |
504 KB |
Correct |
31 |
Correct |
863 ms |
336 KB |
Correct |
32 |
Correct |
884 ms |
336 KB |
Correct |
33 |
Correct |
904 ms |
336 KB |
Correct |
34 |
Correct |
900 ms |
336 KB |
Correct |
35 |
Correct |
48 ms |
336 KB |
Correct |
36 |
Correct |
115 ms |
336 KB |
Correct |
37 |
Correct |
62 ms |
336 KB |
Correct |
38 |
Correct |
898 ms |
336 KB |
Correct |
39 |
Correct |
935 ms |
336 KB |
Correct |
40 |
Correct |
900 ms |
336 KB |
Correct |
41 |
Correct |
890 ms |
336 KB |
Correct |
42 |
Correct |
881 ms |
336 KB |
Correct |
43 |
Correct |
884 ms |
336 KB |
Correct |
44 |
Correct |
844 ms |
336 KB |
Correct |
45 |
Correct |
912 ms |
504 KB |
Correct |
46 |
Correct |
963 ms |
336 KB |
Correct |
47 |
Correct |
969 ms |
336 KB |
Correct |
48 |
Correct |
883 ms |
336 KB |
Correct |
49 |
Correct |
917 ms |
336 KB |
Correct |
50 |
Correct |
890 ms |
424 KB |
Correct |
51 |
Correct |
906 ms |
336 KB |
Correct |
52 |
Correct |
945 ms |
336 KB |
Correct |
53 |
Correct |
922 ms |
416 KB |
Correct |
54 |
Correct |
920 ms |
336 KB |
Correct |
55 |
Correct |
921 ms |
336 KB |
Correct |
56 |
Correct |
865 ms |
336 KB |
Correct |
57 |
Correct |
913 ms |
336 KB |
Correct |
58 |
Correct |
908 ms |
336 KB |
Correct |
59 |
Correct |
918 ms |
336 KB |
Correct |
60 |
Correct |
985 ms |
336 KB |
Correct |
61 |
Correct |
854 ms |
336 KB |
Correct |
62 |
Correct |
892 ms |
592 KB |
Correct |
63 |
Correct |
912 ms |
336 KB |
Correct |
64 |
Correct |
940 ms |
584 KB |
Correct |
65 |
Correct |
880 ms |
336 KB |
Correct |
66 |
Correct |
877 ms |
336 KB |
Correct |
67 |
Correct |
899 ms |
336 KB |
Correct |
68 |
Correct |
915 ms |
336 KB |
Correct |
69 |
Correct |
905 ms |
424 KB |
Correct |
70 |
Correct |
908 ms |
336 KB |
Correct |
71 |
Correct |
895 ms |
420 KB |
Correct |
72 |
Correct |
929 ms |
432 KB |
Correct |
73 |
Correct |
969 ms |
436 KB |
Correct |
74 |
Correct |
922 ms |
336 KB |
Correct |
75 |
Correct |
950 ms |
336 KB |
Correct |
76 |
Correct |
927 ms |
428 KB |
Correct |
77 |
Correct |
959 ms |
336 KB |
Correct |
78 |
Correct |
882 ms |
428 KB |
Correct |
79 |
Correct |
903 ms |
428 KB |
Correct |
80 |
Correct |
891 ms |
336 KB |
Correct |
81 |
Correct |
909 ms |
448 KB |
Correct |
82 |
Correct |
922 ms |
584 KB |
Correct |
83 |
Correct |
934 ms |
336 KB |
Correct |
84 |
Correct |
868 ms |
592 KB |
Correct |
85 |
Correct |
856 ms |
336 KB |
Correct |
86 |
Correct |
916 ms |
424 KB |
Correct |
87 |
Correct |
922 ms |
436 KB |
Correct |
88 |
Correct |
895 ms |
592 KB |
Correct |
89 |
Correct |
927 ms |
436 KB |
Correct |
90 |
Correct |
875 ms |
336 KB |
Correct |
91 |
Correct |
912 ms |
424 KB |
Correct |
92 |
Correct |
941 ms |
336 KB |
Correct |
93 |
Correct |
963 ms |
424 KB |
Correct |
94 |
Correct |
879 ms |
680 KB |
Correct |
95 |
Correct |
872 ms |
336 KB |
Correct |
96 |
Correct |
893 ms |
336 KB |
Correct |
97 |
Correct |
915 ms |
420 KB |
Correct |
98 |
Correct |
901 ms |
428 KB |
Correct |
99 |
Correct |
903 ms |
592 KB |
Correct |
100 |
Correct |
861 ms |
336 KB |
Correct |
101 |
Correct |
914 ms |
420 KB |
Correct |
102 |
Correct |
878 ms |
428 KB |
Correct |
103 |
Correct |
846 ms |
592 KB |
Correct |
104 |
Correct |
932 ms |
588 KB |
Correct |
105 |
Correct |
926 ms |
428 KB |
Correct |
106 |
Correct |
881 ms |
420 KB |
Correct |
107 |
Correct |
888 ms |
336 KB |
Correct |
108 |
Correct |
608 ms |
424 KB |
Correct |
109 |
Correct |
839 ms |
428 KB |
Correct |
110 |
Correct |
857 ms |
336 KB |
Correct |
111 |
Correct |
919 ms |
504 KB |
Correct |
112 |
Correct |
913 ms |
504 KB |
Correct |
113 |
Correct |
908 ms |
428 KB |
Correct |
114 |
Correct |
898 ms |
336 KB |
Correct |
115 |
Correct |
886 ms |
336 KB |
Correct |
116 |
Correct |
912 ms |
424 KB |
Correct |
117 |
Correct |
949 ms |
432 KB |
Correct |
118 |
Correct |
926 ms |
440 KB |
Correct |
119 |
Correct |
915 ms |
444 KB |
Correct |
120 |
Correct |
899 ms |
336 KB |
Correct |
121 |
Correct |
926 ms |
424 KB |
Correct |
122 |
Correct |
925 ms |
336 KB |
Correct |
123 |
Correct |
826 ms |
432 KB |
Correct |
124 |
Correct |
860 ms |
428 KB |
Correct |
125 |
Correct |
933 ms |
448 KB |
Correct |
126 |
Correct |
926 ms |
336 KB |
Correct |
127 |
Correct |
881 ms |
336 KB |
Correct |
128 |
Correct |
932 ms |
584 KB |
Correct |
129 |
Correct |
936 ms |
336 KB |
Correct |
130 |
Correct |
876 ms |
336 KB |
Correct |