#include "bits/stdc++.h"
using namespace std;
// #pragma GCC optimize("O3,unroll-loops")
// #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
/*
find my code templates at https://github.com/galencolin/cp-templates
also maybe subscribe please thanks
*/
#define send {ios_base::sync_with_stdio(false);}
#define help {cin.tie(NULL);}
#define f first
#define s second
#define getunique(v) {sort(v.begin(), v.end()); v.erase(unique(v.begin(), v.end()), v.end());}
using ll = long long;
// using ll = int;
// #pragma warning("int")
//
using vl = vector<ll>;
using pl = pair<ll, ll>;
typedef long double ld;
typedef unsigned long long ull;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename num_t>
using ordered_set = tree<num_t, null_type, less<num_t>, rb_tree_tag, tree_order_statistics_node_update>;
// benq - print any container + pair
template<typename T, typename = void> struct is_iterable : false_type {};
template<typename T> struct is_iterable<T, void_t<decltype(begin(declval<T>())),decltype(end(declval<T>()))>> : true_type {};
template<typename T> typename enable_if<is_iterable<T>::value&&!is_same<T, string>::value,ostream&>::type operator<<(ostream &cout, T const &v);
template<typename A, typename B> ostream& operator<<(ostream &cout, pair<A, B> const &p) { return cout << "(" << p.f << ", " << p.s << ")"; }
template<typename T> typename enable_if<is_iterable<T>::value&&!is_same<T, string>::value,ostream&>::type operator<<(ostream &cout, T const &v) {
cout << "[";
for (auto it = v.begin(); it != v.end();) {
cout << *it;
if (++it != v.end()) cout << ", ";
}
return cout << "]";
}
template<typename A, typename B> istream& operator>>(istream& cin, pair<A, B> &p) {
cin >> p.first;
return cin >> p.second;
}
template<typename T> void debug(string s, T x) {cerr << "\033[1;34m" << s << "\033[0;32m = \033[35m" << x << "\033[0m\n";}
template<typename T, typename... Args> void debug(string s, T x, Args... args) {for (int i=0, b=0; i<(int)s.size(); i++) if (s[i] == '(' || s[i] == '{') b++; else
if (s[i] == ')' || s[i] == '}') b--; else if (s[i] == ',' && b == 0) {cerr << "\033[1;34m" << s.substr(0, i) << "\033[0;32m = \033[35m" << x << "\033[31m | "; debug(s.substr(s.find_first_not_of(' ', i + 1)), args...); break;}}
template<typename T> void debug_nameless(T x) {cerr << "\033[35m" << x << "\033[0m\n";}
template<typename T, typename... Args> void debug_nameless(T x, Args... args) {cerr << "\033[35m" << x << "\033[31m | "; debug_nameless(args...);}
#ifdef galen_colin_local
#define pr(...) debug(#__VA_ARGS__, __VA_ARGS__)
#define prs(...) debug_nameless(__VA_ARGS__)
const bool local_ = true;
#else
#define pr(...) 135
#define prs(...) 135
const bool local_ = false;
#endif
mt19937_64 rng(std::chrono::steady_clock::now().time_since_epoch().count());
// mt19937_64 rng(61378913);
/* usage - just do rng() */
void usaco(string filename) {
// #pragma message("be careful, freopen may be wrong")
freopen((filename + ".in").c_str(), "r", stdin);
freopen((filename + ".out").c_str(), "w", stdout);
}
// #include <atcoder/all>
// using namespace atcoder;
const ld pi = 3.14159265358979323846;
// const ll mod = 1000000007;
// const ll mod = 998244353;
// ll mod;
ll n, m, q, k, l, r, x, y, z;
const ll template_array_size = 1e6 + 206171;
ll a[template_array_size];
ll b[template_array_size];
ll c[template_array_size];
string s, t;
ll ct[605];
ll& gc(ll v) {
return ct[v + n];
}
ll take[605];
ll& gt(ll v) {
return take[v + n];
}
ll dp[200005];
ll ndp[200005];
const bool run = local_ ? 0 : 1;
void solve(int tc = 0) {
cin >> n >> k;
for (ll i = -n; i <= n; i++) cin >> gc(i);
ll t = 0, s = 0;
for (ll i = -n; i <= n; i++) {
t += gc(i);
s += i * gc(i);
}
s -= k;
ll r = 0;
for (ll i = -n; i < 0; i++) {
if (s < 0) {
ll v = abs(s) / abs(i);
v = min(v, gc(i));
s -= i * v;
gc(i) -= v;
gt(i) += v;
r += v;
}
}
for (ll i = n; i > 0; i--) {
if (s > 0) {
ll v = abs(s) / abs(i);
v = min(v, gc(i));
s -= i * v;
gc(i) -= v;
gt(i) += v;
r += v;
}
}
if (abs(s) > n) {
cout << "impossible\n";
return;
}
for (ll i = -n; i < 0; i++) swap(gt(i), gt(-i));
pr(s);
ll L = n * n;
memset(dp, 1, sizeof dp);
dp[L] = 0;
if (local_) {
for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
}
for (ll i = n; i > 0; i--) {
ll t = abs(i);
{
for (ll r = 0; r < t; r++) {
deque<pl> dq;
for (ll j = r; j <= 2 * L; j += t) {
ll kill = j - gc(i) * t;
if (dq.size() && dq.front().f < kill) dq.pop_front();
ll v = dp[j] - j / t;
while (dq.size() && dq.back().s >= v) dq.pop_back();
dq.push_back({j, v});
v = j / t;
ndp[j] = v + dq.front().s;
}
}
memcpy(dp, ndp, sizeof dp);
}
if (local_) {
pr(i, gc(i));
for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
}
{
for (ll r = 0; r < t; r++) {
deque<pl> dq;
for (ll j = r; j <= 2 * L; j += t) {
ll kill = j - gt(i) * t;
if (dq.size() && dq.front().f < kill) dq.pop_front();
ll v = dp[j] + j / t;
while (dq.size() && dq.back().s >= v) dq.pop_back();
dq.push_back({j, v});
v = -(j / t);
ndp[j] = v + dq.front().s;
}
}
memcpy(dp, ndp, sizeof dp);
}
if (local_) {
pr(i, gt(i));
for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
}
}
pr(5);
for (ll i = -n; i < 0; i++) {
ll t = abs(i);
{
for (ll r = 0; r < t; r++) {
deque<pl> dq;
for (ll j = 2 * L - r; j >= 0; j -= t) {
ll kill = j + gc(i) * t;
if (dq.size() && dq.front().f > kill) dq.pop_front();
ll v = dp[j] + j / t;
while (dq.size() && dq.back().s >= v) dq.pop_back();
dq.push_back({j, v});
v = -(j / t);
ndp[j] = v + dq.front().s;
}
}
memcpy(dp, ndp, sizeof dp);
}
if (local_) {
pr(i, gc(i));
for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
}
{
for (ll r = 0; r < t; r++) {
deque<pl> dq;
for (ll j = 2 * L - r; j >= 0; j -= t) {
ll kill = j + gt(i) * t;
if (dq.size() && dq.front().f > kill) dq.pop_front();
ll v = dp[j] - j / t;
while (dq.size() && dq.back().s >= v) dq.pop_back();
dq.push_back({j, v});
v = j / t;
ndp[j] = v + dq.front().s;
}
}
memcpy(dp, ndp, sizeof dp);
}
if (local_) {
pr(i, gt(i));
for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
}
}
pr(s, r);
r += dp[s + L];
pr(r);
if (r > 1e16) {
cout << "impossible\n";
return;
}
r = t - r;
cout << r << '\n';
}
int main() {
#ifdef galen_colin_local
auto begin = std::chrono::high_resolution_clock::now();
#endif
send help
#ifndef galen_colin_local
// usaco("evacuation");
#endif
// usaco("cowland");
// freopen("tc.cpp", "r", stdin);
// freopen("tc.cpp", "w", stdout);
// freopen("tc2.cpp", "w", stdout);
// freopen("in.txt", "r", stdin);
// freopen("out.txt", "w", stdout);
cout << setprecision(15) << fixed;
cerr << setprecision(4) << fixed;
int tc = 1;
// if (local_)
// if (!run)
// cin >> tc;
for (int t = 0; t < tc; t++) {
pr(t); prs(string(50, '-'));
solve(t);
prs(string(50, '-') + "\n");
}
#ifdef galen_colin_local
auto end = std::chrono::high_resolution_clock::now();
cerr << setprecision(4) << fixed;
cerr << "Execution time: " << std::chrono::duration_cast<std::chrono::duration<double>>(end - begin).count() << " seconds" << endl;
#endif
}
Compilation message
vault.cpp: In function 'void solve(int)':
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:151:5: note: in expansion of macro 'pr'
151 | pr(s);
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:159:38: note: in expansion of macro 'pr'
159 | for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:182:13: note: in expansion of macro 'pr'
182 | pr(i, gc(i));
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:183:42: note: in expansion of macro 'pr'
183 | for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:204:13: note: in expansion of macro 'pr'
204 | pr(i, gt(i));
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:205:42: note: in expansion of macro 'pr'
205 | for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:209:5: note: in expansion of macro 'pr'
209 | pr(5);
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:231:13: note: in expansion of macro 'pr'
231 | pr(i, gc(i));
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:232:42: note: in expansion of macro 'pr'
232 | for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:253:13: note: in expansion of macro 'pr'
253 | pr(i, gt(i));
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:254:42: note: in expansion of macro 'pr'
254 | for (ll j = -L; j <= L; j++) pr(j, dp[j + L]);
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:258:5: note: in expansion of macro 'pr'
258 | pr(s, r);
| ^~
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:261:5: note: in expansion of macro 'pr'
261 | pr(r);
| ^~
vault.cpp: In function 'int main()':
vault.cpp:66:17: warning: statement has no effect [-Wunused-value]
66 | #define pr(...) 135
| ^~~
vault.cpp:300:9: note: in expansion of macro 'pr'
300 | pr(t); prs(string(50, '-'));
| ^~
vault.cpp:67:18: warning: statement has no effect [-Wunused-value]
67 | #define prs(...) 135
| ^~~
vault.cpp:300:16: note: in expansion of macro 'prs'
300 | pr(t); prs(string(50, '-'));
| ^~~
vault.cpp:67:18: warning: statement has no effect [-Wunused-value]
67 | #define prs(...) 135
| ^~~
vault.cpp:302:9: note: in expansion of macro 'prs'
302 | prs(string(50, '-') + "\n");
| ^~~
vault.cpp: In function 'void usaco(std::string)':
vault.cpp:77:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
77 | freopen((filename + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vault.cpp:78:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
78 | freopen((filename + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4444 KB |
Output is correct |
3 |
Correct |
1 ms |
4440 KB |
Output is correct |
4 |
Correct |
4 ms |
4560 KB |
Output is correct |
5 |
Correct |
1 ms |
2396 KB |
Output is correct |
6 |
Correct |
22 ms |
4444 KB |
Output is correct |
7 |
Correct |
22 ms |
4608 KB |
Output is correct |
8 |
Correct |
23 ms |
4600 KB |
Output is correct |
9 |
Correct |
22 ms |
4444 KB |
Output is correct |
10 |
Correct |
22 ms |
4444 KB |
Output is correct |
11 |
Correct |
21 ms |
4608 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4444 KB |
Output is correct |
3 |
Correct |
1 ms |
4440 KB |
Output is correct |
4 |
Correct |
4 ms |
4560 KB |
Output is correct |
5 |
Correct |
1 ms |
2396 KB |
Output is correct |
6 |
Correct |
22 ms |
4444 KB |
Output is correct |
7 |
Correct |
22 ms |
4608 KB |
Output is correct |
8 |
Correct |
23 ms |
4600 KB |
Output is correct |
9 |
Correct |
22 ms |
4444 KB |
Output is correct |
10 |
Correct |
22 ms |
4444 KB |
Output is correct |
11 |
Correct |
21 ms |
4608 KB |
Output is correct |
12 |
Correct |
2 ms |
4440 KB |
Output is correct |
13 |
Correct |
1 ms |
4444 KB |
Output is correct |
14 |
Correct |
1 ms |
4444 KB |
Output is correct |
15 |
Correct |
3 ms |
4444 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
24 ms |
4608 KB |
Output is correct |
18 |
Correct |
22 ms |
4444 KB |
Output is correct |
19 |
Correct |
22 ms |
4456 KB |
Output is correct |
20 |
Correct |
21 ms |
4444 KB |
Output is correct |
21 |
Correct |
22 ms |
4504 KB |
Output is correct |
22 |
Correct |
22 ms |
4440 KB |
Output is correct |
23 |
Correct |
0 ms |
2396 KB |
Output is correct |
24 |
Correct |
117 ms |
4704 KB |
Output is correct |
25 |
Correct |
114 ms |
4704 KB |
Output is correct |
26 |
Correct |
117 ms |
4956 KB |
Output is correct |
27 |
Correct |
117 ms |
4952 KB |
Output is correct |
28 |
Correct |
115 ms |
4708 KB |
Output is correct |
29 |
Correct |
114 ms |
4696 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
4444 KB |
Output is correct |
2 |
Correct |
8 ms |
4444 KB |
Output is correct |
3 |
Correct |
8 ms |
4584 KB |
Output is correct |
4 |
Correct |
8 ms |
4444 KB |
Output is correct |
5 |
Correct |
8 ms |
4444 KB |
Output is correct |
6 |
Correct |
8 ms |
4444 KB |
Output is correct |
7 |
Correct |
9 ms |
4580 KB |
Output is correct |
8 |
Correct |
8 ms |
4444 KB |
Output is correct |
9 |
Correct |
8 ms |
4444 KB |
Output is correct |
10 |
Correct |
8 ms |
4444 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
4444 KB |
Output is correct |
2 |
Correct |
8 ms |
4444 KB |
Output is correct |
3 |
Correct |
8 ms |
4584 KB |
Output is correct |
4 |
Correct |
8 ms |
4444 KB |
Output is correct |
5 |
Correct |
8 ms |
4444 KB |
Output is correct |
6 |
Correct |
8 ms |
4444 KB |
Output is correct |
7 |
Correct |
9 ms |
4580 KB |
Output is correct |
8 |
Correct |
8 ms |
4444 KB |
Output is correct |
9 |
Correct |
8 ms |
4444 KB |
Output is correct |
10 |
Correct |
8 ms |
4444 KB |
Output is correct |
11 |
Correct |
1 ms |
4444 KB |
Output is correct |
12 |
Correct |
1 ms |
4444 KB |
Output is correct |
13 |
Correct |
1 ms |
4444 KB |
Output is correct |
14 |
Correct |
3 ms |
4444 KB |
Output is correct |
15 |
Correct |
8 ms |
4440 KB |
Output is correct |
16 |
Correct |
10 ms |
4576 KB |
Output is correct |
17 |
Correct |
8 ms |
4444 KB |
Output is correct |
18 |
Correct |
8 ms |
4444 KB |
Output is correct |
19 |
Correct |
8 ms |
4580 KB |
Output is correct |
20 |
Correct |
9 ms |
4444 KB |
Output is correct |
21 |
Correct |
8 ms |
4444 KB |
Output is correct |
22 |
Correct |
8 ms |
4444 KB |
Output is correct |
23 |
Correct |
8 ms |
4444 KB |
Output is correct |
24 |
Correct |
8 ms |
4444 KB |
Output is correct |
25 |
Correct |
9 ms |
4444 KB |
Output is correct |
26 |
Correct |
8 ms |
4444 KB |
Output is correct |
27 |
Correct |
8 ms |
4444 KB |
Output is correct |
28 |
Correct |
8 ms |
4444 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
4444 KB |
Output is correct |
2 |
Correct |
8 ms |
4444 KB |
Output is correct |
3 |
Correct |
8 ms |
4584 KB |
Output is correct |
4 |
Correct |
8 ms |
4444 KB |
Output is correct |
5 |
Correct |
8 ms |
4444 KB |
Output is correct |
6 |
Correct |
8 ms |
4444 KB |
Output is correct |
7 |
Correct |
9 ms |
4580 KB |
Output is correct |
8 |
Correct |
8 ms |
4444 KB |
Output is correct |
9 |
Correct |
8 ms |
4444 KB |
Output is correct |
10 |
Correct |
8 ms |
4444 KB |
Output is correct |
11 |
Correct |
3 ms |
4444 KB |
Output is correct |
12 |
Correct |
10 ms |
4692 KB |
Output is correct |
13 |
Correct |
9 ms |
4444 KB |
Output is correct |
14 |
Correct |
9 ms |
4444 KB |
Output is correct |
15 |
Correct |
8 ms |
4456 KB |
Output is correct |
16 |
Correct |
9 ms |
4444 KB |
Output is correct |
17 |
Correct |
8 ms |
4444 KB |
Output is correct |
18 |
Correct |
8 ms |
4440 KB |
Output is correct |
19 |
Correct |
9 ms |
4444 KB |
Output is correct |
20 |
Correct |
8 ms |
4444 KB |
Output is correct |
21 |
Correct |
22 ms |
4444 KB |
Output is correct |
22 |
Correct |
22 ms |
4444 KB |
Output is correct |
23 |
Correct |
21 ms |
4604 KB |
Output is correct |
24 |
Correct |
22 ms |
4444 KB |
Output is correct |
25 |
Correct |
21 ms |
4444 KB |
Output is correct |
26 |
Correct |
22 ms |
4444 KB |
Output is correct |
27 |
Correct |
22 ms |
4444 KB |
Output is correct |
28 |
Correct |
22 ms |
4444 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4444 KB |
Output is correct |
3 |
Correct |
1 ms |
4440 KB |
Output is correct |
4 |
Correct |
4 ms |
4560 KB |
Output is correct |
5 |
Correct |
1 ms |
2396 KB |
Output is correct |
6 |
Correct |
22 ms |
4444 KB |
Output is correct |
7 |
Correct |
22 ms |
4608 KB |
Output is correct |
8 |
Correct |
23 ms |
4600 KB |
Output is correct |
9 |
Correct |
22 ms |
4444 KB |
Output is correct |
10 |
Correct |
22 ms |
4444 KB |
Output is correct |
11 |
Correct |
21 ms |
4608 KB |
Output is correct |
12 |
Correct |
3 ms |
4444 KB |
Output is correct |
13 |
Correct |
8 ms |
4444 KB |
Output is correct |
14 |
Correct |
8 ms |
4584 KB |
Output is correct |
15 |
Correct |
8 ms |
4444 KB |
Output is correct |
16 |
Correct |
8 ms |
4444 KB |
Output is correct |
17 |
Correct |
8 ms |
4444 KB |
Output is correct |
18 |
Correct |
9 ms |
4580 KB |
Output is correct |
19 |
Correct |
8 ms |
4444 KB |
Output is correct |
20 |
Correct |
8 ms |
4444 KB |
Output is correct |
21 |
Correct |
8 ms |
4444 KB |
Output is correct |
22 |
Correct |
1 ms |
4444 KB |
Output is correct |
23 |
Correct |
1 ms |
4444 KB |
Output is correct |
24 |
Correct |
1 ms |
4444 KB |
Output is correct |
25 |
Correct |
3 ms |
4444 KB |
Output is correct |
26 |
Correct |
8 ms |
4440 KB |
Output is correct |
27 |
Correct |
10 ms |
4576 KB |
Output is correct |
28 |
Correct |
8 ms |
4444 KB |
Output is correct |
29 |
Correct |
8 ms |
4444 KB |
Output is correct |
30 |
Correct |
8 ms |
4580 KB |
Output is correct |
31 |
Correct |
9 ms |
4444 KB |
Output is correct |
32 |
Correct |
8 ms |
4444 KB |
Output is correct |
33 |
Correct |
8 ms |
4444 KB |
Output is correct |
34 |
Correct |
8 ms |
4444 KB |
Output is correct |
35 |
Correct |
8 ms |
4444 KB |
Output is correct |
36 |
Correct |
9 ms |
4444 KB |
Output is correct |
37 |
Correct |
8 ms |
4444 KB |
Output is correct |
38 |
Correct |
8 ms |
4444 KB |
Output is correct |
39 |
Correct |
8 ms |
4444 KB |
Output is correct |
40 |
Correct |
3 ms |
4444 KB |
Output is correct |
41 |
Correct |
10 ms |
4692 KB |
Output is correct |
42 |
Correct |
9 ms |
4444 KB |
Output is correct |
43 |
Correct |
9 ms |
4444 KB |
Output is correct |
44 |
Correct |
8 ms |
4456 KB |
Output is correct |
45 |
Correct |
9 ms |
4444 KB |
Output is correct |
46 |
Correct |
8 ms |
4444 KB |
Output is correct |
47 |
Correct |
8 ms |
4440 KB |
Output is correct |
48 |
Correct |
9 ms |
4444 KB |
Output is correct |
49 |
Correct |
8 ms |
4444 KB |
Output is correct |
50 |
Correct |
22 ms |
4444 KB |
Output is correct |
51 |
Correct |
22 ms |
4444 KB |
Output is correct |
52 |
Correct |
21 ms |
4604 KB |
Output is correct |
53 |
Correct |
22 ms |
4444 KB |
Output is correct |
54 |
Correct |
21 ms |
4444 KB |
Output is correct |
55 |
Correct |
22 ms |
4444 KB |
Output is correct |
56 |
Correct |
22 ms |
4444 KB |
Output is correct |
57 |
Correct |
22 ms |
4444 KB |
Output is correct |
58 |
Correct |
1 ms |
4444 KB |
Output is correct |
59 |
Correct |
1 ms |
4444 KB |
Output is correct |
60 |
Correct |
1 ms |
4444 KB |
Output is correct |
61 |
Correct |
3 ms |
4444 KB |
Output is correct |
62 |
Correct |
1 ms |
2396 KB |
Output is correct |
63 |
Correct |
22 ms |
4604 KB |
Output is correct |
64 |
Correct |
22 ms |
4444 KB |
Output is correct |
65 |
Correct |
22 ms |
4444 KB |
Output is correct |
66 |
Correct |
21 ms |
4444 KB |
Output is correct |
67 |
Correct |
22 ms |
4440 KB |
Output is correct |
68 |
Correct |
22 ms |
4444 KB |
Output is correct |
69 |
Correct |
9 ms |
4444 KB |
Output is correct |
70 |
Correct |
8 ms |
4444 KB |
Output is correct |
71 |
Correct |
8 ms |
4444 KB |
Output is correct |
72 |
Correct |
8 ms |
4444 KB |
Output is correct |
73 |
Correct |
9 ms |
4584 KB |
Output is correct |
74 |
Correct |
8 ms |
4444 KB |
Output is correct |
75 |
Correct |
9 ms |
4580 KB |
Output is correct |
76 |
Correct |
8 ms |
4444 KB |
Output is correct |
77 |
Correct |
8 ms |
4440 KB |
Output is correct |
78 |
Correct |
9 ms |
4576 KB |
Output is correct |
79 |
Correct |
8 ms |
4444 KB |
Output is correct |
80 |
Correct |
8 ms |
4444 KB |
Output is correct |
81 |
Correct |
8 ms |
4584 KB |
Output is correct |
82 |
Correct |
9 ms |
4580 KB |
Output is correct |
83 |
Correct |
22 ms |
4608 KB |
Output is correct |
84 |
Correct |
22 ms |
4444 KB |
Output is correct |
85 |
Correct |
22 ms |
4608 KB |
Output is correct |
86 |
Correct |
22 ms |
4440 KB |
Output is correct |
87 |
Correct |
21 ms |
4440 KB |
Output is correct |
88 |
Correct |
22 ms |
4440 KB |
Output is correct |
89 |
Correct |
21 ms |
4444 KB |
Output is correct |
90 |
Correct |
23 ms |
4444 KB |
Output is correct |
91 |
Correct |
22 ms |
4444 KB |
Output is correct |
92 |
Correct |
22 ms |
4604 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
4444 KB |
Output is correct |
2 |
Correct |
8 ms |
4444 KB |
Output is correct |
3 |
Correct |
8 ms |
4584 KB |
Output is correct |
4 |
Correct |
8 ms |
4444 KB |
Output is correct |
5 |
Correct |
8 ms |
4444 KB |
Output is correct |
6 |
Correct |
8 ms |
4444 KB |
Output is correct |
7 |
Correct |
9 ms |
4580 KB |
Output is correct |
8 |
Correct |
8 ms |
4444 KB |
Output is correct |
9 |
Correct |
8 ms |
4444 KB |
Output is correct |
10 |
Correct |
8 ms |
4444 KB |
Output is correct |
11 |
Correct |
3 ms |
4444 KB |
Output is correct |
12 |
Correct |
10 ms |
4692 KB |
Output is correct |
13 |
Correct |
9 ms |
4444 KB |
Output is correct |
14 |
Correct |
9 ms |
4444 KB |
Output is correct |
15 |
Correct |
8 ms |
4456 KB |
Output is correct |
16 |
Correct |
9 ms |
4444 KB |
Output is correct |
17 |
Correct |
8 ms |
4444 KB |
Output is correct |
18 |
Correct |
8 ms |
4440 KB |
Output is correct |
19 |
Correct |
9 ms |
4444 KB |
Output is correct |
20 |
Correct |
8 ms |
4444 KB |
Output is correct |
21 |
Correct |
22 ms |
4444 KB |
Output is correct |
22 |
Correct |
22 ms |
4444 KB |
Output is correct |
23 |
Correct |
21 ms |
4604 KB |
Output is correct |
24 |
Correct |
22 ms |
4444 KB |
Output is correct |
25 |
Correct |
21 ms |
4444 KB |
Output is correct |
26 |
Correct |
22 ms |
4444 KB |
Output is correct |
27 |
Correct |
22 ms |
4444 KB |
Output is correct |
28 |
Correct |
22 ms |
4444 KB |
Output is correct |
29 |
Correct |
3 ms |
4444 KB |
Output is correct |
30 |
Correct |
8 ms |
4444 KB |
Output is correct |
31 |
Correct |
8 ms |
4440 KB |
Output is correct |
32 |
Correct |
9 ms |
4444 KB |
Output is correct |
33 |
Correct |
8 ms |
4444 KB |
Output is correct |
34 |
Correct |
9 ms |
4444 KB |
Output is correct |
35 |
Correct |
8 ms |
4584 KB |
Output is correct |
36 |
Correct |
9 ms |
4440 KB |
Output is correct |
37 |
Correct |
9 ms |
4444 KB |
Output is correct |
38 |
Correct |
8 ms |
4584 KB |
Output is correct |
39 |
Correct |
22 ms |
4612 KB |
Output is correct |
40 |
Correct |
21 ms |
4604 KB |
Output is correct |
41 |
Correct |
24 ms |
4444 KB |
Output is correct |
42 |
Correct |
22 ms |
4444 KB |
Output is correct |
43 |
Correct |
21 ms |
4604 KB |
Output is correct |
44 |
Correct |
22 ms |
4444 KB |
Output is correct |
45 |
Correct |
21 ms |
4444 KB |
Output is correct |
46 |
Correct |
22 ms |
4444 KB |
Output is correct |
47 |
Correct |
121 ms |
4700 KB |
Output is correct |
48 |
Correct |
114 ms |
4696 KB |
Output is correct |
49 |
Correct |
123 ms |
4716 KB |
Output is correct |
50 |
Correct |
114 ms |
4700 KB |
Output is correct |
51 |
Correct |
114 ms |
4696 KB |
Output is correct |
52 |
Correct |
115 ms |
4704 KB |
Output is correct |
53 |
Correct |
119 ms |
4948 KB |
Output is correct |
54 |
Correct |
114 ms |
4708 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4444 KB |
Output is correct |
3 |
Correct |
1 ms |
4440 KB |
Output is correct |
4 |
Correct |
4 ms |
4560 KB |
Output is correct |
5 |
Correct |
1 ms |
2396 KB |
Output is correct |
6 |
Correct |
22 ms |
4444 KB |
Output is correct |
7 |
Correct |
22 ms |
4608 KB |
Output is correct |
8 |
Correct |
23 ms |
4600 KB |
Output is correct |
9 |
Correct |
22 ms |
4444 KB |
Output is correct |
10 |
Correct |
22 ms |
4444 KB |
Output is correct |
11 |
Correct |
21 ms |
4608 KB |
Output is correct |
12 |
Correct |
2 ms |
4440 KB |
Output is correct |
13 |
Correct |
1 ms |
4444 KB |
Output is correct |
14 |
Correct |
1 ms |
4444 KB |
Output is correct |
15 |
Correct |
3 ms |
4444 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
24 ms |
4608 KB |
Output is correct |
18 |
Correct |
22 ms |
4444 KB |
Output is correct |
19 |
Correct |
22 ms |
4456 KB |
Output is correct |
20 |
Correct |
21 ms |
4444 KB |
Output is correct |
21 |
Correct |
22 ms |
4504 KB |
Output is correct |
22 |
Correct |
22 ms |
4440 KB |
Output is correct |
23 |
Correct |
0 ms |
2396 KB |
Output is correct |
24 |
Correct |
117 ms |
4704 KB |
Output is correct |
25 |
Correct |
114 ms |
4704 KB |
Output is correct |
26 |
Correct |
117 ms |
4956 KB |
Output is correct |
27 |
Correct |
117 ms |
4952 KB |
Output is correct |
28 |
Correct |
115 ms |
4708 KB |
Output is correct |
29 |
Correct |
114 ms |
4696 KB |
Output is correct |
30 |
Correct |
3 ms |
4444 KB |
Output is correct |
31 |
Correct |
8 ms |
4444 KB |
Output is correct |
32 |
Correct |
8 ms |
4584 KB |
Output is correct |
33 |
Correct |
8 ms |
4444 KB |
Output is correct |
34 |
Correct |
8 ms |
4444 KB |
Output is correct |
35 |
Correct |
8 ms |
4444 KB |
Output is correct |
36 |
Correct |
9 ms |
4580 KB |
Output is correct |
37 |
Correct |
8 ms |
4444 KB |
Output is correct |
38 |
Correct |
8 ms |
4444 KB |
Output is correct |
39 |
Correct |
8 ms |
4444 KB |
Output is correct |
40 |
Correct |
1 ms |
4444 KB |
Output is correct |
41 |
Correct |
1 ms |
4444 KB |
Output is correct |
42 |
Correct |
1 ms |
4444 KB |
Output is correct |
43 |
Correct |
3 ms |
4444 KB |
Output is correct |
44 |
Correct |
8 ms |
4440 KB |
Output is correct |
45 |
Correct |
10 ms |
4576 KB |
Output is correct |
46 |
Correct |
8 ms |
4444 KB |
Output is correct |
47 |
Correct |
8 ms |
4444 KB |
Output is correct |
48 |
Correct |
8 ms |
4580 KB |
Output is correct |
49 |
Correct |
9 ms |
4444 KB |
Output is correct |
50 |
Correct |
8 ms |
4444 KB |
Output is correct |
51 |
Correct |
8 ms |
4444 KB |
Output is correct |
52 |
Correct |
8 ms |
4444 KB |
Output is correct |
53 |
Correct |
8 ms |
4444 KB |
Output is correct |
54 |
Correct |
9 ms |
4444 KB |
Output is correct |
55 |
Correct |
8 ms |
4444 KB |
Output is correct |
56 |
Correct |
8 ms |
4444 KB |
Output is correct |
57 |
Correct |
8 ms |
4444 KB |
Output is correct |
58 |
Correct |
3 ms |
4444 KB |
Output is correct |
59 |
Correct |
10 ms |
4692 KB |
Output is correct |
60 |
Correct |
9 ms |
4444 KB |
Output is correct |
61 |
Correct |
9 ms |
4444 KB |
Output is correct |
62 |
Correct |
8 ms |
4456 KB |
Output is correct |
63 |
Correct |
9 ms |
4444 KB |
Output is correct |
64 |
Correct |
8 ms |
4444 KB |
Output is correct |
65 |
Correct |
8 ms |
4440 KB |
Output is correct |
66 |
Correct |
9 ms |
4444 KB |
Output is correct |
67 |
Correct |
8 ms |
4444 KB |
Output is correct |
68 |
Correct |
22 ms |
4444 KB |
Output is correct |
69 |
Correct |
22 ms |
4444 KB |
Output is correct |
70 |
Correct |
21 ms |
4604 KB |
Output is correct |
71 |
Correct |
22 ms |
4444 KB |
Output is correct |
72 |
Correct |
21 ms |
4444 KB |
Output is correct |
73 |
Correct |
22 ms |
4444 KB |
Output is correct |
74 |
Correct |
22 ms |
4444 KB |
Output is correct |
75 |
Correct |
22 ms |
4444 KB |
Output is correct |
76 |
Correct |
1 ms |
4444 KB |
Output is correct |
77 |
Correct |
1 ms |
4444 KB |
Output is correct |
78 |
Correct |
1 ms |
4444 KB |
Output is correct |
79 |
Correct |
3 ms |
4444 KB |
Output is correct |
80 |
Correct |
1 ms |
2396 KB |
Output is correct |
81 |
Correct |
22 ms |
4604 KB |
Output is correct |
82 |
Correct |
22 ms |
4444 KB |
Output is correct |
83 |
Correct |
22 ms |
4444 KB |
Output is correct |
84 |
Correct |
21 ms |
4444 KB |
Output is correct |
85 |
Correct |
22 ms |
4440 KB |
Output is correct |
86 |
Correct |
22 ms |
4444 KB |
Output is correct |
87 |
Correct |
9 ms |
4444 KB |
Output is correct |
88 |
Correct |
8 ms |
4444 KB |
Output is correct |
89 |
Correct |
8 ms |
4444 KB |
Output is correct |
90 |
Correct |
8 ms |
4444 KB |
Output is correct |
91 |
Correct |
9 ms |
4584 KB |
Output is correct |
92 |
Correct |
8 ms |
4444 KB |
Output is correct |
93 |
Correct |
9 ms |
4580 KB |
Output is correct |
94 |
Correct |
8 ms |
4444 KB |
Output is correct |
95 |
Correct |
8 ms |
4440 KB |
Output is correct |
96 |
Correct |
9 ms |
4576 KB |
Output is correct |
97 |
Correct |
8 ms |
4444 KB |
Output is correct |
98 |
Correct |
8 ms |
4444 KB |
Output is correct |
99 |
Correct |
8 ms |
4584 KB |
Output is correct |
100 |
Correct |
9 ms |
4580 KB |
Output is correct |
101 |
Correct |
22 ms |
4608 KB |
Output is correct |
102 |
Correct |
22 ms |
4444 KB |
Output is correct |
103 |
Correct |
22 ms |
4608 KB |
Output is correct |
104 |
Correct |
22 ms |
4440 KB |
Output is correct |
105 |
Correct |
21 ms |
4440 KB |
Output is correct |
106 |
Correct |
22 ms |
4440 KB |
Output is correct |
107 |
Correct |
21 ms |
4444 KB |
Output is correct |
108 |
Correct |
23 ms |
4444 KB |
Output is correct |
109 |
Correct |
22 ms |
4444 KB |
Output is correct |
110 |
Correct |
22 ms |
4604 KB |
Output is correct |
111 |
Correct |
3 ms |
4444 KB |
Output is correct |
112 |
Correct |
8 ms |
4444 KB |
Output is correct |
113 |
Correct |
8 ms |
4440 KB |
Output is correct |
114 |
Correct |
9 ms |
4444 KB |
Output is correct |
115 |
Correct |
8 ms |
4444 KB |
Output is correct |
116 |
Correct |
9 ms |
4444 KB |
Output is correct |
117 |
Correct |
8 ms |
4584 KB |
Output is correct |
118 |
Correct |
9 ms |
4440 KB |
Output is correct |
119 |
Correct |
9 ms |
4444 KB |
Output is correct |
120 |
Correct |
8 ms |
4584 KB |
Output is correct |
121 |
Correct |
22 ms |
4612 KB |
Output is correct |
122 |
Correct |
21 ms |
4604 KB |
Output is correct |
123 |
Correct |
24 ms |
4444 KB |
Output is correct |
124 |
Correct |
22 ms |
4444 KB |
Output is correct |
125 |
Correct |
21 ms |
4604 KB |
Output is correct |
126 |
Correct |
22 ms |
4444 KB |
Output is correct |
127 |
Correct |
21 ms |
4444 KB |
Output is correct |
128 |
Correct |
22 ms |
4444 KB |
Output is correct |
129 |
Correct |
121 ms |
4700 KB |
Output is correct |
130 |
Correct |
114 ms |
4696 KB |
Output is correct |
131 |
Correct |
123 ms |
4716 KB |
Output is correct |
132 |
Correct |
114 ms |
4700 KB |
Output is correct |
133 |
Correct |
114 ms |
4696 KB |
Output is correct |
134 |
Correct |
115 ms |
4704 KB |
Output is correct |
135 |
Correct |
119 ms |
4948 KB |
Output is correct |
136 |
Correct |
114 ms |
4708 KB |
Output is correct |
137 |
Correct |
1 ms |
4444 KB |
Output is correct |
138 |
Correct |
2 ms |
4444 KB |
Output is correct |
139 |
Correct |
1 ms |
4444 KB |
Output is correct |
140 |
Correct |
3 ms |
4444 KB |
Output is correct |
141 |
Correct |
0 ms |
2396 KB |
Output is correct |
142 |
Correct |
22 ms |
4604 KB |
Output is correct |
143 |
Correct |
22 ms |
4604 KB |
Output is correct |
144 |
Correct |
22 ms |
4444 KB |
Output is correct |
145 |
Correct |
21 ms |
4444 KB |
Output is correct |
146 |
Correct |
22 ms |
4440 KB |
Output is correct |
147 |
Correct |
22 ms |
4444 KB |
Output is correct |
148 |
Correct |
0 ms |
2396 KB |
Output is correct |
149 |
Correct |
118 ms |
4704 KB |
Output is correct |
150 |
Correct |
116 ms |
4704 KB |
Output is correct |
151 |
Correct |
120 ms |
4700 KB |
Output is correct |
152 |
Correct |
114 ms |
4696 KB |
Output is correct |
153 |
Correct |
116 ms |
4704 KB |
Output is correct |
154 |
Correct |
118 ms |
4700 KB |
Output is correct |
155 |
Correct |
10 ms |
4700 KB |
Output is correct |
156 |
Correct |
10 ms |
4444 KB |
Output is correct |
157 |
Correct |
8 ms |
4444 KB |
Output is correct |
158 |
Correct |
8 ms |
4572 KB |
Output is correct |
159 |
Correct |
8 ms |
4444 KB |
Output is correct |
160 |
Correct |
9 ms |
4576 KB |
Output is correct |
161 |
Correct |
8 ms |
4444 KB |
Output is correct |
162 |
Correct |
8 ms |
4576 KB |
Output is correct |
163 |
Correct |
8 ms |
4580 KB |
Output is correct |
164 |
Correct |
21 ms |
4444 KB |
Output is correct |
165 |
Correct |
23 ms |
4444 KB |
Output is correct |
166 |
Correct |
21 ms |
4444 KB |
Output is correct |
167 |
Correct |
22 ms |
4444 KB |
Output is correct |
168 |
Correct |
22 ms |
4444 KB |
Output is correct |
169 |
Correct |
22 ms |
4444 KB |
Output is correct |
170 |
Correct |
8 ms |
4444 KB |
Output is correct |
171 |
Correct |
8 ms |
4444 KB |
Output is correct |
172 |
Correct |
8 ms |
4580 KB |
Output is correct |
173 |
Correct |
8 ms |
4444 KB |
Output is correct |
174 |
Correct |
8 ms |
4444 KB |
Output is correct |
175 |
Correct |
22 ms |
4440 KB |
Output is correct |
176 |
Correct |
22 ms |
4444 KB |
Output is correct |
177 |
Correct |
22 ms |
4444 KB |
Output is correct |
178 |
Correct |
21 ms |
4440 KB |
Output is correct |
179 |
Correct |
116 ms |
4700 KB |
Output is correct |
180 |
Correct |
115 ms |
4700 KB |
Output is correct |
181 |
Correct |
118 ms |
4704 KB |
Output is correct |
182 |
Correct |
117 ms |
4948 KB |
Output is correct |
183 |
Correct |
114 ms |
4700 KB |
Output is correct |
184 |
Correct |
114 ms |
4696 KB |
Output is correct |
185 |
Correct |
115 ms |
4700 KB |
Output is correct |
186 |
Correct |
120 ms |
4952 KB |
Output is correct |
187 |
Correct |
117 ms |
4700 KB |
Output is correct |
188 |
Correct |
115 ms |
4712 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
4444 KB |
Output is correct |
2 |
Correct |
8 ms |
4444 KB |
Output is correct |
3 |
Correct |
8 ms |
4584 KB |
Output is correct |
4 |
Correct |
8 ms |
4444 KB |
Output is correct |
5 |
Correct |
8 ms |
4444 KB |
Output is correct |
6 |
Correct |
8 ms |
4444 KB |
Output is correct |
7 |
Correct |
9 ms |
4580 KB |
Output is correct |
8 |
Correct |
8 ms |
4444 KB |
Output is correct |
9 |
Correct |
8 ms |
4444 KB |
Output is correct |
10 |
Correct |
8 ms |
4444 KB |
Output is correct |
11 |
Correct |
3 ms |
4444 KB |
Output is correct |
12 |
Correct |
10 ms |
4692 KB |
Output is correct |
13 |
Correct |
9 ms |
4444 KB |
Output is correct |
14 |
Correct |
9 ms |
4444 KB |
Output is correct |
15 |
Correct |
8 ms |
4456 KB |
Output is correct |
16 |
Correct |
9 ms |
4444 KB |
Output is correct |
17 |
Correct |
8 ms |
4444 KB |
Output is correct |
18 |
Correct |
8 ms |
4440 KB |
Output is correct |
19 |
Correct |
9 ms |
4444 KB |
Output is correct |
20 |
Correct |
8 ms |
4444 KB |
Output is correct |
21 |
Correct |
22 ms |
4444 KB |
Output is correct |
22 |
Correct |
22 ms |
4444 KB |
Output is correct |
23 |
Correct |
21 ms |
4604 KB |
Output is correct |
24 |
Correct |
22 ms |
4444 KB |
Output is correct |
25 |
Correct |
21 ms |
4444 KB |
Output is correct |
26 |
Correct |
22 ms |
4444 KB |
Output is correct |
27 |
Correct |
22 ms |
4444 KB |
Output is correct |
28 |
Correct |
22 ms |
4444 KB |
Output is correct |
29 |
Correct |
3 ms |
4444 KB |
Output is correct |
30 |
Correct |
8 ms |
4444 KB |
Output is correct |
31 |
Correct |
8 ms |
4440 KB |
Output is correct |
32 |
Correct |
9 ms |
4444 KB |
Output is correct |
33 |
Correct |
8 ms |
4444 KB |
Output is correct |
34 |
Correct |
9 ms |
4444 KB |
Output is correct |
35 |
Correct |
8 ms |
4584 KB |
Output is correct |
36 |
Correct |
9 ms |
4440 KB |
Output is correct |
37 |
Correct |
9 ms |
4444 KB |
Output is correct |
38 |
Correct |
8 ms |
4584 KB |
Output is correct |
39 |
Correct |
22 ms |
4612 KB |
Output is correct |
40 |
Correct |
21 ms |
4604 KB |
Output is correct |
41 |
Correct |
24 ms |
4444 KB |
Output is correct |
42 |
Correct |
22 ms |
4444 KB |
Output is correct |
43 |
Correct |
21 ms |
4604 KB |
Output is correct |
44 |
Correct |
22 ms |
4444 KB |
Output is correct |
45 |
Correct |
21 ms |
4444 KB |
Output is correct |
46 |
Correct |
22 ms |
4444 KB |
Output is correct |
47 |
Correct |
121 ms |
4700 KB |
Output is correct |
48 |
Correct |
114 ms |
4696 KB |
Output is correct |
49 |
Correct |
123 ms |
4716 KB |
Output is correct |
50 |
Correct |
114 ms |
4700 KB |
Output is correct |
51 |
Correct |
114 ms |
4696 KB |
Output is correct |
52 |
Correct |
115 ms |
4704 KB |
Output is correct |
53 |
Correct |
119 ms |
4948 KB |
Output is correct |
54 |
Correct |
114 ms |
4708 KB |
Output is correct |
55 |
Correct |
3 ms |
4440 KB |
Output is correct |
56 |
Correct |
8 ms |
4440 KB |
Output is correct |
57 |
Correct |
8 ms |
4444 KB |
Output is correct |
58 |
Correct |
8 ms |
4444 KB |
Output is correct |
59 |
Correct |
8 ms |
4440 KB |
Output is correct |
60 |
Correct |
8 ms |
4444 KB |
Output is correct |
61 |
Correct |
8 ms |
4444 KB |
Output is correct |
62 |
Correct |
8 ms |
4444 KB |
Output is correct |
63 |
Correct |
8 ms |
4444 KB |
Output is correct |
64 |
Correct |
8 ms |
4444 KB |
Output is correct |
65 |
Correct |
22 ms |
4604 KB |
Output is correct |
66 |
Correct |
21 ms |
4444 KB |
Output is correct |
67 |
Correct |
21 ms |
4440 KB |
Output is correct |
68 |
Correct |
22 ms |
4444 KB |
Output is correct |
69 |
Correct |
21 ms |
4604 KB |
Output is correct |
70 |
Correct |
22 ms |
4696 KB |
Output is correct |
71 |
Correct |
21 ms |
4444 KB |
Output is correct |
72 |
Correct |
22 ms |
4608 KB |
Output is correct |
73 |
Correct |
113 ms |
4696 KB |
Output is correct |
74 |
Correct |
116 ms |
4700 KB |
Output is correct |
75 |
Correct |
126 ms |
4696 KB |
Output is correct |
76 |
Correct |
114 ms |
4700 KB |
Output is correct |
77 |
Correct |
117 ms |
4700 KB |
Output is correct |
78 |
Correct |
113 ms |
4704 KB |
Output is correct |
79 |
Correct |
119 ms |
4704 KB |
Output is correct |
80 |
Correct |
116 ms |
4700 KB |
Output is correct |
81 |
Correct |
2570 ms |
4716 KB |
Output is correct |
82 |
Correct |
2565 ms |
4716 KB |
Output is correct |
83 |
Correct |
2588 ms |
4724 KB |
Output is correct |
84 |
Correct |
2612 ms |
4952 KB |
Output is correct |
85 |
Correct |
2548 ms |
4972 KB |
Output is correct |
86 |
Correct |
2554 ms |
4716 KB |
Output is correct |
87 |
Correct |
2583 ms |
4948 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4444 KB |
Output is correct |
3 |
Correct |
1 ms |
4440 KB |
Output is correct |
4 |
Correct |
4 ms |
4560 KB |
Output is correct |
5 |
Correct |
1 ms |
2396 KB |
Output is correct |
6 |
Correct |
22 ms |
4444 KB |
Output is correct |
7 |
Correct |
22 ms |
4608 KB |
Output is correct |
8 |
Correct |
23 ms |
4600 KB |
Output is correct |
9 |
Correct |
22 ms |
4444 KB |
Output is correct |
10 |
Correct |
22 ms |
4444 KB |
Output is correct |
11 |
Correct |
21 ms |
4608 KB |
Output is correct |
12 |
Correct |
2 ms |
4440 KB |
Output is correct |
13 |
Correct |
1 ms |
4444 KB |
Output is correct |
14 |
Correct |
1 ms |
4444 KB |
Output is correct |
15 |
Correct |
3 ms |
4444 KB |
Output is correct |
16 |
Correct |
1 ms |
2396 KB |
Output is correct |
17 |
Correct |
24 ms |
4608 KB |
Output is correct |
18 |
Correct |
22 ms |
4444 KB |
Output is correct |
19 |
Correct |
22 ms |
4456 KB |
Output is correct |
20 |
Correct |
21 ms |
4444 KB |
Output is correct |
21 |
Correct |
22 ms |
4504 KB |
Output is correct |
22 |
Correct |
22 ms |
4440 KB |
Output is correct |
23 |
Correct |
0 ms |
2396 KB |
Output is correct |
24 |
Correct |
117 ms |
4704 KB |
Output is correct |
25 |
Correct |
114 ms |
4704 KB |
Output is correct |
26 |
Correct |
117 ms |
4956 KB |
Output is correct |
27 |
Correct |
117 ms |
4952 KB |
Output is correct |
28 |
Correct |
115 ms |
4708 KB |
Output is correct |
29 |
Correct |
114 ms |
4696 KB |
Output is correct |
30 |
Correct |
3 ms |
4444 KB |
Output is correct |
31 |
Correct |
8 ms |
4444 KB |
Output is correct |
32 |
Correct |
8 ms |
4584 KB |
Output is correct |
33 |
Correct |
8 ms |
4444 KB |
Output is correct |
34 |
Correct |
8 ms |
4444 KB |
Output is correct |
35 |
Correct |
8 ms |
4444 KB |
Output is correct |
36 |
Correct |
9 ms |
4580 KB |
Output is correct |
37 |
Correct |
8 ms |
4444 KB |
Output is correct |
38 |
Correct |
8 ms |
4444 KB |
Output is correct |
39 |
Correct |
8 ms |
4444 KB |
Output is correct |
40 |
Correct |
1 ms |
4444 KB |
Output is correct |
41 |
Correct |
1 ms |
4444 KB |
Output is correct |
42 |
Correct |
1 ms |
4444 KB |
Output is correct |
43 |
Correct |
3 ms |
4444 KB |
Output is correct |
44 |
Correct |
8 ms |
4440 KB |
Output is correct |
45 |
Correct |
10 ms |
4576 KB |
Output is correct |
46 |
Correct |
8 ms |
4444 KB |
Output is correct |
47 |
Correct |
8 ms |
4444 KB |
Output is correct |
48 |
Correct |
8 ms |
4580 KB |
Output is correct |
49 |
Correct |
9 ms |
4444 KB |
Output is correct |
50 |
Correct |
8 ms |
4444 KB |
Output is correct |
51 |
Correct |
8 ms |
4444 KB |
Output is correct |
52 |
Correct |
8 ms |
4444 KB |
Output is correct |
53 |
Correct |
8 ms |
4444 KB |
Output is correct |
54 |
Correct |
9 ms |
4444 KB |
Output is correct |
55 |
Correct |
8 ms |
4444 KB |
Output is correct |
56 |
Correct |
8 ms |
4444 KB |
Output is correct |
57 |
Correct |
8 ms |
4444 KB |
Output is correct |
58 |
Correct |
3 ms |
4444 KB |
Output is correct |
59 |
Correct |
10 ms |
4692 KB |
Output is correct |
60 |
Correct |
9 ms |
4444 KB |
Output is correct |
61 |
Correct |
9 ms |
4444 KB |
Output is correct |
62 |
Correct |
8 ms |
4456 KB |
Output is correct |
63 |
Correct |
9 ms |
4444 KB |
Output is correct |
64 |
Correct |
8 ms |
4444 KB |
Output is correct |
65 |
Correct |
8 ms |
4440 KB |
Output is correct |
66 |
Correct |
9 ms |
4444 KB |
Output is correct |
67 |
Correct |
8 ms |
4444 KB |
Output is correct |
68 |
Correct |
22 ms |
4444 KB |
Output is correct |
69 |
Correct |
22 ms |
4444 KB |
Output is correct |
70 |
Correct |
21 ms |
4604 KB |
Output is correct |
71 |
Correct |
22 ms |
4444 KB |
Output is correct |
72 |
Correct |
21 ms |
4444 KB |
Output is correct |
73 |
Correct |
22 ms |
4444 KB |
Output is correct |
74 |
Correct |
22 ms |
4444 KB |
Output is correct |
75 |
Correct |
22 ms |
4444 KB |
Output is correct |
76 |
Correct |
1 ms |
4444 KB |
Output is correct |
77 |
Correct |
1 ms |
4444 KB |
Output is correct |
78 |
Correct |
1 ms |
4444 KB |
Output is correct |
79 |
Correct |
3 ms |
4444 KB |
Output is correct |
80 |
Correct |
1 ms |
2396 KB |
Output is correct |
81 |
Correct |
22 ms |
4604 KB |
Output is correct |
82 |
Correct |
22 ms |
4444 KB |
Output is correct |
83 |
Correct |
22 ms |
4444 KB |
Output is correct |
84 |
Correct |
21 ms |
4444 KB |
Output is correct |
85 |
Correct |
22 ms |
4440 KB |
Output is correct |
86 |
Correct |
22 ms |
4444 KB |
Output is correct |
87 |
Correct |
9 ms |
4444 KB |
Output is correct |
88 |
Correct |
8 ms |
4444 KB |
Output is correct |
89 |
Correct |
8 ms |
4444 KB |
Output is correct |
90 |
Correct |
8 ms |
4444 KB |
Output is correct |
91 |
Correct |
9 ms |
4584 KB |
Output is correct |
92 |
Correct |
8 ms |
4444 KB |
Output is correct |
93 |
Correct |
9 ms |
4580 KB |
Output is correct |
94 |
Correct |
8 ms |
4444 KB |
Output is correct |
95 |
Correct |
8 ms |
4440 KB |
Output is correct |
96 |
Correct |
9 ms |
4576 KB |
Output is correct |
97 |
Correct |
8 ms |
4444 KB |
Output is correct |
98 |
Correct |
8 ms |
4444 KB |
Output is correct |
99 |
Correct |
8 ms |
4584 KB |
Output is correct |
100 |
Correct |
9 ms |
4580 KB |
Output is correct |
101 |
Correct |
22 ms |
4608 KB |
Output is correct |
102 |
Correct |
22 ms |
4444 KB |
Output is correct |
103 |
Correct |
22 ms |
4608 KB |
Output is correct |
104 |
Correct |
22 ms |
4440 KB |
Output is correct |
105 |
Correct |
21 ms |
4440 KB |
Output is correct |
106 |
Correct |
22 ms |
4440 KB |
Output is correct |
107 |
Correct |
21 ms |
4444 KB |
Output is correct |
108 |
Correct |
23 ms |
4444 KB |
Output is correct |
109 |
Correct |
22 ms |
4444 KB |
Output is correct |
110 |
Correct |
22 ms |
4604 KB |
Output is correct |
111 |
Correct |
3 ms |
4444 KB |
Output is correct |
112 |
Correct |
8 ms |
4444 KB |
Output is correct |
113 |
Correct |
8 ms |
4440 KB |
Output is correct |
114 |
Correct |
9 ms |
4444 KB |
Output is correct |
115 |
Correct |
8 ms |
4444 KB |
Output is correct |
116 |
Correct |
9 ms |
4444 KB |
Output is correct |
117 |
Correct |
8 ms |
4584 KB |
Output is correct |
118 |
Correct |
9 ms |
4440 KB |
Output is correct |
119 |
Correct |
9 ms |
4444 KB |
Output is correct |
120 |
Correct |
8 ms |
4584 KB |
Output is correct |
121 |
Correct |
22 ms |
4612 KB |
Output is correct |
122 |
Correct |
21 ms |
4604 KB |
Output is correct |
123 |
Correct |
24 ms |
4444 KB |
Output is correct |
124 |
Correct |
22 ms |
4444 KB |
Output is correct |
125 |
Correct |
21 ms |
4604 KB |
Output is correct |
126 |
Correct |
22 ms |
4444 KB |
Output is correct |
127 |
Correct |
21 ms |
4444 KB |
Output is correct |
128 |
Correct |
22 ms |
4444 KB |
Output is correct |
129 |
Correct |
121 ms |
4700 KB |
Output is correct |
130 |
Correct |
114 ms |
4696 KB |
Output is correct |
131 |
Correct |
123 ms |
4716 KB |
Output is correct |
132 |
Correct |
114 ms |
4700 KB |
Output is correct |
133 |
Correct |
114 ms |
4696 KB |
Output is correct |
134 |
Correct |
115 ms |
4704 KB |
Output is correct |
135 |
Correct |
119 ms |
4948 KB |
Output is correct |
136 |
Correct |
114 ms |
4708 KB |
Output is correct |
137 |
Correct |
1 ms |
4444 KB |
Output is correct |
138 |
Correct |
2 ms |
4444 KB |
Output is correct |
139 |
Correct |
1 ms |
4444 KB |
Output is correct |
140 |
Correct |
3 ms |
4444 KB |
Output is correct |
141 |
Correct |
0 ms |
2396 KB |
Output is correct |
142 |
Correct |
22 ms |
4604 KB |
Output is correct |
143 |
Correct |
22 ms |
4604 KB |
Output is correct |
144 |
Correct |
22 ms |
4444 KB |
Output is correct |
145 |
Correct |
21 ms |
4444 KB |
Output is correct |
146 |
Correct |
22 ms |
4440 KB |
Output is correct |
147 |
Correct |
22 ms |
4444 KB |
Output is correct |
148 |
Correct |
0 ms |
2396 KB |
Output is correct |
149 |
Correct |
118 ms |
4704 KB |
Output is correct |
150 |
Correct |
116 ms |
4704 KB |
Output is correct |
151 |
Correct |
120 ms |
4700 KB |
Output is correct |
152 |
Correct |
114 ms |
4696 KB |
Output is correct |
153 |
Correct |
116 ms |
4704 KB |
Output is correct |
154 |
Correct |
118 ms |
4700 KB |
Output is correct |
155 |
Correct |
10 ms |
4700 KB |
Output is correct |
156 |
Correct |
10 ms |
4444 KB |
Output is correct |
157 |
Correct |
8 ms |
4444 KB |
Output is correct |
158 |
Correct |
8 ms |
4572 KB |
Output is correct |
159 |
Correct |
8 ms |
4444 KB |
Output is correct |
160 |
Correct |
9 ms |
4576 KB |
Output is correct |
161 |
Correct |
8 ms |
4444 KB |
Output is correct |
162 |
Correct |
8 ms |
4576 KB |
Output is correct |
163 |
Correct |
8 ms |
4580 KB |
Output is correct |
164 |
Correct |
21 ms |
4444 KB |
Output is correct |
165 |
Correct |
23 ms |
4444 KB |
Output is correct |
166 |
Correct |
21 ms |
4444 KB |
Output is correct |
167 |
Correct |
22 ms |
4444 KB |
Output is correct |
168 |
Correct |
22 ms |
4444 KB |
Output is correct |
169 |
Correct |
22 ms |
4444 KB |
Output is correct |
170 |
Correct |
8 ms |
4444 KB |
Output is correct |
171 |
Correct |
8 ms |
4444 KB |
Output is correct |
172 |
Correct |
8 ms |
4580 KB |
Output is correct |
173 |
Correct |
8 ms |
4444 KB |
Output is correct |
174 |
Correct |
8 ms |
4444 KB |
Output is correct |
175 |
Correct |
22 ms |
4440 KB |
Output is correct |
176 |
Correct |
22 ms |
4444 KB |
Output is correct |
177 |
Correct |
22 ms |
4444 KB |
Output is correct |
178 |
Correct |
21 ms |
4440 KB |
Output is correct |
179 |
Correct |
116 ms |
4700 KB |
Output is correct |
180 |
Correct |
115 ms |
4700 KB |
Output is correct |
181 |
Correct |
118 ms |
4704 KB |
Output is correct |
182 |
Correct |
117 ms |
4948 KB |
Output is correct |
183 |
Correct |
114 ms |
4700 KB |
Output is correct |
184 |
Correct |
114 ms |
4696 KB |
Output is correct |
185 |
Correct |
115 ms |
4700 KB |
Output is correct |
186 |
Correct |
120 ms |
4952 KB |
Output is correct |
187 |
Correct |
117 ms |
4700 KB |
Output is correct |
188 |
Correct |
115 ms |
4712 KB |
Output is correct |
189 |
Correct |
3 ms |
4440 KB |
Output is correct |
190 |
Correct |
8 ms |
4440 KB |
Output is correct |
191 |
Correct |
8 ms |
4444 KB |
Output is correct |
192 |
Correct |
8 ms |
4444 KB |
Output is correct |
193 |
Correct |
8 ms |
4440 KB |
Output is correct |
194 |
Correct |
8 ms |
4444 KB |
Output is correct |
195 |
Correct |
8 ms |
4444 KB |
Output is correct |
196 |
Correct |
8 ms |
4444 KB |
Output is correct |
197 |
Correct |
8 ms |
4444 KB |
Output is correct |
198 |
Correct |
8 ms |
4444 KB |
Output is correct |
199 |
Correct |
22 ms |
4604 KB |
Output is correct |
200 |
Correct |
21 ms |
4444 KB |
Output is correct |
201 |
Correct |
21 ms |
4440 KB |
Output is correct |
202 |
Correct |
22 ms |
4444 KB |
Output is correct |
203 |
Correct |
21 ms |
4604 KB |
Output is correct |
204 |
Correct |
22 ms |
4696 KB |
Output is correct |
205 |
Correct |
21 ms |
4444 KB |
Output is correct |
206 |
Correct |
22 ms |
4608 KB |
Output is correct |
207 |
Correct |
113 ms |
4696 KB |
Output is correct |
208 |
Correct |
116 ms |
4700 KB |
Output is correct |
209 |
Correct |
126 ms |
4696 KB |
Output is correct |
210 |
Correct |
114 ms |
4700 KB |
Output is correct |
211 |
Correct |
117 ms |
4700 KB |
Output is correct |
212 |
Correct |
113 ms |
4704 KB |
Output is correct |
213 |
Correct |
119 ms |
4704 KB |
Output is correct |
214 |
Correct |
116 ms |
4700 KB |
Output is correct |
215 |
Correct |
2570 ms |
4716 KB |
Output is correct |
216 |
Correct |
2565 ms |
4716 KB |
Output is correct |
217 |
Correct |
2588 ms |
4724 KB |
Output is correct |
218 |
Correct |
2612 ms |
4952 KB |
Output is correct |
219 |
Correct |
2548 ms |
4972 KB |
Output is correct |
220 |
Correct |
2554 ms |
4716 KB |
Output is correct |
221 |
Correct |
2583 ms |
4948 KB |
Output is correct |
222 |
Correct |
3 ms |
4696 KB |
Output is correct |
223 |
Correct |
8 ms |
4444 KB |
Output is correct |
224 |
Correct |
8 ms |
4444 KB |
Output is correct |
225 |
Correct |
8 ms |
4444 KB |
Output is correct |
226 |
Correct |
9 ms |
4576 KB |
Output is correct |
227 |
Correct |
8 ms |
4444 KB |
Output is correct |
228 |
Correct |
8 ms |
4440 KB |
Output is correct |
229 |
Correct |
8 ms |
4440 KB |
Output is correct |
230 |
Correct |
8 ms |
4444 KB |
Output is correct |
231 |
Correct |
9 ms |
4444 KB |
Output is correct |
232 |
Correct |
21 ms |
4696 KB |
Output is correct |
233 |
Correct |
23 ms |
4596 KB |
Output is correct |
234 |
Correct |
22 ms |
4440 KB |
Output is correct |
235 |
Correct |
22 ms |
4444 KB |
Output is correct |
236 |
Correct |
22 ms |
4440 KB |
Output is correct |
237 |
Correct |
21 ms |
4440 KB |
Output is correct |
238 |
Correct |
22 ms |
4604 KB |
Output is correct |
239 |
Correct |
22 ms |
4444 KB |
Output is correct |
240 |
Correct |
117 ms |
4704 KB |
Output is correct |
241 |
Correct |
113 ms |
4696 KB |
Output is correct |
242 |
Correct |
114 ms |
4700 KB |
Output is correct |
243 |
Correct |
117 ms |
4700 KB |
Output is correct |
244 |
Correct |
127 ms |
4700 KB |
Output is correct |
245 |
Correct |
117 ms |
4696 KB |
Output is correct |
246 |
Correct |
113 ms |
4716 KB |
Output is correct |
247 |
Correct |
114 ms |
4704 KB |
Output is correct |
248 |
Correct |
1 ms |
4444 KB |
Output is correct |
249 |
Correct |
2 ms |
4444 KB |
Output is correct |
250 |
Correct |
1 ms |
4444 KB |
Output is correct |
251 |
Correct |
1 ms |
2396 KB |
Output is correct |
252 |
Correct |
21 ms |
4696 KB |
Output is correct |
253 |
Correct |
21 ms |
4444 KB |
Output is correct |
254 |
Correct |
22 ms |
4440 KB |
Output is correct |
255 |
Correct |
22 ms |
4604 KB |
Output is correct |
256 |
Correct |
1 ms |
2392 KB |
Output is correct |
257 |
Correct |
119 ms |
4700 KB |
Output is correct |
258 |
Correct |
117 ms |
4708 KB |
Output is correct |
259 |
Correct |
116 ms |
4700 KB |
Output is correct |
260 |
Correct |
115 ms |
4700 KB |
Output is correct |
261 |
Correct |
9 ms |
4440 KB |
Output is correct |
262 |
Correct |
8 ms |
4444 KB |
Output is correct |
263 |
Correct |
8 ms |
4696 KB |
Output is correct |
264 |
Correct |
9 ms |
4700 KB |
Output is correct |
265 |
Correct |
8 ms |
4444 KB |
Output is correct |
266 |
Correct |
22 ms |
4608 KB |
Output is correct |
267 |
Correct |
23 ms |
4444 KB |
Output is correct |
268 |
Correct |
21 ms |
4444 KB |
Output is correct |
269 |
Correct |
21 ms |
4444 KB |
Output is correct |
270 |
Correct |
116 ms |
4700 KB |
Output is correct |
271 |
Correct |
118 ms |
4696 KB |
Output is correct |
272 |
Correct |
123 ms |
4956 KB |
Output is correct |
273 |
Correct |
117 ms |
4716 KB |
Output is correct |
274 |
Correct |
2555 ms |
4976 KB |
Output is correct |
275 |
Correct |
2545 ms |
4720 KB |
Output is correct |
276 |
Correct |
2570 ms |
4728 KB |
Output is correct |
277 |
Correct |
2576 ms |
4952 KB |
Output is correct |
278 |
Correct |
2557 ms |
4728 KB |
Output is correct |
279 |
Correct |
2574 ms |
4716 KB |
Output is correct |
280 |
Correct |
2615 ms |
4980 KB |
Output is correct |
281 |
Correct |
2585 ms |
4716 KB |
Output is correct |
282 |
Correct |
2583 ms |
5232 KB |
Output is correct |
283 |
Correct |
2591 ms |
4952 KB |
Output is correct |