#include <bits/stdc++.h>
#pragma GCC optimize("Ofast, unroll-loops")
#pragma GCC target("avx,avx2,fma")
// #pragma GCC optimization ("unroll-loops")
#define pb push_back
#define LINE "-----------------\n"
#define ALL(x) x.begin(),x.end()
using namespace std;
int n, m;
vector <int> nums, sorted;
const int N = 1e6 + 5;
const int M = 1e6 + 1;
int cnt[N], nx[N], pv[N];
signed main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
// freopen("in.txt", "r", stdin);
// freopen("out.txt", "w", stdout);
cin >> n;
for (int i = 0; i < n; i++) {
int x; cin >> x;
cnt[x]++;
nums.pb(x);
// sorted.pb(x);
}
// sort(ALL(sorted));
for (int i = 1; i < M; i++) {
if (cnt[i] > 0) sorted.pb(i);
}
nx[0] = sorted[0];
pv[sorted[0]] = 0;
for (int i = 0; i < sorted.size()-1; i++) {
// if (sorted[i] != sorted[i+1]) {
nx[sorted[i]] = sorted[i+1];
pv[sorted[i+1]] = sorted[i];
// }
}
nx[sorted.back()] = M;
pv[M] = sorted.back();
int ans = 0;
for (int i = n - 1, j, curCnt, a, b; i >= 0; i--) {
curCnt = 1;
bool border = 1;
for (j = i-1; j >= 0; j--) {
if (nums[j] == nums[j+1]) {
curCnt++;
continue;
} else {
if (nx[nums[j]] != nums[j+1]) break;
if (!border && curCnt != cnt[nums[j+1]]) break;
cnt[nums[j+1]] -= curCnt;
if (cnt[nums[j+1]] == 0) {
a = pv[nums[j+1]], b = nx[nums[j+1]];
nx[a] = b;
pv[b] = a;
}
border = 0;
curCnt = 1;
}
}
cnt[nums[j+1]] -= curCnt;
if (cnt[nums[j+1]] == 0) {
a = pv[nums[j+1]], b = nx[nums[j+1]];
nx[a] = b;
pv[b] = a;
}
ans++;
i = j+1;
}
cout << ans << '\n';
}
Compilation message
money.cpp:3:43: warning: bad option '-f unroll-loops' to pragma 'optimize' [-Wpragmas]
3 | #pragma GCC optimize("Ofast, unroll-loops")
| ^
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
4 | #pragma GCC target("avx,avx2,fma")
| ^
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
money.cpp:4:34: warning: bad option '-f unroll-loops' to attribute 'o
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
332 KB |
Output is correct |
2 |
Correct |
1 ms |
332 KB |
Output is correct |
3 |
Correct |
2 ms |
332 KB |
Output is correct |
4 |
Correct |
1 ms |
332 KB |
Output is correct |
5 |
Correct |
1 ms |
332 KB |
Output is correct |
6 |
Correct |
1 ms |
332 KB |
Output is correct |
7 |
Correct |
2 ms |
332 KB |
Output is correct |
8 |
Correct |
2 ms |
332 KB |
Output is correct |
9 |
Correct |
1 ms |
332 KB |
Output is correct |
10 |
Correct |
2 ms |
332 KB |
Output is correct |
11 |
Correct |
2 ms |
332 KB |
Output is correct |
12 |
Correct |
1 ms |
332 KB |
Output is correct |
13 |
Correct |
1 ms |
332 KB |
Output is correct |
14 |
Correct |
2 ms |
332 KB |
Output is correct |
15 |
Correct |
2 ms |
332 KB |
Output is correct |
16 |
Correct |
2 ms |
332 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
332 KB |
Output is correct |
2 |
Correct |
1 ms |
332 KB |
Output is correct |
3 |
Correct |
2 ms |
332 KB |
Output is correct |
4 |
Correct |
1 ms |
332 KB |
Output is correct |
5 |
Correct |
1 ms |
332 KB |
Output is correct |
6 |
Correct |
1 ms |
332 KB |
Output is correct |
7 |
Correct |
2 ms |
332 KB |
Output is correct |
8 |
Correct |
2 ms |
332 KB |
Output is correct |
9 |
Correct |
1 ms |
332 KB |
Output is correct |
10 |
Correct |
2 ms |
332 KB |
Output is correct |
11 |
Correct |
2 ms |
332 KB |
Output is correct |
12 |
Correct |
1 ms |
332 KB |
Output is correct |
13 |
Correct |
1 ms |
332 KB |
Output is correct |
14 |
Correct |
2 ms |
332 KB |
Output is correct |
15 |
Correct |
2 ms |
332 KB |
Output is correct |
16 |
Correct |
2 ms |
332 KB |
Output is correct |
17 |
Correct |
1 ms |
332 KB |
Output is correct |
18 |
Correct |
2 ms |
332 KB |
Output is correct |
19 |
Correct |
2 ms |
332 KB |
Output is correct |
20 |
Correct |
1 ms |
332 KB |
Output is correct |
21 |
Correct |
2 ms |
332 KB |
Output is correct |
22 |
Correct |
2 ms |
332 KB |
Output is correct |
23 |
Correct |
1 ms |
332 KB |
Output is correct |
24 |
Correct |
2 ms |
332 KB |
Output is correct |
25 |
Correct |
1 ms |
460 KB |
Output is correct |
26 |
Correct |
2 ms |
460 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
332 KB |
Output is correct |
2 |
Correct |
1 ms |
332 KB |
Output is correct |
3 |
Correct |
2 ms |
332 KB |
Output is correct |
4 |
Correct |
1 ms |
332 KB |
Output is correct |
5 |
Correct |
1 ms |
332 KB |
Output is correct |
6 |
Correct |
1 ms |
332 KB |
Output is correct |
7 |
Correct |
2 ms |
332 KB |
Output is correct |
8 |
Correct |
2 ms |
332 KB |
Output is correct |
9 |
Correct |
1 ms |
332 KB |
Output is correct |
10 |
Correct |
2 ms |
332 KB |
Output is correct |
11 |
Correct |
2 ms |
332 KB |
Output is correct |
12 |
Correct |
1 ms |
332 KB |
Output is correct |
13 |
Correct |
1 ms |
332 KB |
Output is correct |
14 |
Correct |
2 ms |
332 KB |
Output is correct |
15 |
Correct |
2 ms |
332 KB |
Output is correct |
16 |
Correct |
2 ms |
332 KB |
Output is correct |
17 |
Correct |
1 ms |
332 KB |
Output is correct |
18 |
Correct |
2 ms |
332 KB |
Output is correct |
19 |
Correct |
2 ms |
332 KB |
Output is correct |
20 |
Correct |
1 ms |
332 KB |
Output is correct |
21 |
Correct |
2 ms |
332 KB |
Output is correct |
22 |
Correct |
2 ms |
332 KB |
Output is correct |
23 |
Correct |
1 ms |
332 KB |
Output is correct |
24 |
Correct |
2 ms |
332 KB |
Output is correct |
25 |
Correct |
1 ms |
460 KB |
Output is correct |
26 |
Correct |
2 ms |
460 KB |
Output is correct |
27 |
Correct |
2 ms |
332 KB |
Output is correct |
28 |
Correct |
2 ms |
332 KB |
Output is correct |
29 |
Correct |
2 ms |
332 KB |
Output is correct |
30 |
Correct |
1 ms |
332 KB |
Output is correct |
31 |
Correct |
1 ms |
332 KB |
Output is correct |
32 |
Correct |
2 ms |
332 KB |
Output is correct |
33 |
Correct |
2 ms |
332 KB |
Output is correct |
34 |
Correct |
2 ms |
332 KB |
Output is correct |
35 |
Correct |
2 ms |
332 KB |
Output is correct |
36 |
Correct |
1 ms |
332 KB |
Output is correct |
37 |
Correct |
2 ms |
1996 KB |
Output is correct |
38 |
Correct |
2 ms |
1996 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
332 KB |
Output is correct |
2 |
Correct |
1 ms |
332 KB |
Output is correct |
3 |
Correct |
2 ms |
332 KB |
Output is correct |
4 |
Correct |
1 ms |
332 KB |
Output is correct |
5 |
Correct |
1 ms |
332 KB |
Output is correct |
6 |
Correct |
1 ms |
332 KB |
Output is correct |
7 |
Correct |
2 ms |
332 KB |
Output is correct |
8 |
Correct |
2 ms |
332 KB |
Output is correct |
9 |
Correct |
1 ms |
332 KB |
Output is correct |
10 |
Correct |
2 ms |
332 KB |
Output is correct |
11 |
Correct |
2 ms |
332 KB |
Output is correct |
12 |
Correct |
1 ms |
332 KB |
Output is correct |
13 |
Correct |
1 ms |
332 KB |
Output is correct |
14 |
Correct |
2 ms |
332 KB |
Output is correct |
15 |
Correct |
2 ms |
332 KB |
Output is correct |
16 |
Correct |
2 ms |
332 KB |
Output is correct |
17 |
Correct |
1 ms |
332 KB |
Output is correct |
18 |
Correct |
2 ms |
332 KB |
Output is correct |
19 |
Correct |
2 ms |
332 KB |
Output is correct |
20 |
Correct |
1 ms |
332 KB |
Output is correct |
21 |
Correct |
2 ms |
332 KB |
Output is correct |
22 |
Correct |
2 ms |
332 KB |
Output is correct |
23 |
Correct |
1 ms |
332 KB |
Output is correct |
24 |
Correct |
2 ms |
332 KB |
Output is correct |
25 |
Correct |
1 ms |
460 KB |
Output is correct |
26 |
Correct |
2 ms |
460 KB |
Output is correct |
27 |
Correct |
2 ms |
332 KB |
Output is correct |
28 |
Correct |
2 ms |
332 KB |
Output is correct |
29 |
Correct |
2 ms |
332 KB |
Output is correct |
30 |
Correct |
1 ms |
332 KB |
Output is correct |
31 |
Correct |
1 ms |
332 KB |
Output is correct |
32 |
Correct |
2 ms |
332 KB |
Output is correct |
33 |
Correct |
2 ms |
332 KB |
Output is correct |
34 |
Correct |
2 ms |
332 KB |
Output is correct |
35 |
Correct |
2 ms |
332 KB |
Output is correct |
36 |
Correct |
1 ms |
332 KB |
Output is correct |
37 |
Correct |
2 ms |
1996 KB |
Output is correct |
38 |
Correct |
2 ms |
1996 KB |
Output is correct |
39 |
Correct |
42 ms |
2544 KB |
Output is correct |
40 |
Correct |
64 ms |
4536 KB |
Output is correct |
41 |
Correct |
35 ms |
2496 KB |
Output is correct |
42 |
Correct |
31 ms |
2640 KB |
Output is correct |
43 |
Correct |
21 ms |
1572 KB |
Output is correct |
44 |
Correct |
83 ms |
4540 KB |
Output is correct |
45 |
Correct |
85 ms |
4536 KB |
Output is correct |
46 |
Correct |
81 ms |
4540 KB |
Output is correct |
47 |
Correct |
85 ms |
4504 KB |
Output is correct |
48 |
Correct |
83 ms |
4496 KB |
Output is correct |
49 |
Correct |
127 ms |
19468 KB |
Output is correct |
50 |
Correct |
143 ms |
19492 KB |
Output is correct |
51 |
Correct |
128 ms |
19564 KB |
Output is correct |
52 |
Correct |
139 ms |
19504 KB |
Output is correct |
53 |
Correct |
128 ms |
19552 KB |
Output is correct |
54 |
Correct |
131 ms |
19460 KB |
Output is correct |
55 |
Correct |
158 ms |
19936 KB |
Output is correct |
56 |
Correct |
165 ms |
19928 KB |
Output is correct |
57 |
Correct |
164 ms |
19892 KB |
Output is correct |
58 |
Correct |
161 ms |
20012 KB |
Output is correct |
59 |
Correct |
158 ms |
20020 KB |
Output is correct |
60 |
Correct |
162 ms |
19896 KB |
Output is correct |
61 |
Correct |
168 ms |
20112 KB |
Output is correct |
62 |
Correct |
175 ms |
19944 KB |
Output is correct |