QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#631066 | #8695. Decimal Expansion | hos_lyric | AC ✓ | 19ms | 4072kb | C++14 | 2.2kb | 2024-10-11 21:46:03 | 2024-10-11 21:46:27 |
Judging History
answer
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
using Int = long long;
template <class T1, class T2> ostream &operator<<(ostream &os, const pair<T1, T2> &a) { return os << "(" << a.first << ", " << a.second << ")"; };
template <class T> ostream &operator<<(ostream &os, const vector<T> &as) { const int sz = as.size(); os << "["; for (int i = 0; i < sz; ++i) { if (i >= 256) { os << ", ..."; break; } if (i > 0) { os << ", "; } os << as[i]; } return os << "]"; }
template <class T> void pv(T a, T b) { for (T i = a; i != b; ++i) cerr << *i << " "; cerr << endl; }
template <class T> bool chmin(T &t, const T &f) { if (t > f) { t = f; return true; } return false; }
template <class T> bool chmax(T &t, const T &f) { if (t < f) { t = f; return true; } return false; }
#define COLOR(s) ("\x1b[" s "m")
/*
\prod[i>=1] (1 - (1/10)^i)
= \sum[i] (-1)^i (1/10)^(i(3i+1)/2)
+0 -1 +1 -2: +0 - 1 - 2 + 5
+2 -3 +3 -4: +7 -12 -15 +22
+100000000100
-000100100000
=099899900100
*/
constexpr int ANS[9] = {-1, 0, 9, 8, 9, 9, 0, 1, 0};
Int penta(Int i) {
return i*(3*i+1)/2;
}
int solve(Int N) {
// 2k(6k+1)/2 <= N
const Int k = (-1 + (Int)sqrt(1 + 24.0L * N)) / 12;
const Int ns[4] = {penta(2*k), penta(-2*k - 1), penta(2*k + 1), penta(-2*k - 2)};
// cerr<<"N = "<<N<<": k = "<<k<<", ns = ";pv(ns,ns+4);
int cnt = 0;
for (int i = 0; i < 4; ++i) {
if (N >= ns[i]) ++cnt;
if (N > ns[i]) ++cnt;
}
return ANS[cnt];
}
int main() {
int T;
for (; ~scanf("%d", &T); ) {
vector<int> ans(T);
for (int t = 0; t < T; ++t) {
Int N;
scanf("%lld", &N);
ans[t] = solve(N);
}
for (int t = 0; t < T; ++t) {
if (t) printf(" ");
printf("%d", ans[t]);
}
puts("");
}
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3872kb
input:
15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
output:
8 9 0 0 1 0 0 9 9 9 9 8 9 9 9
result:
ok 15 numbers
Test #2:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
100 88 98 22 74 35 44 44 55 75 61 65 88 97 47 44 10 74 24 19 15 61 72 90 72 62 61 68 43 22 44 17 70 77 80 34 87 6 61 39 6 72 71 11 43 2 36 80 51 97 93 32 6 24 28 39 58 55 56 80 85 79 100 69 19 99 13 72 45 41 76 36 37 11 3 97 4 5 44 82 73 11 84 28 71 63 8 99 66 20 62 23 43 24 23 40 12 67 51 25 42
output:
0 0 1 9 8 0 0 0 9 9 9 0 0 0 0 9 9 0 0 9 9 9 0 9 9 9 9 0 1 0 0 8 9 0 9 0 0 9 9 0 9 9 9 0 9 9 0 1 0 0 9 0 0 9 9 9 0 0 0 0 0 0 9 0 0 9 9 0 0 9 9 9 9 0 0 0 1 0 0 9 9 0 9 9 9 9 0 9 0 9 0 0 0 0 9 8 9 1 0 0
result:
ok 100 numbers
Test #3:
score: 0
Accepted
time: 14ms
memory: 3808kb
input:
100000 6 81 34 73 8 76 35 47 6 39 10 37 15 12 29 22 65 63 85 38 93 9 31 82 44 99 41 99 94 31 87 22 37 47 10 35 59 65 50 67 91 13 24 82 74 21 47 16 75 24 48 91 32 60 55 34 95 96 43 64 14 43 58 80 80 70 1 70 55 41 21 48 84 80 58 72 95 37 7 67 17 15 48 70 97 94 70 99 11 88 16 9 74 87 90 41 97 18 7 77 2...
output:
0 0 9 9 9 9 8 0 0 9 9 9 9 8 9 1 9 9 0 9 0 9 9 0 0 0 0 0 0 9 0 1 9 0 9 8 9 9 0 9 0 9 0 0 9 0 0 0 9 0 0 0 9 9 0 9 0 0 0 9 9 0 9 0 0 8 8 8 0 0 0 0 0 0 9 9 0 9 0 9 0 9 0 8 0 0 8 0 9 0 0 9 9 0 0 0 0 0 0 9 0 9 0 9 0 9 0 9 9 0 0 0 9 0 9 8 0 9 1 9 0 0 0 8 9 0 1 9 0 0 0 0 0 9 0 9 1 0 9 1 9 0 9 0 9 9 0 8 9 9 ...
result:
ok 100000 numbers
Test #4:
score: 0
Accepted
time: 14ms
memory: 3816kb
input:
100000 772 944 171 693 264 531 571 134 613 360 492 267 30 765 708 187 247 466 473 380 953 469 664 799 949 610 919 901 315 228 871 663 872 670 809 367 307 627 351 453 308 180 568 227 787 140 499 110 203 627 237 901 125 738 395 521 394 578 827 533 56 961 527 940 610 319 741 350 64 4 811 643 362 907 27...
output:
9 9 9 0 0 9 0 0 9 0 0 0 9 9 0 9 8 0 0 0 0 0 9 9 9 0 9 9 9 9 0 9 0 9 0 0 9 9 0 0 9 9 0 9 9 0 9 9 0 9 9 9 9 9 9 9 9 0 0 9 0 0 9 9 0 9 9 0 9 0 0 9 0 9 0 0 9 9 0 0 0 0 0 0 0 0 0 0 0 9 0 9 0 9 9 0 9 0 0 0 0 9 0 0 1 0 0 9 0 0 9 9 0 0 9 0 0 9 9 1 0 0 9 9 9 9 0 9 9 0 9 0 9 0 9 9 0 9 0 9 0 8 9 9 9 9 9 9 9 0 ...
result:
ok 100000 numbers
Test #5:
score: 0
Accepted
time: 15ms
memory: 3676kb
input:
100000 3966 3708 6765 7522 4147 5426 9490 3754 4886 3015 113 8932 2353 4932 1393 7595 3113 4638 7073 2150 5337 3791 401 8815 7854 6286 6024 8744 7847 6836 4098 9788 2761 2557 1257 6621 1296 9074 3209 9887 8240 2983 4613 800 2767 2991 7013 9326 1105 7506 8421 1458 7048 1851 3052 1642 8141 342 8442 19...
output:
0 0 9 9 9 0 0 0 9 8 9 9 0 0 9 9 0 0 9 0 0 9 9 9 9 9 0 9 9 0 9 9 9 0 9 9 0 0 9 0 0 9 0 9 9 9 9 9 9 9 9 0 9 9 9 9 0 9 9 9 0 9 9 9 9 0 9 9 0 9 0 9 9 0 9 0 0 0 9 0 9 0 0 0 9 0 9 0 9 0 0 0 0 0 9 9 0 0 9 9 9 0 0 0 0 0 9 9 0 0 9 9 8 0 9 9 9 9 0 9 0 0 9 9 0 0 9 9 0 9 9 9 0 0 9 0 9 9 9 1 9 9 0 0 0 0 9 9 9 0 ...
result:
ok 100000 numbers
Test #6:
score: 0
Accepted
time: 15ms
memory: 3824kb
input:
100000 82056 46118 24606 59572 94963 92874 4593 78517 78127 29713 95532 96294 62481 95686 3958 44736 16488 40860 53762 770 70359 14388 41005 78090 50592 8605 29964 72130 52646 32025 55135 84293 99126 67681 24005 90064 71726 12646 57536 32156 87754 91853 7990 47394 36259 9854 51 8422 28253 24622 3251...
output:
0 0 0 0 0 9 0 9 9 9 9 0 0 9 0 9 9 9 0 9 9 0 0 0 0 0 0 0 0 0 0 9 9 9 9 9 9 0 0 9 0 0 9 0 0 9 1 9 0 0 0 0 9 0 0 9 9 9 0 9 9 9 9 9 0 0 9 0 0 0 9 9 0 9 0 0 9 0 9 0 0 0 9 9 0 0 9 9 0 0 9 0 0 0 0 9 0 0 0 0 0 9 9 0 0 9 9 0 0 0 0 9 0 9 0 9 0 0 9 9 0 9 9 0 0 9 9 9 9 9 9 9 0 9 9 0 0 0 0 0 9 0 9 9 9 9 9 9 9 9 ...
result:
ok 100000 numbers
Test #7:
score: 0
Accepted
time: 11ms
memory: 3752kb
input:
100000 90718 157099 401030 680732 453612 811971 211123 550537 278570 846119 52007 756607 107615 338228 924311 606516 272112 527053 768443 946190 433572 781590 494299 473459 84887 922076 549189 464650 278187 661700 610214 151483 346741 871471 169047 170325 317222 750766 231072 114716 765840 947108 20...
output:
0 0 9 0 0 0 9 0 9 9 9 9 0 9 9 0 0 9 0 9 0 0 0 0 0 0 9 9 9 9 0 0 9 9 0 9 0 0 9 9 9 9 0 0 0 0 9 0 9 0 0 9 9 9 0 9 0 0 0 9 9 9 0 0 9 9 0 0 0 9 9 9 0 0 0 0 9 9 0 9 0 9 0 0 9 0 9 9 0 0 0 9 9 0 9 9 0 0 0 0 9 9 9 0 9 0 9 9 9 9 9 0 9 9 9 0 9 0 0 9 0 9 9 0 0 9 9 9 9 9 9 0 0 0 0 0 0 0 0 9 0 0 0 0 9 9 9 9 9 9 ...
result:
ok 100000 numbers
Test #8:
score: 0
Accepted
time: 11ms
memory: 4016kb
input:
100000 6866265 5271054 2705906 5554109 3213763 6874219 4150377 7408583 860617 4494041 8715564 2748694 3529766 1278268 247312 6817949 8917775 2160535 5783570 5879769 5582287 8885782 3907433 4501942 8416527 1700732 71375 217564 2566699 7059939 4493186 146267 8079343 1613804 4363955 3442181 4287898 317...
output:
0 9 9 9 0 9 0 9 0 9 9 0 0 9 0 0 9 0 0 0 9 0 0 9 9 9 0 9 0 0 9 9 9 0 0 9 9 0 9 0 0 0 9 9 0 9 9 9 9 9 0 9 9 9 0 9 0 9 0 9 0 0 9 0 9 0 0 9 9 9 0 0 9 0 9 0 9 9 0 0 9 9 0 9 9 9 0 9 0 0 0 0 0 0 9 0 9 0 0 9 0 9 0 0 9 9 9 0 9 0 0 9 9 9 0 0 9 0 9 9 9 9 0 9 0 9 9 9 9 9 9 9 0 9 0 9 0 9 0 9 0 0 0 9 0 0 9 0 0 0 ...
result:
ok 100000 numbers
Test #9:
score: 0
Accepted
time: 13ms
memory: 3872kb
input:
100000 85816580 61010596 2716476 19295738 795261 20814077 92827686 55424201 28741528 9515491 71976420 76221525 40046196 9345802 59011888 9043064 32178136 84835002 43604143 97940508 89614380 49473942 78001733 80014584 81527194 1122969 69259189 53534249 4025644 52318818 74185327 62408934 52872408 5486...
output:
0 0 0 9 0 9 9 9 0 9 9 9 9 0 9 0 0 9 0 9 0 9 0 0 9 0 9 0 9 0 9 9 9 0 9 0 0 0 0 9 9 0 9 9 9 0 9 9 0 9 9 9 0 0 0 9 0 0 0 9 9 0 0 0 0 9 0 0 9 0 0 0 9 9 0 9 0 9 0 9 9 9 0 0 0 9 9 9 0 9 0 9 0 0 0 9 0 0 9 9 0 0 0 9 9 9 0 9 9 9 0 0 9 0 9 9 9 0 0 9 9 9 0 9 0 9 9 0 0 9 0 9 0 9 9 9 0 0 9 0 9 0 9 9 0 0 0 0 9 0 ...
result:
ok 100000 numbers
Test #10:
score: 0
Accepted
time: 16ms
memory: 3696kb
input:
100000 625959733 565160527 445221221 223702301 225393579 114635052 451979688 806348846 13078366 113276810 447607713 98604042 492352916 887063104 294867183 934855807 107573848 421778983 299019317 845966179 848223858 56129525 802607580 811687020 836260649 377259807 687757778 927336301 835026814 538939...
output:
0 9 9 0 0 0 9 0 9 0 9 0 0 9 9 9 9 9 9 9 0 9 0 0 0 9 9 0 0 9 9 9 9 9 0 9 0 9 9 0 9 0 9 9 0 0 9 9 0 9 9 0 9 9 0 0 0 9 9 0 9 9 0 9 0 9 9 9 0 9 9 0 9 9 0 9 0 9 9 9 0 9 9 9 0 0 0 0 9 0 0 0 0 9 9 0 0 0 0 0 9 0 9 9 9 0 0 0 0 9 9 0 0 9 9 9 9 9 0 0 0 9 0 9 9 9 9 0 9 0 9 9 0 0 9 0 0 9 9 9 0 0 0 9 0 9 0 9 0 0 ...
result:
ok 100000 numbers
Test #11:
score: 0
Accepted
time: 13ms
memory: 3672kb
input:
100000 7149653619 3461006437 2523409260 3737358074 3938824267 553443779 7527978404 5192451024 7400995767 8966305283 7853997015 7623821561 4761468570 7983283115 5544981756 3960471882 7282701264 2081375471 256851177 1426373494 2497304581 316588617 3647523415 8902224934 3502589004 2445214418 643731431 ...
output:
0 9 0 0 0 9 9 0 9 9 9 0 9 0 0 0 9 9 0 9 9 0 0 0 9 9 0 9 0 9 0 9 0 0 0 0 0 9 9 0 9 9 0 0 0 9 9 0 0 0 0 0 0 9 0 0 9 9 0 0 9 9 0 9 0 9 9 9 9 0 9 0 9 9 9 9 9 0 0 0 0 0 9 0 9 0 0 9 0 0 9 9 9 9 9 9 0 0 0 9 9 0 0 9 0 0 9 0 9 9 9 9 0 9 9 0 0 9 0 9 9 9 0 9 0 0 0 9 0 0 0 9 0 0 0 0 0 0 0 0 0 0 0 9 0 9 9 0 0 0 ...
result:
ok 100000 numbers
Test #12:
score: 0
Accepted
time: 16ms
memory: 3848kb
input:
100000 17491570063 18587597806 76026485098 91004385627 10154219916 45003473721 47002093025 29885611244 69574204245 77002887842 49746624948 56729833179 57183981725 7582509683 22949602317 81171927453 12731928158 3578655859 65271257051 63890797067 60512140119 61251439321 96045167132 60119778020 9181067...
output:
9 0 0 0 9 0 9 0 9 9 9 0 9 9 0 0 0 9 9 9 0 9 0 0 9 0 9 0 0 9 0 0 9 0 9 0 9 9 0 0 0 9 9 9 9 0 9 0 0 9 0 0 0 9 0 0 9 0 9 9 0 0 0 9 9 0 9 0 0 9 0 9 9 0 0 9 9 9 0 9 0 9 0 9 0 9 9 9 9 0 0 9 0 0 0 9 0 9 9 0 0 9 9 9 9 0 9 0 0 9 9 9 9 9 9 9 9 9 0 9 0 0 9 0 0 9 9 0 0 9 0 9 0 0 9 0 0 9 0 9 0 9 0 0 9 9 0 9 9 0 ...
result:
ok 100000 numbers
Test #13:
score: 0
Accepted
time: 13ms
memory: 4004kb
input:
100000 650963844534 116827479792 98687927758 179800031468 653309915382 993081837603 949819590986 55890802891 877851468617 969988264428 882394791035 381016177224 693210719707 315512712022 72085898889 455633061776 850296771365 11965576342 811839052776 346985481957 442731548507 34176133969 570350427800...
output:
9 9 0 0 9 0 9 0 0 9 0 9 9 9 0 0 0 9 9 0 9 0 9 0 9 0 0 0 9 9 0 0 0 0 0 0 0 9 0 9 9 0 0 9 9 0 9 0 9 0 9 9 0 0 0 0 0 9 9 9 9 9 9 0 9 9 0 9 0 9 0 0 0 0 9 9 9 0 0 9 9 0 9 0 9 0 0 0 0 0 0 9 9 9 0 9 9 0 0 9 0 0 0 0 9 0 9 0 0 0 0 9 9 0 9 9 9 0 0 9 9 0 0 0 0 0 0 9 0 0 9 0 9 9 9 9 0 0 9 9 9 9 0 9 9 9 0 9 9 0 ...
result:
ok 100000 numbers
Test #14:
score: 0
Accepted
time: 17ms
memory: 3868kb
input:
100000 3672783358721 6670972367640 7872031242662 2703023766064 861795251827 2198486957788 4228512466892 6153969080498 891511333777 5639083327123 3483768632701 6072940474360 2583254232831 6763389154292 6933382562643 9324484529747 2552831721553 6009014191480 1738196969176 3073394884114 9605189224770 2...
output:
0 0 0 0 0 0 9 9 9 9 9 0 9 0 9 0 9 0 9 9 0 9 9 0 0 9 0 0 9 9 0 0 0 9 9 0 9 0 9 9 9 9 9 0 9 0 9 0 0 0 9 9 0 0 0 9 0 9 0 9 0 0 0 9 0 0 0 0 0 0 9 0 0 0 9 0 0 0 9 0 9 9 0 0 0 9 9 0 0 9 9 0 0 9 0 0 9 9 0 9 9 9 9 0 9 0 0 9 0 0 9 9 0 0 9 0 9 0 0 9 0 0 9 9 9 0 9 9 9 0 9 9 9 0 0 0 9 0 9 9 9 0 9 9 0 9 9 0 9 9 ...
result:
ok 100000 numbers
Test #15:
score: 0
Accepted
time: 17ms
memory: 3856kb
input:
100000 78375570560267 29610851612755 36313786025415 40450876400231 91829644533726 51963034851876 31769602837927 59862399651336 65929894293324 29844960476566 18943010049327 6510704552392 60381197897105 41953010115914 22705778025809 43349582448187 81069246067896 11144365347302 90707932792855 764976601...
output:
9 0 0 9 0 0 9 9 0 9 9 0 9 0 0 0 0 9 0 0 9 9 9 0 0 9 0 0 0 9 0 9 9 0 9 0 9 9 0 9 0 0 9 0 0 0 0 0 9 9 0 0 9 0 9 9 9 0 9 9 0 0 0 0 9 9 0 0 0 0 0 0 9 0 9 0 9 0 0 9 9 0 9 9 9 9 9 9 9 0 9 0 9 9 0 0 9 9 9 9 0 0 0 0 9 0 0 9 0 9 0 9 9 0 0 0 9 9 0 0 0 9 9 9 9 9 9 0 0 9 9 0 9 0 0 9 9 0 0 0 0 9 9 9 0 9 9 0 9 9 ...
result:
ok 100000 numbers
Test #16:
score: 0
Accepted
time: 17ms
memory: 3864kb
input:
100000 822570074555384 289789122469292 585346427737707 403140418775801 565302622371862 274987473422808 898259225114473 869758530786291 167377047067913 736256060178390 699985049804788 880841513951948 47219280148056 640671695813163 579659758973684 474150136244161 342594372744690 655307252902032 625360...
output:
0 0 0 0 9 0 9 9 0 0 9 9 0 0 9 0 9 0 0 0 9 0 0 9 0 9 9 9 0 9 9 0 0 0 0 0 9 9 0 9 9 9 0 0 0 0 0 9 9 9 9 0 0 0 0 0 9 0 0 0 0 9 9 9 0 0 0 0 9 0 0 0 9 0 9 9 9 9 0 9 0 0 0 0 0 9 0 9 9 9 0 9 0 9 9 9 0 0 0 0 0 9 0 9 9 9 0 9 0 9 9 9 9 0 9 0 0 9 9 9 9 0 0 9 0 9 9 0 0 9 9 9 9 9 9 9 0 0 0 9 0 0 0 9 0 0 9 9 9 9 ...
result:
ok 100000 numbers
Test #17:
score: 0
Accepted
time: 18ms
memory: 4068kb
input:
100000 519220157218084 8359268166006884 3099226030762785 8578247611689174 8630109509861361 786085497692195 4535835370629804 4558198107544308 6131889741454660 4781681715870030 3851190840342996 2711221784019299 1960462096940302 5624967511403304 9164455109843249 8633630593724604 7292534169971087 397574...
output:
0 0 9 0 0 0 9 9 9 0 9 0 0 9 0 0 9 0 0 0 0 9 0 0 0 0 9 0 9 0 0 9 0 0 0 9 9 9 0 0 9 0 9 9 0 0 9 9 9 0 9 9 0 9 0 9 0 9 0 0 9 0 9 0 9 0 9 9 9 9 9 9 0 0 0 0 9 0 9 9 9 9 0 9 0 0 9 0 0 9 0 9 9 9 0 9 9 0 9 9 0 0 9 0 9 0 9 0 9 9 9 0 0 9 0 9 9 0 0 0 9 9 9 9 0 9 9 0 9 9 0 9 0 9 0 9 0 0 9 9 0 9 0 9 9 0 0 0 9 9 ...
result:
ok 100000 numbers
Test #18:
score: 0
Accepted
time: 18ms
memory: 3868kb
input:
100000 339007729213952 12592254051155440 21574835916670586 69424180146065902 89563942759349906 42826166935675993 24987491196007279 76006510139906955 85455277051784327 27628864898968884 4000459001988022 253922373545552 16190286544007437 56619681257415649 33475629467249809 73357330877451767 5557463475...
output:
0 0 0 0 9 9 0 0 9 9 9 0 0 9 0 0 9 0 9 0 0 0 0 0 9 9 0 9 9 0 0 0 9 9 9 0 0 9 0 0 9 0 9 0 9 9 9 0 9 9 0 0 9 0 9 0 0 9 9 9 9 0 0 9 0 0 9 9 0 9 0 0 9 0 9 9 0 0 0 0 9 9 0 0 0 9 0 0 9 9 0 9 9 0 0 9 9 0 9 0 0 9 0 9 9 0 9 9 9 9 0 9 9 9 9 9 9 0 9 9 9 0 9 0 9 0 0 9 0 0 9 9 0 0 9 0 9 0 9 9 0 0 9 9 0 9 0 9 9 9 ...
result:
ok 100000 numbers
Test #19:
score: 0
Accepted
time: 18ms
memory: 3864kb
input:
100000 303055703093099036 149489893646023187 409688248637402774 643562409720421027 991347324466217817 942516389902718467 702071995177529162 718404172773398620 126305078127441374 258605374857205911 348195426415652360 636172661232518924 577162241984612496 401267226340500389 876887384541278922 98813882...
output:
0 9 0 9 9 9 0 9 0 9 9 0 9 0 9 0 0 0 9 0 9 9 9 0 0 0 0 9 9 9 0 0 0 0 9 9 0 9 0 9 9 9 9 0 0 0 9 9 9 0 9 0 9 0 0 0 0 0 9 0 9 9 9 9 9 9 0 9 0 9 9 9 0 0 0 9 9 0 0 9 9 9 9 0 9 0 9 9 0 9 9 9 0 0 9 9 0 9 9 9 9 0 0 0 9 9 9 0 9 0 0 9 9 9 0 0 9 0 0 0 9 9 0 9 0 0 9 9 0 9 9 9 9 9 9 9 9 0 0 9 9 9 0 9 9 9 9 0 9 9 ...
result:
ok 100000 numbers
Test #20:
score: 0
Accepted
time: 18ms
memory: 3872kb
input:
100000 889711215924334272 23113427754830736 980064371265907109 440768400291306285 909923851557631090 814866004174893766 20587935601167423 341486932438560475 350718006981847309 329843543789065216 135217736953196949 346367506978997773 477722934869198052 290228393821948567 155132844954845107 1870151343...
output:
9 0 9 0 9 0 9 0 0 9 9 0 9 0 0 9 9 0 0 9 0 0 0 9 9 0 0 9 0 0 0 0 9 0 9 9 0 0 9 0 9 0 9 0 0 9 0 9 9 9 9 0 0 0 9 9 0 9 0 9 0 0 0 9 9 9 0 9 0 9 9 0 9 9 9 0 9 9 9 0 0 0 9 9 9 9 0 9 9 9 0 0 0 9 9 0 0 9 0 0 9 0 9 9 0 9 0 9 0 9 0 9 0 9 0 9 0 9 0 9 9 9 9 9 0 9 0 0 9 0 0 0 0 9 9 9 0 9 0 9 0 9 0 0 0 9 0 9 9 0 ...
result:
ok 100000 numbers
Test #21:
score: 0
Accepted
time: 18ms
memory: 4004kb
input:
100000 361467073212130841 725399048164803467 442584371184361899 871061331021536946 512229150564985179 852034142795814411 788660531244465918 44872219985724342 625402365487089639 215936901073402128 868605048312157982 535367501959246012 200467535111438063 404101199888991431 421987019265761757 805629056...
output:
9 0 0 9 9 0 0 0 0 9 0 9 0 0 0 9 9 9 9 9 9 9 0 0 9 0 9 9 9 9 0 0 9 0 0 0 0 9 9 9 0 0 9 9 0 0 0 0 9 0 9 0 0 9 0 9 0 9 9 9 9 0 0 9 0 0 9 0 9 0 0 0 0 9 0 9 0 9 9 9 0 0 0 0 0 0 9 9 9 9 9 9 9 9 9 0 0 9 0 0 9 9 9 9 0 0 9 9 9 9 9 9 9 9 0 9 0 9 0 9 9 9 9 9 0 0 9 9 9 0 9 9 0 9 0 9 9 0 0 9 9 0 0 0 0 0 9 0 9 0 ...
result:
ok 100000 numbers
Test #22:
score: 0
Accepted
time: 19ms
memory: 3704kb
input:
100000 198500600568210173 550013176616509061 467622337046176656 903498511406729086 582762100710982785 857634425732527179 897036694250050240 265385518495455597 207591758811108020 184253994577014533 633974502634738794 967925490601535769 746219803081375925 24024057290336562 735530532182119875 637247264...
output:
9 9 0 9 9 9 0 0 9 0 0 0 0 9 9 0 0 0 9 9 0 0 9 9 9 0 9 9 9 0 9 0 0 0 0 0 9 0 9 9 0 0 0 9 0 9 0 9 0 9 9 0 0 0 9 9 9 9 0 0 0 0 0 0 0 9 9 9 9 0 0 9 0 9 9 0 9 9 9 9 0 9 9 9 0 9 9 9 9 0 9 0 9 0 0 0 9 9 0 9 0 0 0 0 0 0 0 9 9 9 9 0 9 0 0 9 9 0 0 0 0 0 0 0 9 9 9 9 9 9 0 9 9 0 0 9 0 0 0 9 9 0 9 0 0 0 9 0 9 0 ...
result:
ok 100000 numbers
Test #23:
score: 0
Accepted
time: 18ms
memory: 3928kb
input:
100000 155096705042265235 48151988867916602 792827981304686211 850854312519037681 570839056487006619 405176004318969155 391617275045598189 925293157166997391 323842595550885738 298464446481271902 66890092800797686 428788222618508149 177324660610780973 309601278000602334 97505948373804192 91343029606...
output:
9 9 0 0 0 9 0 9 9 9 9 0 0 0 9 9 9 9 0 0 9 9 9 9 0 9 0 0 9 0 9 0 9 9 9 0 9 0 9 9 9 9 9 9 0 0 0 0 0 9 0 0 9 9 0 0 9 9 9 0 0 9 0 9 9 9 9 0 0 9 0 9 0 0 9 9 0 0 0 9 9 9 0 9 9 0 0 9 9 9 0 9 9 9 0 0 0 9 9 9 0 9 9 0 9 9 9 9 0 9 9 9 9 0 0 9 9 0 9 9 0 9 0 9 0 0 0 0 9 9 0 9 0 9 9 9 9 0 9 0 9 9 0 0 9 0 0 9 0 9 ...
result:
ok 100000 numbers
Test #24:
score: 0
Accepted
time: 18ms
memory: 3924kb
input:
100000 999999280644320964 999999347577146592 999999599992037992 999999248031781034 999999204502213404 999999554430893269 999999396168252055 999999904763083941 999999868700981243 999999399021038097 999999401478096073 999999599679294743 999999896839139068 999999838582562195 999999187934084929 99999947...
output:
0 9 0 0 9 9 9 0 0 0 9 0 9 9 0 9 9 9 0 9 0 9 0 9 0 0 9 0 0 0 0 9 0 9 0 0 0 9 0 9 0 0 0 9 9 0 9 0 0 0 0 0 9 9 9 0 9 0 0 0 0 9 0 0 9 9 0 0 9 9 9 9 0 0 0 9 9 9 0 0 9 0 9 0 0 0 9 9 0 0 9 9 9 9 9 0 0 0 9 9 9 0 9 0 0 9 9 0 0 0 0 9 9 9 0 0 0 9 0 9 0 9 0 0 9 0 0 0 0 9 9 9 9 0 0 0 9 9 0 9 9 0 0 0 9 0 9 0 0 9 ...
result:
ok 100000 numbers
Test #25:
score: 0
Accepted
time: 18ms
memory: 4008kb
input:
100000 999999159573691257 999999614652094399 999999838007225188 999999747917351200 999999281931052706 999999516278882209 999999868640527636 999999584307587019 999999945033215834 999999570609041486 999999500556024911 999999259511847840 999999028519319229 999999064079973039 999999480603081961 99999923...
output:
0 0 9 0 0 0 0 0 9 0 9 9 9 9 9 0 0 0 9 0 0 0 0 9 9 9 9 0 0 9 9 9 9 9 9 0 9 0 0 0 0 9 0 0 9 9 9 9 9 9 0 9 0 0 9 9 9 0 0 9 0 0 0 0 0 9 0 9 9 9 9 0 9 9 9 9 0 9 0 9 9 9 9 9 9 9 0 0 0 0 9 0 0 0 0 9 9 0 0 0 9 9 0 9 0 0 0 0 0 0 9 0 9 9 0 0 9 0 9 0 0 0 0 0 0 0 9 9 0 9 0 0 0 0 0 9 0 9 9 9 9 0 9 9 0 9 9 9 9 0 ...
result:
ok 100000 numbers
Test #26:
score: 0
Accepted
time: 18ms
memory: 4004kb
input:
100000 999999419367740667 999999855614485219 999999087306145824 999999589274656417 999999202809476191 999999319433528446 999999989697956939 999999964678739617 999999078238864236 999999202651728564 999999609816750102 999999323521103830 999999820719342025 999999733107075903 999999022985424582 99999933...
output:
0 0 9 0 0 9 9 9 9 0 0 9 0 0 0 0 0 0 0 9 0 0 0 0 0 0 0 0 9 0 9 0 0 9 0 0 0 0 0 0 9 9 9 0 9 9 9 9 0 9 9 9 9 9 9 9 9 0 9 9 0 0 0 0 0 0 0 9 9 0 0 0 9 9 9 9 0 0 0 0 9 9 0 0 0 0 9 0 0 9 9 0 9 9 0 0 0 9 0 0 0 9 9 9 9 0 9 9 0 9 9 0 9 0 9 0 0 0 9 9 0 0 9 0 9 9 9 9 0 0 0 0 0 0 0 9 0 0 0 9 0 9 9 0 9 0 9 0 9 9 ...
result:
ok 100000 numbers
Test #27:
score: 0
Accepted
time: 15ms
memory: 3872kb
input:
100000 999999348799368921 999999841882649058 999999494021695967 999999671578911635 999999373359815435 999999224227906989 999999883870355592 999999789322698735 999999090329184422 999999356974580769 999999462272304221 999999475131433147 999999909266161105 999999992552295721 999999409354184708 99999994...
output:
9 9 9 9 9 9 0 9 0 9 0 9 0 0 0 9 0 9 0 0 0 9 9 9 0 0 9 9 0 9 9 0 0 0 9 0 0 9 0 9 9 0 9 9 0 0 9 0 9 9 0 9 9 0 9 9 9 0 0 0 9 0 9 9 9 9 9 9 9 9 0 9 0 0 0 0 0 9 0 9 0 0 9 9 0 0 9 9 0 0 9 0 0 0 9 9 9 0 9 9 9 0 9 9 9 9 0 9 0 0 9 0 0 9 9 9 0 0 9 9 0 0 9 9 9 0 9 0 9 0 0 0 0 0 9 0 9 0 0 9 9 9 0 0 0 0 9 0 9 9 ...
result:
ok 100000 numbers
Test #28:
score: 0
Accepted
time: 19ms
memory: 3808kb
input:
100000 999999359150952933 999999457168842863 999999964569852675 999999672127712140 999999461436095201 999999517666939839 999999498988989955 999999669568337385 999999952376084848 999999478727957376 999999754650972746 999999496017948996 999999439108000108 999999495765857444 999999574271452438 99999903...
output:
0 0 9 9 9 0 9 0 0 0 9 0 0 9 9 9 9 0 0 9 0 9 0 9 9 0 0 9 0 0 0 0 9 0 9 9 0 9 0 9 0 9 0 0 9 9 0 0 9 0 0 0 0 0 9 9 9 0 9 9 9 9 9 0 0 9 0 9 9 9 0 0 0 0 9 9 0 9 0 9 0 9 9 9 9 0 9 0 0 0 9 9 9 0 0 9 0 9 9 0 9 0 9 9 9 0 0 0 9 9 9 9 9 0 9 0 0 0 9 9 9 0 0 0 0 9 0 0 0 9 9 0 9 0 9 0 9 0 9 0 0 9 9 0 9 9 0 9 9 9 ...
result:
ok 100000 numbers
Test #29:
score: 0
Accepted
time: 17ms
memory: 3676kb
input:
100000 960000001999999971 960000001999999953 960000001999999974 960000002000000021 960000002000000027 960000002000000079 960000001999999914 960000002000000054 960000001999999979 960000002000000013 960000001999999921 960000002000000008 960000001999999983 960000002000000033 960000001999999925 96000000...
output:
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 ...
result:
ok 100000 numbers
Test #30:
score: 0
Accepted
time: 18ms
memory: 3868kb
input:
100000 960000002799999908 960000002800000061 960000002799999910 960000002800000041 960000002799999990 960000002799999910 960000002800000016 960000002800000043 960000002800000044 960000002799999972 960000002800000056 960000002800000059 960000002799999923 960000002800000051 960000002799999930 96000000...
output:
9 0 9 0 9 9 0 0 0 9 0 0 9 0 9 9 0 9 9 0 9 9 0 9 9 9 0 0 0 9 9 0 9 0 0 9 9 0 9 0 0 9 9 0 9 0 0 9 0 9 9 9 9 9 0 9 9 9 9 9 9 0 9 0 9 0 0 9 0 9 0 0 9 9 9 9 0 9 0 0 9 9 0 0 0 0 0 0 0 0 9 0 9 0 0 0 0 9 9 0 0 0 9 9 9 0 0 0 0 9 9 9 9 0 0 9 9 9 0 9 0 9 9 0 0 0 0 0 9 9 0 0 9 0 9 0 0 9 9 9 9 0 0 9 9 0 0 0 0 0 ...
result:
ok 100000 numbers
Test #31:
score: 0
Accepted
time: 10ms
memory: 3780kb
input:
100000 960000004399999946 960000004399999934 960000004399999927 960000004400000027 960000004400000059 960000004400000033 960000004400000003 960000004400000074 960000004399999992 960000004400000067 960000004400000099 960000004399999953 960000004399999915 960000004399999986 960000004399999960 96000000...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok 100000 numbers
Test #32:
score: 0
Accepted
time: 18ms
memory: 3804kb
input:
100000 960000005200000052 960000005200000062 960000005200000045 960000005199999980 960000005199999929 960000005200000081 960000005199999952 960000005200000085 960000005200000069 960000005199999940 960000005199999915 960000005200000060 960000005200000022 960000005199999907 960000005200000035 96000000...
output:
9 9 9 0 0 9 0 9 9 0 0 9 9 0 9 9 0 9 9 0 0 0 0 0 9 9 9 0 9 9 9 9 0 9 0 9 9 9 0 0 9 0 9 9 9 9 0 9 0 0 9 9 9 9 9 9 9 9 9 0 9 0 9 9 9 0 9 9 9 0 0 0 9 0 9 9 0 0 0 9 0 0 0 9 9 0 9 0 0 0 9 0 0 0 0 9 0 0 9 9 9 0 9 0 9 9 9 9 9 0 0 9 9 9 9 9 9 9 9 0 0 0 0 0 9 0 0 0 9 0 0 0 9 9 0 0 9 9 9 0 9 0 9 9 9 0 9 9 9 9 ...
result:
ok 100000 numbers
Test #33:
score: 0
Accepted
time: 17ms
memory: 3800kb
input:
100000 960000006800000022 960000006799999942 960000006800000104 960000006799999961 960000006799999996 960000006800000004 960000006800000071 960000006799999932 960000006800000008 960000006800000010 960000006799999954 960000006800000059 960000006799999971 960000006800000107 960000006799999942 96000000...
output:
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 ...
result:
ok 100000 numbers
Test #34:
score: 0
Accepted
time: 18ms
memory: 3668kb
input:
100000 960000007600000030 960000007600000021 960000007599999941 960000007599999971 960000007599999952 960000007600000115 960000007600000093 960000007600000066 960000007599999929 960000007600000068 960000007600000110 960000007599999924 960000007600000037 960000007600000053 960000007600000048 96000000...
output:
0 0 9 9 9 0 0 0 9 0 0 9 0 0 0 9 0 9 9 0 0 0 9 9 0 0 0 9 0 9 0 9 9 0 9 9 9 9 9 0 9 9 9 0 9 0 9 0 0 9 9 0 9 9 9 9 0 9 0 9 9 0 9 0 9 0 0 9 0 0 9 9 9 9 0 9 0 0 0 0 9 0 9 0 0 0 0 0 9 0 0 0 9 9 0 0 9 9 9 0 9 9 0 9 9 0 9 9 0 9 0 9 0 0 0 0 0 9 0 9 9 0 0 0 9 0 9 9 0 0 9 9 9 0 0 9 0 9 0 0 9 0 9 9 0 0 0 0 0 9 ...
result:
ok 100000 numbers
Test #35:
score: 0
Accepted
time: 14ms
memory: 3820kb
input:
100000 960000009200000081 960000009200000027 960000009200000029 960000009200000030 960000009200000076 960000009199999938 960000009199999954 960000009200000094 960000009200000048 960000009200000054 960000009200000061 960000009200000088 960000009199999975 960000009199999990 960000009199999968 96000000...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok 100000 numbers
Test #36:
score: 0
Accepted
time: 18ms
memory: 3928kb
input:
100000 960000009999999976 960000010000000030 960000009999999964 960000010000000084 960000010000000017 960000010000000124 960000009999999942 960000010000000043 960000010000000026 960000009999999986 960000010000000055 960000010000000018 960000009999999940 960000010000000045 960000010000000077 96000001...
output:
0 9 0 9 0 9 0 9 0 0 9 0 0 9 9 9 9 9 9 0 0 9 0 9 9 9 0 9 0 0 9 9 0 9 9 0 0 0 9 9 0 9 0 0 9 0 9 0 9 0 9 0 0 9 9 9 9 0 9 0 9 9 9 0 9 0 0 9 0 0 0 0 9 9 0 9 9 9 9 0 9 9 0 0 9 0 0 9 9 9 0 9 0 0 9 9 0 9 9 0 0 0 9 9 0 0 9 0 0 0 0 0 9 9 0 0 0 0 9 9 9 0 0 0 9 9 9 9 9 0 9 0 9 0 0 9 9 0 9 0 0 9 9 9 9 0 0 9 0 0 ...
result:
ok 100000 numbers
Test #37:
score: 0
Accepted
time: 14ms
memory: 3868kb
input:
100000 960000011600000057 960000011599999976 960000011600000076 960000011600000080 960000011600000092 960000011600000102 960000011599999978 960000011600000048 960000011600000044 960000011600000108 960000011600000086 960000011599999953 960000011600000049 960000011599999995 960000011600000068 96000001...
output:
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 ...
result:
ok 100000 numbers
Test #38:
score: 0
Accepted
time: 19ms
memory: 3816kb
input:
100000 960000012400000086 960000012400000004 960000012399999978 960000012400000092 960000012400000090 960000012399999993 960000012400000110 960000012399999994 960000012400000032 960000012400000056 960000012399999965 960000012400000006 960000012400000040 960000012399999990 960000012400000087 96000001...
output:
0 9 9 0 0 9 0 9 9 0 9 9 9 9 0 0 0 9 0 0 9 0 0 9 9 0 9 9 0 9 9 9 9 0 9 9 0 0 9 0 0 9 9 9 9 0 0 9 9 9 9 0 9 9 0 9 0 9 0 9 9 0 9 9 9 9 9 0 0 9 9 9 0 9 0 9 9 9 9 9 9 9 9 0 9 0 0 0 0 9 0 0 9 0 0 0 9 9 0 0 0 0 0 0 0 0 0 9 9 0 0 9 9 0 9 0 9 0 0 0 0 0 0 9 0 0 0 0 9 9 9 0 9 9 9 0 0 9 9 0 9 9 9 9 9 0 0 9 9 9 ...
result:
ok 100000 numbers
Test #39:
score: 0
Accepted
time: 17ms
memory: 3816kb
input:
100000 960000014000000025 960000014000000129 960000014000000057 960000013999999983 960000014000000036 960000013999999975 960000013999999967 960000014000000106 960000013999999953 960000014000000054 960000014000000065 960000014000000069 960000014000000063 960000014000000093 960000014000000030 96000001...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok 100000 numbers
Test #40:
score: 0
Accepted
time: 18ms
memory: 4072kb
input:
100000 960000014799999996 960000014799999976 960000014799999994 960000014800000027 960000014799999968 960000014800000070 960000014800000068 960000014799999979 960000014800000068 960000014800000065 960000014800000150 960000014800000157 960000014800000061 960000014800000072 960000014800000149 96000001...
output:
0 0 0 0 0 9 9 0 9 9 9 9 9 9 9 0 0 9 0 9 9 0 9 9 9 0 9 0 0 0 0 9 0 0 9 0 9 9 9 9 0 0 9 9 9 9 0 0 0 9 0 0 9 9 9 9 0 9 9 0 9 0 9 0 0 0 9 9 0 9 0 9 0 9 0 9 9 0 9 9 0 9 0 0 9 0 9 0 0 9 0 9 9 0 0 9 0 9 9 0 0 0 0 0 0 9 9 0 0 0 9 0 9 0 0 0 9 9 0 0 0 9 0 0 0 9 9 9 0 0 9 9 9 0 9 0 0 0 9 0 0 9 0 0 0 0 9 0 9 0 ...
result:
ok 100000 numbers
Test #41:
score: 0
Accepted
time: 10ms
memory: 4008kb
input:
100000 960000016400000004 960000016400000057 960000016400000023 960000016400000085 960000016400000104 960000016400000126 960000016400000144 960000016400000017 960000016400000101 960000016400000089 960000016400000034 960000016400000098 960000016400000141 960000016400000007 960000016400000073 96000001...
output:
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 ...
result:
ok 100000 numbers
Test #42:
score: 0
Accepted
time: 18ms
memory: 4072kb
input:
100000 960000017200000131 960000017200000032 960000017200000156 960000017200000081 960000017200000091 960000017200000000 960000017199999980 960000017200000141 960000017199999985 960000017200000155 960000017200000027 960000017200000175 960000017200000054 960000017199999997 960000017200000045 96000001...
output:
0 9 0 0 0 9 9 0 9 0 9 0 9 9 9 0 9 0 0 9 0 9 0 0 0 9 9 0 0 9 9 9 9 9 9 0 9 0 0 9 0 9 9 9 9 9 9 9 0 0 9 0 9 9 0 9 9 9 9 9 0 9 0 0 9 0 9 0 9 9 0 9 9 0 9 9 9 9 9 9 9 0 0 0 9 0 0 9 9 9 0 9 9 0 0 0 0 0 9 0 9 0 9 9 9 0 0 0 0 9 9 9 9 9 9 0 9 0 0 0 0 9 0 9 0 0 9 9 0 0 0 0 9 9 9 0 9 9 9 0 0 0 0 0 9 0 9 9 0 9 ...
result:
ok 100000 numbers
Test #43:
score: 0
Accepted
time: 14ms
memory: 3864kb
input:
100000 960000018800000157 960000018800000047 960000018800000047 960000018800000060 960000018800000003 960000018800000125 960000018800000164 960000018800000165 960000018800000108 960000018800000070 960000018800000053 960000018800000010 960000018800000095 960000018800000150 960000018800000164 96000001...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 ...
result:
ok 100000 numbers
Test #44:
score: 0
Accepted
time: 18ms
memory: 3820kb
input:
100000 960000019600000072 960000019600000020 960000019600000086 960000019600000013 960000019600000072 960000019600000049 960000019600000137 960000019600000016 960000019600000195 960000019600000172 960000019600000070 960000019600000082 960000019600000069 960000019600000002 960000019600000092 96000001...
output:
0 0 0 0 0 0 9 0 9 9 0 0 0 0 0 0 0 9 9 0 0 9 0 9 0 9 9 0 0 9 0 9 0 9 0 0 0 0 0 0 9 0 9 9 0 9 9 9 0 0 0 9 0 9 9 0 0 0 0 9 0 9 0 0 9 9 0 0 9 9 9 9 9 9 0 0 0 9 0 9 0 0 9 9 9 9 9 9 0 0 9 0 0 0 9 9 0 9 0 9 0 9 0 0 0 0 9 0 0 0 9 9 9 0 9 9 0 9 0 0 9 0 0 0 0 0 9 9 0 9 0 0 0 0 9 9 0 9 0 9 0 9 9 9 0 0 0 0 0 9 ...
result:
ok 100000 numbers
Test #45:
score: 0
Accepted
time: 17ms
memory: 3760kb
input:
100000 960000021200000149 960000021200000147 960000021200000142 960000021200000186 960000021200000113 960000021200000049 960000021200000123 960000021200000135 960000021200000158 960000021200000073 960000021200000050 960000021200000144 960000021200000051 960000021200000102 960000021200000182 96000002...
output:
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 ...
result:
ok 100000 numbers
Test #46:
score: 0
Accepted
time: 18ms
memory: 3788kb
input:
100000 960000022000000104 960000022000000164 960000022000000179 960000022000000149 960000022000000201 960000022000000189 960000022000000112 960000022000000120 960000022000000107 960000022000000196 960000022000000126 960000022000000124 960000022000000053 960000022000000083 960000022000000091 96000002...
output:
9 0 0 0 0 0 9 9 9 0 9 9 9 9 9 0 9 9 0 0 9 9 9 0 0 9 9 9 9 0 0 9 0 0 9 9 0 9 9 9 0 9 9 0 9 0 0 0 9 9 0 9 9 0 9 9 9 9 0 9 9 0 0 9 0 9 0 9 0 9 0 9 0 0 0 0 0 9 9 0 9 9 9 0 9 0 9 0 9 0 0 0 9 0 9 0 0 9 0 0 0 9 9 0 9 9 0 9 9 9 9 0 9 0 9 0 0 0 0 9 9 0 0 9 0 9 0 9 0 9 9 9 9 9 9 9 0 0 0 9 9 0 9 0 9 0 0 0 0 9 ...
result:
ok 100000 numbers
Test #47:
score: 0
Accepted
time: 10ms
memory: 3672kb
input:
100000 960000023600000171 960000023600000112 960000023600000093 960000023600000234 960000023600000065 960000023600000154 960000023600000146 960000023600000070 960000023600000092 960000023600000143 960000023600000147 960000023600000182 960000023600000067 960000023600000175 960000023600000085 96000002...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok 100000 numbers
Test #48:
score: 0
Accepted
time: 14ms
memory: 4008kb
input:
100000 960000024400000071 960000024400000135 960000024400000106 960000024400000091 960000024400000156 960000024400000243 960000024400000180 960000024400000065 960000024400000140 960000024400000055 960000024400000092 960000024400000096 960000024400000197 960000024400000161 960000024400000220 96000002...
output:
0 0 0 0 9 9 9 0 0 0 0 0 9 9 9 9 0 0 9 9 0 9 9 0 9 0 0 9 0 0 9 9 9 9 9 0 0 0 0 9 0 0 9 9 9 0 9 0 0 9 0 0 9 0 9 9 9 9 9 9 0 0 0 0 0 0 0 0 0 9 0 9 0 0 9 9 9 0 0 9 9 0 9 0 9 0 0 0 9 9 9 0 9 9 9 9 9 9 0 9 0 9 9 9 9 0 0 9 0 0 0 9 0 9 9 9 9 0 0 9 9 0 0 9 0 0 9 0 0 9 0 0 0 9 0 0 9 0 0 9 0 9 0 0 0 9 9 0 9 9 ...
result:
ok 100000 numbers
Test #49:
score: 0
Accepted
time: 14ms
memory: 3780kb
input:
100000 960000026000000197 960000026000000185 960000026000000097 960000026000000217 960000026000000212 960000026000000232 960000026000000173 960000026000000096 960000026000000104 960000026000000192 960000026000000133 960000026000000226 960000026000000253 960000026000000139 960000026000000214 96000002...
output:
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 ...
result:
ok 100000 numbers
Test #50:
score: 0
Accepted
time: 18ms
memory: 3672kb
input:
100000 960000026800000278 960000026800000210 960000026800000203 960000026800000177 960000026800000259 960000026800000142 960000026800000114 960000026800000171 960000026800000279 960000026800000146 960000026800000151 960000026800000226 960000026800000254 960000026800000170 960000026800000172 96000002...
output:
0 0 0 9 0 9 9 9 0 9 9 0 0 9 9 0 0 0 9 9 0 9 0 9 0 9 9 9 0 0 0 9 9 0 9 0 9 0 0 0 0 0 0 0 0 9 0 9 0 0 0 0 9 9 0 9 9 0 9 9 9 9 9 9 9 9 9 0 0 9 9 9 0 0 0 9 9 0 0 0 9 0 9 9 9 9 0 0 0 0 9 0 9 9 0 9 0 9 0 0 0 9 9 0 0 0 9 9 9 9 0 0 9 0 0 0 0 0 9 9 9 0 0 0 0 0 0 9 0 9 9 9 9 9 0 9 0 9 9 0 0 0 9 9 9 0 0 9 9 0 ...
result:
ok 100000 numbers