Submission #1045009

# Submission time Handle Problem Language Result Execution time Memory
1045009 2024-08-05T15:36:42 Z urd05 Bring Down the Grading Server (CEOI23_gradingserver) C++17
100 / 100
2231 ms 69916 KB
#include <bits/stdc++.h>
using namespace std;

long long s;
int q;
typedef pair<long long,long long> P;
typedef pair<long long,P> iP;
map<iP,long long> mp[2];

bool solve(long long a1,long long f1,long long a2,long long f2,int t=0) {
if (a2<=-f1*s) return true;
if (a1<=-f2*s) return false;
    if (a1>=s&&a2<s) {
        return true;
    }
    if (0<a1&&a1<s&&a2<=0) {
if (f2==0) {
return !solve(a2-a1,f2,a1,f1,1-t);
}
        return true;
    }
    if (a1<=0&&a2>=s) {
        return false;
    }
    if (a2>=s) {
        return !solve(a2-a1,f2,a1,f1,1-t);
    }
    if (a1<=0) {
        if (a2<=0) {
            long long tt=min((-a1)/s+1,(-a2)/s+1);
tt=min(tt,f1);
tt=min(tt,f2);
            return solve(a1+tt*s,f1-tt,a2+tt*s,f2-tt,t);
        }
if (f2==0) return false;
        if (f1==0) {
            long long b2=s-a2;
            long long cnt=(-a1)/(b2)+1;
            if (f2>=cnt) {
                return solve(a1+cnt*b2,f1,a2,f2-cnt,t);
            }
            else {
                return false;
            }
        }
        return !solve(a2,f2-1,a1+s,f1,1-t);
    }
assert(0<a1&&a1<s&&a2>0&&a2<s);
        if (f2==0) {
        return !solve(a2-a1,f2,a1,f1,1-t);
    }
    long long b2=s-a2;
    long long b1=s-a1;
    if (b2*f2>=b1) {
        return true;
    }
    if ((s-a1)*(f1+1)>=2*s-a2) {
        long long diff=(s-a1)*(f1+1)-2*s+a2;
        diff=diff/(b2*(f1+1))+1;
        diff=min(diff,f2);
            return solve(a1+b2*diff,f1,a2,f2-diff,t);
    }
    bool flag=false;
    if (f2>10*s||f1>10*s) {
        return true;
    }
    if (b2*max(f1,1LL)>=(10*s+1)/(f2*f2)) {
        return true;
    }
    if (mp[t].find(iP(f1,P(b2,f2)))!=mp[t].end()) {
        long long got=mp[t][iP(f1,P(b2,f2))];
        return a1+s*f2>=got;
    }
    long long lo=0;
    long long hi=1e12+7;
    if (solve(a2,f2-1,hi-s*f2+s,f1,1-t)&&solve(a2-hi+s*f2,f2,hi-s*f2,f1,1-t)) {
        mp[t][iP(f1,P(b2,f2))]=1e17+1;
        return false;
    }
    while (lo+1<hi) {
        long long mid=(lo+hi)/2;
        if (solve(a2,f2-1,mid-s*f2+s,f1,1-t)&&solve(a2-mid+s*f2,f2,mid-s*f2,f1,1-t)) {
            lo=mid;
        }
        else {
            hi=mid;
        }
    }
    mp[t][iP(f1,P(b2,f2))]=hi;
    return (a1+s*f2>=hi);
}

int main(void) {
    scanf("%lld %d",&s,&q);
    for(int i=0;i<q;i++) {
        long long c1,f1,c2,f2;
        scanf("%lld %lld %lld %lld",&c1,&f1,&c2,&f2);
        int got=solve(c1-s*f2,f1,c2-s*f1,f2);
        printf("%s\n",got?"YES":"NO");
    }
}

Compilation message

gradingserver.cpp: In function 'bool solve(long long int, long long int, long long int, long long int, int)':
gradingserver.cpp:63:10: warning: unused variable 'flag' [-Wunused-variable]
   63 |     bool flag=false;
      |          ^~~~
gradingserver.cpp: In function 'int main()':
gradingserver.cpp:94:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   94 |     scanf("%lld %d",&s,&q);
      |     ~~~~~^~~~~~~~~~~~~~~~~
gradingserver.cpp:97:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   97 |         scanf("%lld %lld %lld %lld",&c1,&f1,&c2,&f2);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 51 ms 2768 KB Output is correct
3 Correct 51 ms 3076 KB Output is correct
4 Correct 53 ms 3080 KB Output is correct
5 Correct 50 ms 2864 KB Output is correct
6 Correct 53 ms 2644 KB Output is correct
7 Correct 55 ms 2640 KB Output is correct
8 Correct 52 ms 2796 KB Output is correct
9 Correct 48 ms 2636 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 51 ms 2768 KB Output is correct
3 Correct 51 ms 3076 KB Output is correct
4 Correct 53 ms 3080 KB Output is correct
5 Correct 50 ms 2864 KB Output is correct
6 Correct 53 ms 2644 KB Output is correct
7 Correct 55 ms 2640 KB Output is correct
8 Correct 52 ms 2796 KB Output is correct
9 Correct 48 ms 2636 KB Output is correct
10 Correct 0 ms 344 KB Output is correct
11 Correct 48 ms 2644 KB Output is correct
12 Correct 50 ms 2900 KB Output is correct
13 Correct 61 ms 3044 KB Output is correct
14 Correct 50 ms 2996 KB Output is correct
15 Correct 52 ms 2644 KB Output is correct
16 Correct 59 ms 2640 KB Output is correct
17 Correct 51 ms 2812 KB Output is correct
18 Correct 48 ms 2644 KB Output is correct
19 Correct 55 ms 3308 KB Output is correct
20 Correct 59 ms 3064 KB Output is correct
21 Correct 62 ms 3156 KB Output is correct
22 Correct 55 ms 3152 KB Output is correct
23 Correct 54 ms 3152 KB Output is correct
24 Correct 58 ms 3152 KB Output is correct
25 Correct 57 ms 3348 KB Output is correct
26 Correct 56 ms 3164 KB Output is correct
27 Correct 55 ms 3156 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 94 ms 7504 KB Output is correct
2 Correct 92 ms 7112 KB Output is correct
3 Correct 79 ms 7252 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 51 ms 2768 KB Output is correct
3 Correct 51 ms 3076 KB Output is correct
4 Correct 53 ms 3080 KB Output is correct
5 Correct 50 ms 2864 KB Output is correct
6 Correct 53 ms 2644 KB Output is correct
7 Correct 55 ms 2640 KB Output is correct
8 Correct 52 ms 2796 KB Output is correct
9 Correct 48 ms 2636 KB Output is correct
10 Correct 0 ms 344 KB Output is correct
11 Correct 48 ms 2644 KB Output is correct
12 Correct 50 ms 2900 KB Output is correct
13 Correct 61 ms 3044 KB Output is correct
14 Correct 50 ms 2996 KB Output is correct
15 Correct 52 ms 2644 KB Output is correct
16 Correct 59 ms 2640 KB Output is correct
17 Correct 51 ms 2812 KB Output is correct
18 Correct 48 ms 2644 KB Output is correct
19 Correct 55 ms 3308 KB Output is correct
20 Correct 59 ms 3064 KB Output is correct
21 Correct 62 ms 3156 KB Output is correct
22 Correct 55 ms 3152 KB Output is correct
23 Correct 54 ms 3152 KB Output is correct
24 Correct 58 ms 3152 KB Output is correct
25 Correct 57 ms 3348 KB Output is correct
26 Correct 56 ms 3164 KB Output is correct
27 Correct 55 ms 3156 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 50 ms 2628 KB Output is correct
30 Correct 51 ms 2640 KB Output is correct
31 Correct 52 ms 2644 KB Output is correct
32 Correct 59 ms 2652 KB Output is correct
33 Correct 68 ms 2792 KB Output is correct
34 Correct 56 ms 2648 KB Output is correct
35 Correct 51 ms 2756 KB Output is correct
36 Correct 56 ms 2792 KB Output is correct
37 Correct 77 ms 2900 KB Output is correct
38 Correct 60 ms 2896 KB Output is correct
39 Correct 62 ms 3340 KB Output is correct
40 Correct 56 ms 3120 KB Output is correct
41 Correct 73 ms 3156 KB Output is correct
42 Correct 56 ms 3152 KB Output is correct
43 Correct 59 ms 2980 KB Output is correct
44 Correct 52 ms 3156 KB Output is correct
45 Correct 52 ms 2908 KB Output is correct
46 Correct 74 ms 3668 KB Output is correct
47 Correct 56 ms 3668 KB Output is correct
48 Correct 83 ms 3636 KB Output is correct
49 Correct 62 ms 3408 KB Output is correct
50 Correct 70 ms 3668 KB Output is correct
51 Correct 88 ms 3516 KB Output is correct
52 Correct 72 ms 3152 KB Output is correct
53 Correct 50 ms 2996 KB Output is correct
54 Correct 57 ms 3232 KB Output is correct
55 Correct 64 ms 3664 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 51 ms 2768 KB Output is correct
3 Correct 51 ms 3076 KB Output is correct
4 Correct 53 ms 3080 KB Output is correct
5 Correct 50 ms 2864 KB Output is correct
6 Correct 53 ms 2644 KB Output is correct
7 Correct 55 ms 2640 KB Output is correct
8 Correct 52 ms 2796 KB Output is correct
9 Correct 48 ms 2636 KB Output is correct
10 Correct 0 ms 344 KB Output is correct
11 Correct 48 ms 2644 KB Output is correct
12 Correct 50 ms 2900 KB Output is correct
13 Correct 61 ms 3044 KB Output is correct
14 Correct 50 ms 2996 KB Output is correct
15 Correct 52 ms 2644 KB Output is correct
16 Correct 59 ms 2640 KB Output is correct
17 Correct 51 ms 2812 KB Output is correct
18 Correct 48 ms 2644 KB Output is correct
19 Correct 55 ms 3308 KB Output is correct
20 Correct 59 ms 3064 KB Output is correct
21 Correct 62 ms 3156 KB Output is correct
22 Correct 55 ms 3152 KB Output is correct
23 Correct 54 ms 3152 KB Output is correct
24 Correct 58 ms 3152 KB Output is correct
25 Correct 57 ms 3348 KB Output is correct
26 Correct 56 ms 3164 KB Output is correct
27 Correct 55 ms 3156 KB Output is correct
28 Correct 94 ms 7504 KB Output is correct
29 Correct 92 ms 7112 KB Output is correct
30 Correct 79 ms 7252 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 100 ms 7500 KB Output is correct
33 Correct 78 ms 7096 KB Output is correct
34 Correct 81 ms 7212 KB Output is correct
35 Correct 0 ms 344 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 63 ms 2768 KB Output is correct
38 Correct 52 ms 2896 KB Output is correct
39 Correct 53 ms 2896 KB Output is correct
40 Correct 51 ms 3020 KB Output is correct
41 Correct 54 ms 2616 KB Output is correct
42 Correct 59 ms 2584 KB Output is correct
43 Correct 53 ms 2388 KB Output is correct
44 Correct 56 ms 2060 KB Output is correct
45 Correct 58 ms 2784 KB Output is correct
46 Correct 56 ms 2400 KB Output is correct
47 Correct 96 ms 3020 KB Output is correct
48 Correct 64 ms 2444 KB Output is correct
49 Correct 100 ms 2132 KB Output is correct
50 Correct 56 ms 1704 KB Output is correct
51 Correct 59 ms 1568 KB Output is correct
52 Correct 54 ms 1700 KB Output is correct
53 Correct 60 ms 2296 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 60 ms 2780 KB Output is correct
56 Correct 67 ms 2972 KB Output is correct
57 Correct 88 ms 5380 KB Output is correct
58 Correct 89 ms 5552 KB Output is correct
59 Correct 73 ms 4376 KB Output is correct
60 Correct 95 ms 6832 KB Output is correct
61 Correct 107 ms 4176 KB Output is correct
62 Correct 85 ms 7504 KB Output is correct
63 Correct 85 ms 11856 KB Output is correct
64 Correct 82 ms 5972 KB Output is correct
65 Correct 83 ms 9040 KB Output is correct
66 Correct 57 ms 1360 KB Output is correct
67 Correct 60 ms 4176 KB Output is correct
68 Correct 81 ms 9500 KB Output is correct
69 Correct 98 ms 8528 KB Output is correct
70 Correct 134 ms 8528 KB Output is correct
71 Correct 118 ms 9296 KB Output is correct
72 Correct 98 ms 7248 KB Output is correct
73 Correct 70 ms 7248 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 51 ms 2768 KB Output is correct
3 Correct 51 ms 3076 KB Output is correct
4 Correct 53 ms 3080 KB Output is correct
5 Correct 50 ms 2864 KB Output is correct
6 Correct 53 ms 2644 KB Output is correct
7 Correct 55 ms 2640 KB Output is correct
8 Correct 52 ms 2796 KB Output is correct
9 Correct 48 ms 2636 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 49 ms 1164 KB Output is correct
12 Correct 71 ms 1108 KB Output is correct
13 Correct 52 ms 1104 KB Output is correct
14 Correct 52 ms 1028 KB Output is correct
15 Correct 52 ms 1104 KB Output is correct
16 Correct 56 ms 1212 KB Output is correct
17 Correct 50 ms 1236 KB Output is correct
18 Correct 49 ms 1172 KB Output is correct
19 Correct 66 ms 1268 KB Output is correct
20 Correct 423 ms 11600 KB Output is correct
21 Correct 1815 ms 46160 KB Output is correct
22 Correct 2202 ms 54792 KB Output is correct
23 Correct 924 ms 25104 KB Output is correct
24 Correct 1053 ms 29984 KB Output is correct
25 Correct 241 ms 6892 KB Output is correct
26 Correct 93 ms 1356 KB Output is correct
27 Correct 1590 ms 40000 KB Output is correct
28 Correct 793 ms 22864 KB Output is correct
29 Correct 760 ms 23380 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 51 ms 2768 KB Output is correct
3 Correct 51 ms 3076 KB Output is correct
4 Correct 53 ms 3080 KB Output is correct
5 Correct 50 ms 2864 KB Output is correct
6 Correct 53 ms 2644 KB Output is correct
7 Correct 55 ms 2640 KB Output is correct
8 Correct 52 ms 2796 KB Output is correct
9 Correct 48 ms 2636 KB Output is correct
10 Correct 0 ms 344 KB Output is correct
11 Correct 48 ms 2644 KB Output is correct
12 Correct 50 ms 2900 KB Output is correct
13 Correct 61 ms 3044 KB Output is correct
14 Correct 50 ms 2996 KB Output is correct
15 Correct 52 ms 2644 KB Output is correct
16 Correct 59 ms 2640 KB Output is correct
17 Correct 51 ms 2812 KB Output is correct
18 Correct 48 ms 2644 KB Output is correct
19 Correct 55 ms 3308 KB Output is correct
20 Correct 59 ms 3064 KB Output is correct
21 Correct 62 ms 3156 KB Output is correct
22 Correct 55 ms 3152 KB Output is correct
23 Correct 54 ms 3152 KB Output is correct
24 Correct 58 ms 3152 KB Output is correct
25 Correct 57 ms 3348 KB Output is correct
26 Correct 56 ms 3164 KB Output is correct
27 Correct 55 ms 3156 KB Output is correct
28 Correct 94 ms 7504 KB Output is correct
29 Correct 92 ms 7112 KB Output is correct
30 Correct 79 ms 7252 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 50 ms 2628 KB Output is correct
34 Correct 51 ms 2640 KB Output is correct
35 Correct 52 ms 2644 KB Output is correct
36 Correct 59 ms 2652 KB Output is correct
37 Correct 68 ms 2792 KB Output is correct
38 Correct 56 ms 2648 KB Output is correct
39 Correct 51 ms 2756 KB Output is correct
40 Correct 56 ms 2792 KB Output is correct
41 Correct 77 ms 2900 KB Output is correct
42 Correct 60 ms 2896 KB Output is correct
43 Correct 62 ms 3340 KB Output is correct
44 Correct 56 ms 3120 KB Output is correct
45 Correct 73 ms 3156 KB Output is correct
46 Correct 56 ms 3152 KB Output is correct
47 Correct 59 ms 2980 KB Output is correct
48 Correct 52 ms 3156 KB Output is correct
49 Correct 52 ms 2908 KB Output is correct
50 Correct 74 ms 3668 KB Output is correct
51 Correct 56 ms 3668 KB Output is correct
52 Correct 83 ms 3636 KB Output is correct
53 Correct 62 ms 3408 KB Output is correct
54 Correct 70 ms 3668 KB Output is correct
55 Correct 88 ms 3516 KB Output is correct
56 Correct 72 ms 3152 KB Output is correct
57 Correct 50 ms 2996 KB Output is correct
58 Correct 57 ms 3232 KB Output is correct
59 Correct 64 ms 3664 KB Output is correct
60 Correct 100 ms 7500 KB Output is correct
61 Correct 78 ms 7096 KB Output is correct
62 Correct 81 ms 7212 KB Output is correct
63 Correct 0 ms 344 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 63 ms 2768 KB Output is correct
66 Correct 52 ms 2896 KB Output is correct
67 Correct 53 ms 2896 KB Output is correct
68 Correct 51 ms 3020 KB Output is correct
69 Correct 54 ms 2616 KB Output is correct
70 Correct 59 ms 2584 KB Output is correct
71 Correct 53 ms 2388 KB Output is correct
72 Correct 56 ms 2060 KB Output is correct
73 Correct 58 ms 2784 KB Output is correct
74 Correct 56 ms 2400 KB Output is correct
75 Correct 96 ms 3020 KB Output is correct
76 Correct 64 ms 2444 KB Output is correct
77 Correct 100 ms 2132 KB Output is correct
78 Correct 56 ms 1704 KB Output is correct
79 Correct 59 ms 1568 KB Output is correct
80 Correct 54 ms 1700 KB Output is correct
81 Correct 60 ms 2296 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 60 ms 2780 KB Output is correct
84 Correct 67 ms 2972 KB Output is correct
85 Correct 88 ms 5380 KB Output is correct
86 Correct 89 ms 5552 KB Output is correct
87 Correct 73 ms 4376 KB Output is correct
88 Correct 95 ms 6832 KB Output is correct
89 Correct 107 ms 4176 KB Output is correct
90 Correct 85 ms 7504 KB Output is correct
91 Correct 85 ms 11856 KB Output is correct
92 Correct 82 ms 5972 KB Output is correct
93 Correct 83 ms 9040 KB Output is correct
94 Correct 57 ms 1360 KB Output is correct
95 Correct 60 ms 4176 KB Output is correct
96 Correct 81 ms 9500 KB Output is correct
97 Correct 98 ms 8528 KB Output is correct
98 Correct 134 ms 8528 KB Output is correct
99 Correct 118 ms 9296 KB Output is correct
100 Correct 98 ms 7248 KB Output is correct
101 Correct 70 ms 7248 KB Output is correct
102 Correct 1 ms 344 KB Output is correct
103 Correct 49 ms 1164 KB Output is correct
104 Correct 71 ms 1108 KB Output is correct
105 Correct 52 ms 1104 KB Output is correct
106 Correct 52 ms 1028 KB Output is correct
107 Correct 52 ms 1104 KB Output is correct
108 Correct 56 ms 1212 KB Output is correct
109 Correct 50 ms 1236 KB Output is correct
110 Correct 49 ms 1172 KB Output is correct
111 Correct 66 ms 1268 KB Output is correct
112 Correct 423 ms 11600 KB Output is correct
113 Correct 1815 ms 46160 KB Output is correct
114 Correct 2202 ms 54792 KB Output is correct
115 Correct 924 ms 25104 KB Output is correct
116 Correct 1053 ms 29984 KB Output is correct
117 Correct 241 ms 6892 KB Output is correct
118 Correct 93 ms 1356 KB Output is correct
119 Correct 1590 ms 40000 KB Output is correct
120 Correct 793 ms 22864 KB Output is correct
121 Correct 760 ms 23380 KB Output is correct
122 Correct 86 ms 12628 KB Output is correct
123 Correct 95 ms 12580 KB Output is correct
124 Correct 83 ms 13256 KB Output is correct
125 Correct 0 ms 344 KB Output is correct
126 Correct 0 ms 348 KB Output is correct
127 Correct 50 ms 3968 KB Output is correct
128 Correct 50 ms 3924 KB Output is correct
129 Correct 54 ms 3924 KB Output is correct
130 Correct 51 ms 4068 KB Output is correct
131 Correct 53 ms 3920 KB Output is correct
132 Correct 58 ms 4180 KB Output is correct
133 Correct 53 ms 3920 KB Output is correct
134 Correct 50 ms 3924 KB Output is correct
135 Correct 57 ms 4692 KB Output is correct
136 Correct 57 ms 4436 KB Output is correct
137 Correct 82 ms 4804 KB Output is correct
138 Correct 55 ms 4748 KB Output is correct
139 Correct 56 ms 4628 KB Output is correct
140 Correct 57 ms 4356 KB Output is correct
141 Correct 60 ms 4712 KB Output is correct
142 Correct 54 ms 4692 KB Output is correct
143 Correct 53 ms 4660 KB Output is correct
144 Correct 0 ms 348 KB Output is correct
145 Correct 50 ms 4948 KB Output is correct
146 Correct 56 ms 4688 KB Output is correct
147 Correct 100 ms 5476 KB Output is correct
148 Correct 59 ms 5588 KB Output is correct
149 Correct 75 ms 5468 KB Output is correct
150 Correct 92 ms 13104 KB Output is correct
151 Correct 108 ms 13156 KB Output is correct
152 Correct 121 ms 13388 KB Output is correct
153 Correct 87 ms 13140 KB Output is correct
154 Correct 126 ms 12788 KB Output is correct
155 Correct 84 ms 13396 KB Output is correct
156 Correct 62 ms 5460 KB Output is correct
157 Correct 59 ms 5460 KB Output is correct
158 Correct 83 ms 13648 KB Output is correct
159 Correct 96 ms 12884 KB Output is correct
160 Correct 132 ms 10032 KB Output is correct
161 Correct 121 ms 10068 KB Output is correct
162 Correct 93 ms 12708 KB Output is correct
163 Correct 76 ms 8396 KB Output is correct
164 Correct 76 ms 5456 KB Output is correct
165 Correct 68 ms 5972 KB Output is correct
166 Correct 77 ms 5712 KB Output is correct
167 Correct 72 ms 4708 KB Output is correct
168 Correct 81 ms 5716 KB Output is correct
169 Correct 73 ms 5968 KB Output is correct
170 Correct 379 ms 17168 KB Output is correct
171 Correct 1839 ms 51556 KB Output is correct
172 Correct 2230 ms 60692 KB Output is correct
173 Correct 883 ms 33104 KB Output is correct
174 Correct 1150 ms 37968 KB Output is correct
175 Correct 242 ms 14876 KB Output is correct
176 Correct 93 ms 9040 KB Output is correct
177 Correct 1659 ms 47188 KB Output is correct
178 Correct 844 ms 30368 KB Output is correct
179 Correct 788 ms 30616 KB Output is correct
180 Correct 91 ms 13392 KB Output is correct
181 Correct 109 ms 14416 KB Output is correct
182 Correct 214 ms 18512 KB Output is correct
183 Correct 166 ms 16680 KB Output is correct
184 Correct 156 ms 15520 KB Output is correct
185 Correct 382 ms 19524 KB Output is correct
186 Correct 1356 ms 45908 KB Output is correct
187 Correct 2231 ms 69916 KB Output is correct
188 Correct 1709 ms 58440 KB Output is correct
189 Correct 866 ms 39260 KB Output is correct
190 Correct 1150 ms 48292 KB Output is correct
191 Correct 1196 ms 47456 KB Output is correct