QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#484225 | #8600. Футбол | green_gold_dog# | 4 | 121ms | 7760kb | C++20 | 2.0kb | 2024-07-19 16:55:50 | 2024-07-19 16:55:50 |
Judging History
answer
//#pragma GCC optimize("Ofast")
//#pragma GCC target("avx,avx2,sse,sse2,sse3,ssse3,sse4,abm,popcnt,mmx")
#include <bits/stdc++.h>
using namespace std;
typedef int ll;
typedef double db;
typedef long double ldb;
typedef complex<double> cd;
constexpr ll INF64 = 9'000'000'000'000'000'000, INF32 = 2'000'000'000, MOD = 1'000'000'007;
constexpr db PI = acos(-1);
constexpr bool IS_FILE = false, IS_TEST_CASES = false;
random_device rd;
mt19937 rnd32(rd());
mt19937_64 rnd64(rd());
template<typename T>
bool assign_max(T& a, T b) {
if (b > a) {
a = b;
return true;
}
return false;
}
template<typename T>
bool assign_min(T& a, T b) {
if (b < a) {
a = b;
return true;
}
return false;
}
template<typename T>
T square(T a) {
return a * a;
}
template<>
struct std::hash<pair<ll, ll>> {
ll operator() (pair<ll, ll> p) const {
return ((__int128)p.first * MOD + p.second) % INF64;
}
};
ll gcd(ll a, ll b) {
return (min(a, b) == 0 ? max(a, b) : gcd(max(a, b) % min(a, b), min(a, b)));
}
void solve() {
ll n, q;
cin >> n >> q;
vector<ll> c(n);
for (ll i = 0; i < n; i++) {
cin >> c[i];
}
vector<vector<ll>> dn;
map<ll, ll> to;
for (ll i = 1; i <= n; i++) {
if (n % i == 0) {
vector<ll> now(i, INF32);
for (ll j = 0; j < n; j++) {
assign_min(now[j % i], c[j]);
}
to[i] = dn.size();
dn.push_back(now);
}
}
vector<ll> ans(dn.size(), INF32);
ll nsum = 0;
ll a = -1;
for (ll i = 0; i < q; i++) {
ll x;
cin >> x;
nsum += x;
for (ll j = 0; j < dn.size(); j++) {
assign_min(ans[j], dn[j][nsum % dn[j].size()]);
}
//cout << ans[to[gcd(n, nsum)]] << ' ';
if (a == -1) {
a = INF32;
ll nn = 0;
do {
assign_min(a, c[nn]);
nn += x;
nn %= n;
} while (nn != 0);
}
cout << a << ' ';
}
cout << '\n';
}
int main() {
if (IS_FILE) {
freopen("", "r", stdin);
freopen("", "w", stdout);
}
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
ll t = 1;
if (IS_TEST_CASES) {
cin >> t;
}
for (ll i = 0; i < t; i++) {
solve();
}
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 10
Accepted
time: 0ms
memory: 3512kb
input:
2 1 2 1 1
output:
1
result:
ok 1 number(s): "1"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
2 100 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
result:
ok 100 numbers
Test #3:
score: -10
Wrong Answer
time: 0ms
memory: 3568kb
input:
90 100 61 83 44 52 58 27 36 57 2 68 74 47 38 13 76 28 48 78 75 67 89 80 1 6 72 3 29 54 88 87 73 81 71 51 59 25 37 46 33 9 11 70 45 49 69 17 53 32 42 18 64 24 22 23 31 90 5 55 79 41 12 8 82 63 20 26 85 21 66 60 10 7 77 4 34 62 14 16 35 39 86 30 65 43 56 19 50 40 84 15 28 88 7 31 86 8 16 72 81 32 89 8...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
result:
wrong answer 5th numbers differ - expected: '5', found: '1'
Subtask #2:
score: 4
Accepted
Test #38:
score: 4
Accepted
time: 121ms
memory: 7760kb
input:
147840 150000 51955 126047 19305 15169 98491 83561 117203 117454 128806 11992 121483 459 147794 90253 74660 36430 145671 95804 131911 2992 15875 98400 8460 42838 33469 140328 134827 18359 147461 133604 9654 131981 145644 85202 30317 25085 27990 11397 53520 142147 41480 126743 53905 49586 108298 6886...
output:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 150000 numbers
Test #39:
score: 0
Accepted
time: 96ms
memory: 7148kb
input:
143220 150000 24534 72329 33958 25432 9575 12565 16832 59291 103684 74775 68515 64244 95757 60764 49241 62774 4082 17225 50101 141175 117631 76280 90071 8204 51269 8021 62039 30369 96748 92627 61206 131171 121848 13125 41025 93021 125471 65341 22532 10412 71786 62668 19346 36892 132218 6846 132635 4...
output:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 150000 numbers
Test #40:
score: 0
Accepted
time: 84ms
memory: 7256kb
input:
148200 150000 23122 142646 26179 50780 105005 25932 48820 23886 86086 17422 130019 94069 119769 56361 3548 73423 107100 101914 139990 16752 112748 137437 24942 13892 7851 84971 32059 59288 68199 42599 131019 18348 6906 60246 69717 77994 49864 60189 32341 58609 119507 42703 98149 139379 74026 57560 3...
output:
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok 150000 numbers
Test #41:
score: 0
Accepted
time: 90ms
memory: 7084kb
input:
141372 150000 137435 45140 36704 47565 50057 44156 57833 140357 116168 136556 83666 21590 49770 39216 130631 123257 42311 12254 79473 10571 107739 117524 84526 17129 95218 109734 66285 55508 18509 70397 112899 69877 31717 6600 37532 13255 107368 34116 137988 119049 92960 22440 39513 42832 24994 8358...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 150000 numbers
Test #42:
score: 0
Accepted
time: 96ms
memory: 7632kb
input:
148680 150000 97755 74770 76339 101674 99315 98137 94238 96948 113272 111698 75780 42522 113466 97733 105526 27823 101017 36402 52050 88323 103271 50763 71727 141217 138774 140752 78163 140337 138947 100486 85516 34373 115431 140038 143315 34703 31647 51851 93642 63044 40722 123703 61052 106536 1175...
output:
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 ...
result:
ok 150000 numbers
Test #43:
score: 0
Accepted
time: 111ms
memory: 7516kb
input:
142800 150000 27172 128203 5279 107080 74065 48692 18275 83196 17028 79058 93710 72477 92431 86872 40073 69641 116806 55074 35302 49759 92769 141243 96003 132229 102838 14670 81014 138701 9003 105890 67929 57846 39211 79861 138639 109530 125157 71589 5455 10286 8629 128466 104111 11089 45971 93918 1...
output:
133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 ...
result:
ok 150000 numbers
Test #44:
score: 0
Accepted
time: 107ms
memory: 7500kb
input:
149760 150000 57896 58780 91338 44654 124599 139319 79778 115685 105885 51295 117267 50982 117533 149755 104869 6081 123727 103805 63103 128285 136996 26235 51064 56590 117614 144539 56867 26176 118905 7997 129728 49324 92839 38644 18891 102759 65503 38334 41675 64838 34437 58979 17558 74778 32540 8...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 150000 numbers
Test #45:
score: 0
Accepted
time: 115ms
memory: 7712kb
input:
147840 150000 112563 15725 72391 45158 145011 73593 73262 125767 14331 39803 97005 142498 129011 600 100966 89826 14065 19764 52676 61050 117930 94817 37362 48621 4497 140218 104813 107677 125830 34159 125049 12846 120520 13174 17594 91850 71519 122558 88375 136522 14010 63456 97569 83471 112637 119...
output:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 150000 numbers
Test #46:
score: 0
Accepted
time: 106ms
memory: 7596kb
input:
149760 150000 125708 19241 100731 58612 120582 90100 46981 65620 67386 143602 138251 84852 54026 93547 50080 39333 75208 80364 38744 24483 10203 130969 106284 137128 113062 138203 20528 139337 5141 42963 107272 69363 8799 27287 87107 118602 18868 142641 20074 80593 70478 4655 56020 16410 113777 5980...
output:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 150000 numbers
Test #47:
score: 0
Accepted
time: 86ms
memory: 7448kb
input:
146520 150000 3027 13940 86825 114881 5916 53410 3104 119986 136153 113383 121145 60122 118622 72916 111603 27289 142482 103353 21543 55101 13825 77067 82592 37677 59825 123905 135131 120792 123662 70150 141293 77467 27509 100738 41955 82713 90030 72388 139951 36888 69869 6554 60833 35045 51170 1026...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 150000 numbers
Test #48:
score: 0
Accepted
time: 113ms
memory: 7400kb
input:
140400 150000 85129 10798 19077 67138 57436 140369 137902 47168 72780 15514 20478 118106 15291 122422 37350 35836 75361 106604 63162 126990 101707 20365 83092 122007 132815 46389 113027 54572 26245 4267 290 58410 29188 30489 48728 106060 18877 93836 413 56181 53080 84657 42152 137577 13153 70220 136...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 150000 numbers
Test #49:
score: 0
Accepted
time: 93ms
memory: 7548kb
input:
148680 150000 131921 3478 105534 34548 9447 136884 77743 108817 111963 126786 7155 26489 21704 21449 124281 92512 1396 106023 405 118449 108751 31396 108912 35552 43924 53345 37427 97044 20802 95928 120442 36131 81823 76645 68766 45353 76415 60190 111483 132497 7435 36750 123143 3076 56970 14136 490...
output:
175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 175 ...
result:
ok 150000 numbers
Test #50:
score: 0
Accepted
time: 113ms
memory: 7520kb
input:
140400 150000 125842 73929 2806 126740 35491 14514 38547 206 47989 122191 135483 79681 63387 118700 42881 32246 88272 124600 12013 98487 9936 56425 3580 77886 114122 79800 79379 104399 111383 67261 75151 131806 51107 134530 99113 38864 76876 132137 63037 126450 80394 24447 100055 50686 65112 54350 3...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 150000 numbers
Test #51:
score: 0
Accepted
time: 95ms
memory: 7196kb
input:
149688 150000 131766 11454 133311 76598 113093 14156 130949 136739 122847 44702 63715 19648 60830 144690 6003 115362 128250 7043 119650 148766 64701 86452 115104 114486 42671 58225 51379 148810 81210 26381 110511 51723 49099 65275 41735 86422 65835 104426 137660 42925 23977 112132 95867 83093 43965 ...
output:
13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 ...
result:
ok 150000 numbers
Test #52:
score: 0
Accepted
time: 98ms
memory: 7436kb
input:
148680 150000 14055 22404 49664 38277 40807 81439 30823 141800 93446 62906 63253 135234 84689 74059 144800 51562 50583 144415 112959 110488 90623 27081 101112 146410 131033 134291 44395 26075 84788 107707 37435 68879 75704 94105 79280 125886 122940 26627 14989 101501 101381 62683 20221 138858 102955...
output:
16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 ...
result:
ok 150000 numbers
Test #53:
score: 0
Accepted
time: 93ms
memory: 7268kb
input:
148200 150000 109916 28274 108949 43876 82426 57102 121321 70790 127821 126280 93 130858 81852 43797 130586 79465 13860 66280 74523 39394 123831 100090 1597 76279 43152 93646 27626 131615 5105 57216 103053 48630 130178 58167 24772 72598 91517 5079 55402 136777 13423 19056 138628 75177 148004 25276 1...
output:
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 ...
result:
ok 150000 numbers
Test #54:
score: 0
Accepted
time: 114ms
memory: 7640kb
input:
142800 150000 15861 10117 124797 132378 39505 75429 71179 25566 22585 10966 55067 106906 25260 17565 17441 124352 82163 7922 106125 104617 78316 74200 75635 114014 141753 63172 50155 23079 77044 122829 9519 24141 42230 22236 84912 15256 131719 119529 141866 34447 74314 62739 22347 117139 87740 27198...
output:
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok 150000 numbers
Test #55:
score: 0
Accepted
time: 111ms
memory: 7716kb
input:
146160 150000 107027 88704 76057 4032 128649 41580 136201 106504 71907 48208 126302 63835 24833 43409 76133 54150 48040 70276 60854 17400 114989 64078 28357 60712 87818 7575 12776 21174 25735 52500 98009 38970 24314 50409 66331 114799 111512 115392 6722 47921 120719 78712 78250 129723 61018 71449 14...
output:
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 ...
result:
ok 150000 numbers
Test #56:
score: 0
Accepted
time: 112ms
memory: 7660kb
input:
146160 150000 119690 131487 4635 136654 63191 12486 86186 37362 96812 73031 28696 3006 86036 52834 121061 24125 133893 126668 50374 49030 124071 20211 49323 27051 83229 145929 46629 76458 40814 51333 46432 94389 138781 28683 20739 69232 122012 73866 48543 102303 145403 65922 72466 4814 5912 103057 1...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 150000 numbers
Test #57:
score: 0
Accepted
time: 106ms
memory: 7564kb
input:
146880 150000 61415 33674 28391 113741 24629 120685 58913 45642 53991 67292 77510 61156 95147 69774 13520 105199 53872 32252 61766 123672 90361 145002 121077 94082 88728 50905 114210 121513 100105 41096 65209 72662 113636 115310 57740 129565 35906 31120 55570 58291 49674 124624 25186 35070 136904 31...
output:
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 ...
result:
ok 150000 numbers
Test #58:
score: 0
Accepted
time: 109ms
memory: 7460kb
input:
149940 150000 124838 85779 7161 96257 46587 74792 132987 94367 32389 132101 66820 95531 148708 4639 4853 104133 28008 141089 67278 75725 10602 120482 124435 125185 148152 43140 116664 83592 66432 65723 39386 43542 11936 77764 22625 8546 134583 107977 122205 11422 43183 77316 63893 132780 110817 4913...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 150000 numbers
Test #59:
score: 0
Accepted
time: 118ms
memory: 7580kb
input:
141120 150000 51699 19802 72404 9725 98197 75130 47819 7466 67580 135423 26362 102832 109807 15128 133411 33658 76443 90472 124479 26141 19509 138894 19937 101249 59763 12499 97663 17369 121490 31586 80998 119195 43843 53613 48772 111008 88377 134677 62599 84615 10030 13332 64673 87343 131008 130996...
output:
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 ...
result:
ok 150000 numbers
Test #60:
score: 0
Accepted
time: 115ms
memory: 7732kb
input:
141120 150000 87367 36521 138030 86186 64349 12634 90525 89453 12359 108536 12867 29927 38962 91656 45603 120100 26816 40431 46496 70381 88120 128065 98799 140331 139893 59570 25197 47631 96035 88275 129287 77446 87194 55670 96799 120578 61795 99245 120602 28364 68816 133969 57870 74185 31277 110107...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 150000 numbers
Test #61:
score: 0
Accepted
time: 121ms
memory: 7676kb
input:
143640 150000 101593 132381 132994 22519 69916 93256 62572 66767 64384 5266 97917 8002 17559 131276 76164 57690 57039 83012 77333 43669 112866 10599 43736 28835 128257 49167 74298 27479 131236 71794 53994 22838 66664 81805 26225 114094 107889 98116 108468 3433 82083 100651 6194 48736 2792 96245 9334...
output:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 150000 numbers
Test #62:
score: 0
Accepted
time: 103ms
memory: 7420kb
input:
144144 150000 37691 29654 143666 87501 74596 72808 12802 137194 999 14076 39722 108668 29829 93569 76352 8555 96009 64809 98618 4624 28437 113922 142191 133820 63167 28345 56570 8008 46483 71961 78678 38300 10004 52448 12048 112705 121557 24748 126077 56408 110376 22712 128490 18208 85056 80105 1178...
output:
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 ...
result:
ok 150000 numbers
Test #63:
score: 0
Accepted
time: 104ms
memory: 7612kb
input:
149760 150000 146003 112693 75054 75681 60905 16776 104206 15194 46942 37111 91472 47254 63929 72089 38273 38126 93306 133744 83094 107245 148043 80479 85166 52551 112827 90327 135991 25632 6675 144309 148244 144512 130004 90987 86784 53432 14647 40069 65025 81701 86115 108957 144471 55738 18729 104...
output:
136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 136 ...
result:
ok 150000 numbers
Test #64:
score: 0
Accepted
time: 121ms
memory: 7648kb
input:
143640 150000 3565 140163 83477 108389 131146 46167 66707 138380 134164 86360 77155 98935 71197 102838 1241 133293 46802 64589 46239 100650 120253 41898 59315 142599 91276 79967 136641 67841 68620 79208 115099 104844 16854 105506 14306 85828 10955 135228 56218 6558 134609 134784 67092 35322 20800 91...
output:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 150000 numbers
Test #65:
score: 0
Accepted
time: 116ms
memory: 7736kb
input:
146160 150000 82842 14475 66976 129330 42918 52559 70553 116022 16518 42048 138000 10245 98944 75244 37626 129079 143155 134369 71057 19151 58441 116043 131648 144622 76786 84607 88965 29680 104399 989 144120 105443 52665 58741 132974 2053 3591 97029 101185 49408 81683 101477 102464 26847 108442 718...
output:
11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ...
result:
ok 150000 numbers
Test #66:
score: 0
Accepted
time: 92ms
memory: 7256kb
input:
141960 150000 15283 127527 84578 92605 4185 94095 9188 89456 119048 95921 110515 93805 98919 42509 33975 63108 73236 60576 129617 57732 44409 110621 46321 64775 80062 95570 126161 122069 27394 140528 74216 47389 81273 131182 128376 27802 116745 90903 6274 35823 30450 11501 117223 7578 107502 45113 9...
output:
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 150000 numbers
Test #67:
score: 0
Accepted
time: 101ms
memory: 7524kb
input:
140400 150000 124572 21172 106512 85184 123144 63121 88146 29183 123484 135380 115318 30363 75261 38970 78439 112862 68530 21750 30298 80967 63288 30403 44055 12394 47816 139730 105013 93302 34512 106875 84646 114594 117379 82264 79744 23291 133353 128856 120655 28990 37262 12549 131592 25211 103551...
output:
108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 108 ...
result:
ok 150000 numbers
Subtask #3:
score: 0
Wrong Answer
Test #68:
score: 11
Accepted
time: 42ms
memory: 5720kb
input:
227561 300000 73189 67918 59157 26519 101740 188677 6268 205191 174583 176677 78190 126611 30812 65842 138072 18276 70837 103758 127302 2932 127000 49555 91327 7897 182706 108236 29655 56692 90510 215347 157427 104979 140920 184749 95668 45218 130382 120415 18647 165909 201803 36717 92674 209990 448...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 300000 numbers
Test #69:
score: 0
Accepted
time: 41ms
memory: 5680kb
input:
228359 300000 141993 27122 18203 22377 123220 185891 150204 116468 190784 113243 23498 160111 78566 170803 90303 100694 158128 65848 108261 166202 72156 181776 166212 197059 192482 54518 218891 11099 98486 77262 221897 89233 168861 210125 39429 217689 195530 48351 131846 101445 119750 150702 33006 1...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 300000 numbers
Test #70:
score: -11
Wrong Answer
time: 41ms
memory: 5740kb
input:
229081 300000 104084 90225 159598 188001 125378 192428 96293 180608 55108 98436 94622 24083 195329 12583 76226 68193 217540 62469 4445 91770 111151 76309 103708 74077 201695 156254 48415 21771 163005 157423 226460 127623 5381 105167 90848 67893 22397 50436 166615 188171 4387 162326 167485 182817 227...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
wrong answer 143436th numbers differ - expected: '2', found: '1'
Subtask #4:
score: 0
Skipped
Dependency #1:
0%
Subtask #5:
score: 0
Wrong Answer
Test #133:
score: 0
Wrong Answer
time: 16ms
memory: 3676kb
input:
2048 150000 1369 1292 383 872 441 332 63 1307 1335 1731 24 261 1699 1215 1818 1136 560 358 211 1165 723 1514 1670 241 598 474 317 1182 658 1596 1352 1663 406 1326 1461 678 366 768 581 216 50 822 1746 1860 1403 1052 370 1413 1440 1559 1029 1575 512 713 377 821 1425 1868 1944 338 459 322 1799 96 874 6...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
wrong answer 206th numbers differ - expected: '3', found: '1'
Subtask #6:
score: 0
Skipped
Dependency #4:
0%
Subtask #7:
score: 0
Skipped
Dependency #1:
0%