QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#188209 | #7230. Fraction Factory | ucup-team004 | AC ✓ | 231ms | 3948kb | C++20 | 4.5kb | 2023-09-25 16:46:07 | 2023-09-25 16:46:07 |
Judging History
answer
#include <bits/stdc++.h>
using i64 = long long;
i64 mul(i64 a, i64 b, i64 m) {
i64 c = a * b - i64(1.0L * a * b / m) * m;
c %= m;
if (c < 0) {
c += m;
}
return c;
}
i64 power(i64 a, i64 b, i64 m) {
i64 res = 1 % m;
for (; b; b >>= 1, a = mul(a, a, m))
if (b & 1)
res = mul(res, a, m);
return res;
}
bool isprime(i64 n) {
if (n < 2)
return false;
static constexpr int A[] = {2, 3, 5, 7, 11, 13, 17, 19, 23};
int s = __builtin_ctzll(n - 1);
i64 d = (n - 1) >> s;
for (auto a : A) {
if (a == n)
return true;
i64 x = power(a, d, n);
if (x == 1 || x == n - 1)
continue;
bool ok = false;
for (int i = 0; i < s - 1; ++i) {
x = mul(x, x, n);
if (x == n - 1) {
ok = true;
break;
}
}
if (!ok)
return false;
}
return true;
}
std::vector<std::pair<i64, int>> factorize(i64 n) {
std::vector<i64> p;
std::function<void(i64)> f = [&](i64 n) {
if (n <= 10000) {
for (int i = 2; i * i <= n; ++i)
for (; n % i == 0; n /= i)
p.push_back(i);
if (n > 1)
p.push_back(n);
return;
}
if (isprime(n)) {
p.push_back(n);
return;
}
auto g = [&](i64 x) {
return (mul(x, x, n) + 1) % n;
};
i64 x0 = 2;
while (true) {
i64 x = x0;
i64 y = x0;
i64 d = 1;
i64 power = 1, lam = 0;
i64 v = 1;
while (d == 1) {
y = g(y);
++lam;
v = mul(v, std::abs(x - y), n);
if (lam % 127 == 0) {
d = std::gcd(v, n);
v = 1;
}
if (power == lam) {
x = y;
power *= 2;
lam = 0;
d = std::gcd(v, n);
v = 1;
}
}
if (d != n) {
f(d);
f(n / d);
return;
}
++x0;
}
};
f(n);
std::sort(p.begin(), p.end());
std::vector<std::pair<i64, int>> ret;
for (int l = 0, r = 0; l < p.size(); l = r) {
while (r < p.size() && p[l] == p[r]) {
r++;
}
ret.emplace_back(p[l], r - l);
}
return ret;
}
i64 exgcd(i64 a, i64 b, i64 &x, i64 &y) {
if (!b) {
x = 1, y = 0;
return a;
}
i64 g = exgcd(b, a % b, y, x);
y -= a / b * x;
return g;
}
i64 inverse(i64 a, i64 m) {
i64 x, y;
exgcd(a, m, x, y);
return x;
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int n, m;
std::cin >> n >> m;
std::vector<i64> a(n), b(m);
for (int i = 0; i < n; i++) {
std::cin >> a[i];
}
for (int i = 0; i < m; i++) {
std::cin >> b[i];
}
int k;
std::cin >> k;
while (k--) {
i64 M;
std::cin >> M;
auto fact = factorize(M);
bool ok = true;
i64 ans = 0;
for (auto [p, e] : fact) {
i64 pe = 1;
for (int i = 0; i < e; i++) {
pe *= p;
}
i64 v = 1;
int k = 0;
for (int i = 0; i < n; i++) {
i64 x = a[i];
while (x % p == 0) {
x /= p;
k++;
}
v = mul(v, x, pe);
}
for (int i = 0; i < m; i++) {
i64 x = b[i];
while (x % p == 0) {
x /= p;
k--;
}
v = mul(v, inverse(x, pe), pe);
}
if (k < 0) {
ok = false;
break;
}
for (int i = 0; i < std::min(k, e); i++) {
v = mul(v, p, pe);
}
ans = (ans + mul(v, inverse(M / pe, pe), pe) * (M / pe)) % M;
}
if (ok) {
std::cout << ans << "\n";
} else {
std::cout << "DIVISION BY ZERO\n";
}
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3864kb
input:
3 2 8 11 14 9 12 4 8 9 10 11
output:
4 DIVISION BY ZERO 4 0
result:
ok 4 lines
Test #2:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
2 2 1 2 4 3 10 5 7 11 13 17 19 23 29 31 37
output:
1 6 2 11 3 16 4 5 26 31
result:
ok 10 lines
Test #3:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
4 6 111111111111111111 1000000000000000000 1000000000000000 135792468013579246 10000000000000000 100000000000000 999999999999999999 123456789123456789 239239239932932932 1357924680 10 1161978962132362 539566136338457734 758923339452654441 655309120486827715 84306884606421160 911731869459297905 82243...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 5719954405760135 DIVISION BY ZERO 892796932685565430 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO
result:
ok 10 lines
Test #4:
score: 0
Accepted
time: 3ms
memory: 3788kb
input:
8 5 1 1 1 1 1 1 1 1 1 1 1 1 1 33 519802560097260385 442596183335011282 688602833488446065 473642221531625139 336139490404077831 411067731885836516 348529798548197702 559996805776212339 324766630988403651 740258357792871391 670233519941996489 131286432198704669 193327986539006166 922036187121404691 2...
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
result:
ok 33 lines
Test #5:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
2 1 999999929 999999937 999999937 3 999999929 999999937 999999866000004473
output:
0 999999929 999999929
result:
ok 3 lines
Test #6:
score: 0
Accepted
time: 1ms
memory: 3516kb
input:
20 20 598463 808739 504181 886643 804161 162703 42409 66179 479599 14939 435103 1278181 484019 1177019 553171 763423 1098221 628939 863377 130349 291877 228847 1150139 1008017 1057853 312107 818371 226643 446309 629569 142223 517373 90989 415073 120749 1075619 1058041 893653 454919 25747 50 1299899 ...
output:
602146 881975 266900 136515 266900 1071154 693499 244967 1060614 977384 26884 364814 850337 787165 919943 635052 482194 601195 841086 266212 754504 1079624 458235 34996 26072 865453 391778 406195 930981 78961 1104083 65599 602146 161608 949246 1267514 1071154 678271 220844 602955 244967 967494 22860...
result:
ok 50 lines
Test #7:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
500 500 387371 1004137 65647 352021 112069 456623 45863 104911 687151 522061 1042183 57991 428801 1110817 45263 961871 134443 376589 395377 161459 886381 1085753 674761 729041 444007 1218449 309937 594179 58049 10453 88117 434933 1177619 1086703 572087 675629 387791 640621 547453 594421 657313 12257...
output:
383179 888275 182734 185609 872863 59626 837128 391943 1194073 750514 634775 775567 1239102 407018 987868 695749 777370 215628 412673 272425 775567 1221783 1200408 775567 845048 827229 426950 838606 845048 626180 739737 383179 925291 998734 591167 870060 591167 845048 775567 964211 775567 592363 998...
result:
ok 50 lines
Test #8:
score: 0
Accepted
time: 27ms
memory: 3648kb
input:
5000 5000 46237 985451 469367 284423 516653 397469 1143269 530183 1181183 330641 410353 101561 22067 686837 488339 1044697 711523 1042399 1092331 915697 1089047 1004527 1181923 1297421 865771 785207 833179 1046701 1138867 431077 1146709 1159127 419249 876041 486091 616799 301901 504001 889703 601189...
output:
815409 894989 6379 492271 185760 75492 1221630 1228920 878065 15324 78386 1219609 1238304 1241440 1010201 1203934 978181 944584 1010201 787803 244893 464400 583569 95906 45296 721934 518863 1286321 48086 798733 78386 271489 99969 221437 383353 1290376 908368 1078270 407153 815409 818442 177234 10650...
result:
ok 50 lines
Test #9:
score: 0
Accepted
time: 26ms
memory: 3680kb
input:
4843 4989 282311 1224131 288947 1381 708733 832957 592507 193441 643073 625763 197293 951781 993841 1247581 908377 1164409 820429 1131769 544199 1089133 362951 1139407 504983 453157 668141 1191947 666697 1182767 17317 825107 1051319 275083 415687 166669 1244357 287863 891647 135463 1194581 782263 22...
output:
686206 64764 587541 854266 1047316 142248 1037628 919664 699909 889977 519197 830228 170110 451078 273750 691678 284952 830228 370585 380037 1278741 1022439 336430 258606 1047316 15133 298290 188086 273750 760625 911592 759463 862385 297412 144024 164772 442621 885396 1014203 316106 919664 171896 60...
result:
ok 50 lines
Test #10:
score: 0
Accepted
time: 1ms
memory: 3792kb
input:
1 1 999999999426987301 999999999446177371 50 999999999230595023 999999999459528149 999999999055719173 999999999347239897 999999999080279609 999999999817973431 999999999308902993 999999999390597539 999999999416910001 999999999447428923 999999999004310363 999999999974038457 999999999094972633 99999999...
output:
756632012721641517 457106544405250940 440266340208005663 324513075591986058 499343753384200875 985938662000008459 744506450645645896 739813282899850512 783165688841699050 3322275061445653 640237529836849823 14791088426240426 91526031664494402 122173425113395265 135014011813139239 272785455764605788 ...
result:
ok 50 lines
Test #11:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
111 55 999999999437952739 999999999727121671 999999999952083791 999999999603858779 999999999035103917 999999999148643791 999999999192594061 999999999300412063 999999999128184707 999999999464910839 999999999460599923 999999999870821689 999999999980529061 999999999601005607 999999999211292561 99999999...
output:
708901826487331864 968740921462851986 528434535223783010 925628093565076668 526894146655099327 727396951083284217 45912440578684688 480612489151189098 504337517746168956 294993557461828069 560169763847527076 277064786474648892 321763466459407739 109945913705886746 988379719199747304 1569602508498478...
result:
ok 50 lines
Test #12:
score: 0
Accepted
time: 9ms
memory: 3884kb
input:
617 1172 999999999422370301 999999999279606739 999999999378912107 999999999364760257 999999999451911457 999999999938125993 999999999975745057 999999999065716031 999999999100397237 999999999530841719 999999999401480507 999999999238898551 999999999569670571 999999999560191109 999999999220028347 999999...
output:
824586476778382647 478890352822045637 686218461446538755 502090793279450771 394983069806446996 923532826225112601 864465032116294624 779905508741707265 903087500023092787 428436909658805039 239470801026877319 300887758894243769 349742234633818613 84753050449013963 56049586974938995 12135540187201907...
result:
ok 50 lines
Test #13:
score: 0
Accepted
time: 31ms
memory: 3636kb
input:
4494 4920 999999999067434397 999999999269373331 999999999907980557 999999999530340857 999999999124595467 999999999168087251 999999999730737389 999999999331612633 999999999279031469 999999999328851233 999999999831783637 999999999543585427 999999999133465261 999999999667696567 999999999175495691 99999...
output:
198935648876742382 694325433912839534 351254060755570076 831073884976136269 407353710233817702 338238026247663782 306378523377933445 818714774356353280 906243522491418926 867399791448174488 707273994099362460 708101482059544384 87038106095552003 194318080401319673 298181879329306649 6552434725303427...
result:
ok 50 lines
Test #14:
score: 0
Accepted
time: 29ms
memory: 3900kb
input:
5000 5000 999999999280582667 999999999430144927 999999999621742387 999999999735098749 999999999864759527 999999999270579247 999999999495623849 999999999764228761 999999999168685303 999999999274868833 999999999420287267 999999999023317709 999999999050968213 999999999048439217 999999999596454203 99999...
output:
113776408893401412 749914750049534368 181644927923148832 799557251986405560 407976607821476607 412756092597615130 757821607726535946 311667021889869068 288950617997452359 770805464527200602 351892137846000340 607041955547440541 803186803439143161 236009152289366873 633055553846381543 738952398532960...
result:
ok 50 lines
Test #15:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
36 35 27 64 6 91 24 7 73 57 99 42 8 73 70 80 88 10 24 50 58 76 54 59 10 50 36 12 65 7 12 32 81 63 23 10 25 57 35 87 44 22 51 68 13 13 97 83 20 57 50 80 26 80 75 67 95 53 71 70 49 30 85 90 48 16 18 37 76 65 96 67 50 50 999999999427949167 999999999704949589 999999999557609507 999999999295222633 999999...
output:
747804889325795662 188003811165407649 217309273993744900 368232595702853574 827670646487309160 672020307154135282 84234857844696506 660680964009647475 943835241023926753 965492614085256119 95044668525121341 860981528114036180 746487653376257121 615433443159458709 380902367371537668 58203887179108566...
result:
ok 50 lines
Test #16:
score: 0
Accepted
time: 15ms
memory: 3908kb
input:
4999 4994 86 59 39 65 12 52 13 32 26 40 34 12 2 61 23 63 44 50 93 31 6 91 34 87 64 47 78 90 59 12 77 6 5 2 14 75 22 77 12 88 78 26 16 42 51 40 100 68 77 50 90 44 99 33 93 37 84 13 72 35 4 52 30 87 91 7 70 23 28 83 80 55 11 59 48 65 9 49 38 4 37 58 42 58 57 72 59 37 79 78 78 3 30 68 23 35 60 18 60 33...
output:
861723131063049679 95541078379334901 106164505334731654 807442073022110051 883631144466365780 848314277576703122 462061743142136614 989722242432740183 6108027258673396 867048465049627188 127155501785214902 355041522060440030 395852175430898337 432116982985081547 494379295142447492 807488088451816405...
result:
ok 50 lines
Test #17:
score: 0
Accepted
time: 35ms
memory: 3700kb
input:
4988 4989 854749883 585419399 715017419 876125792 75203803 27132450 908774208 22510083 474853935 381602083 965554714 601953629 805894096 755744947 40539219 198113370 861066872 132413051 620170177 376019746 423419898 164819970 355514133 289766712 150771516 885184197 375483998 759226209 708678504 6137...
output:
620768292406483252 311877342255813066 82974092796763066 725031014186609505 929091035947574843 547740946174668874 792916205350564043 175154443423041596 351079733598629215 726333941089938324 517551642521061732 466777105231939719 76578114564147936 728164196613538913 950881055317990914 96855420101207050...
result:
ok 50 lines
Test #18:
score: 0
Accepted
time: 11ms
memory: 3948kb
input:
5000 4987 3 5 1 3 3 6 3 3 10 8 9 6 4 3 2 6 1 1 2 6 9 6 4 8 4 2 1 8 10 4 2 3 1 10 3 5 5 1 3 8 4 5 4 1 1 2 3 3 9 6 4 10 2 7 1 6 7 5 3 1 9 8 8 10 6 10 8 1 3 1 6 1 7 8 3 5 3 8 5 1 1 9 7 3 10 2 6 3 10 3 1 7 7 1 8 9 10 2 2 5 5 2 2 2 1 4 3 4 5 6 2 10 7 5 7 3 1 4 10 5 1 5 8 3 10 9 7 7 4 7 10 2 8 10 8 5 4 7 ...
output:
351321620415086335 927428146834734452 218752774427774748 817223771722976704 234836800911611068 646492200549716885 35371599693950478 466808677308234919 289516333381936030 742853505424555792 635211796787056138 830927695525134788 607420811778435479 253665193657544724 820459723312652789 2605755226926721...
result:
ok 50 lines
Test #19:
score: 0
Accepted
time: 14ms
memory: 3708kb
input:
4987 5000 3 26 16 21 48 9 33 7 18 42 36 18 30 14 22 4 40 37 36 50 1 32 28 41 11 26 7 36 27 2 46 38 14 6 23 27 23 23 39 9 29 33 31 25 22 6 31 5 14 25 13 32 2 25 48 9 22 49 44 18 12 37 41 1 39 12 24 46 35 26 26 46 35 26 13 43 45 32 34 21 13 24 15 41 38 2 50 10 35 36 22 4 8 47 9 17 17 38 25 21 10 20 41...
output:
326719017200388000 219293875829586668 991568189324207521 496969090505119990 129534692242296342 12422144174968560 201015008531430796 412990577091052067 300625697261622531 979154323902162544 932660596736096230 562811740637350344 621642952691923722 209254816262692640 890833938407302227 4548445288984003...
result:
ok 50 lines
Test #20:
score: 0
Accepted
time: 61ms
memory: 3644kb
input:
4979 4993 145279705638272397 139412126440411827 910703813948079246 88995563250416747 98060984156598767 698835874365051137 783095494460896214 401987570065874386 665927783241087453 458658464282754627 519443898741165378 355409608503747011 816204269553866923 428027305585424178 17748471866477405 99691374...
output:
492148070346272777 195344146466212931 946625977450936691 121108067224727205 606609466813412418 942136113615166657 79358054495331366 979238810853364305 481516130204784279 986756615296772522 831291851565207989 146397349902743872 799046001619206708 751593900865884856 124720899952878975 8767892190225545...
result:
ok 50 lines
Test #21:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
223 203 92 95 37 4 74 65 95 17 74 63 65 91 16 75 81 75 71 5 68 54 68 94 44 60 82 31 70 19 88 6 56 97 34 17 40 80 38 90 84 47 99 10 95 65 27 13 90 75 20 77 74 54 34 67 52 46 34 100 4 56 36 8 72 89 61 87 54 8 51 15 50 37 23 21 65 38 30 67 26 55 22 5 69 88 26 34 13 16 70 1 73 6 48 44 65 17 50 61 76 49 ...
output:
0 0 82 DIVISION BY ZERO 0 0 DIVISION BY ZERO DIVISION BY ZERO 0 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO 0 0 0 DIVISION BY ZERO 0 DIVISION BY ZERO 0 0 0 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ...
result:
ok 50 lines
Test #22:
score: 0
Accepted
time: 22ms
memory: 3652kb
input:
1616 1161 5733050785005706 480512315244456389 580510236383793856 34343501187777744 114020267730960606 162014684985935227 869296532749091392 404128991469354097 502388444808869924 82336265848401299 350535296505082508 448797879244363394 360789034110915700 607050767731675629 394572378554626673 443244079...
output:
DIVISION BY ZERO 55698164370739638 51589839538127933 116235186778309740 26779150352017040 387429652081794366 DIVISION BY ZERO DIVISION BY ZERO 187671718914705256 31378736146243044 209356159491127622 378742960620140340 392421540495399100 180943476473347833 31257863350338692 667010525235027645 1738648...
result:
ok 50 lines
Test #23:
score: 0
Accepted
time: 27ms
memory: 3612kb
input:
3282 2828 999999999999999645 999999999999999398 999999999999999129 999999999999999252 999999999999999115 999999999999999192 999999999999999762 999999999999999853 999999999999999015 999999999999999407 999999999999999236 999999999999999693 999999999999999643 999999999999999272 999999999999999146 99999...
output:
0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 0 DIVISION BY ZERO 0 DIVISION BY ZERO 0 DIVISION BY ZERO 0 DIVISION BY ZERO 618535060455611888 0 268158501369612126 DIVISION BY ZERO DIVISION BY ZERO 369643257962973030 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO 0 7379...
result:
ok 50 lines
Test #24:
score: 0
Accepted
time: 55ms
memory: 3664kb
input:
4949 4555 999999999999996871 999999999999948746 999999999999944668 999999999999981852 999999999999999555 999999999999933072 999999999999941233 999999999999972278 999999999999915264 999999999999954472 999999999999967785 999999999999938942 999999999999961486 999999999999924573 999999999999999259 99999...
output:
387878196423060753 DIVISION BY ZERO 610132372847981984 DIVISION BY ZERO 831428608773532164 DIVISION BY ZERO 420347426831696028 465687410197954625 DIVISION BY ZERO 337585348386115330 361428652052584656 DIVISION BY ZERO 74409648516962160 184100044888311864 19666094906877335 647401956549841890 44599636...
result:
ok 50 lines
Test #25:
score: 0
Accepted
time: 58ms
memory: 3744kb
input:
4849 4382 999999999995753512 999999999998317908 999999999995045733 999999999993676669 999999999990532420 999999999999909230 999999999996587418 999999999999866591 999999999993808123 999999999992528456 999999999995050296 999999999994375990 999999999995715054 999999999992265528 999999999991358124 99999...
output:
388580071533621651 201657521908573824 646259674137097167 560879485937539860 147721703020135050 929609230494133042 789845723371910535 242597095870497400 DIVISION BY ZERO 452795572595442804 411780637351801155 DIVISION BY ZERO 305014012746868656 DIVISION BY ZERO DIVISION BY ZERO 8921445188334700 359339...
result:
ok 50 lines
Test #26:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
15 10 81 43 86 49 41 30 69 94 51 64 60 98 10 37 98 59 62 15 49 37 68 54 86 9 97 50 14 5 38 78 60 96 27 47 46 54 35 30 88 11 63 24 15 67 89 59 7 62 17 97 31 62 8 58 2 18 50 41 2 95 61 58 40 73 82 23 80 46 22 9 59 6 40 59 23 69
output:
0 0 32 36 0 0 18 0 0 18 0 0 8 8 0 0 0 18 12 DIVISION BY ZERO 0 DIVISION BY ZERO 15 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 22 0 0 0 0 0 70 59 22 0 4 0 0 0 0 8 0 DIVISION BY ZERO 0 0 DIVISION BY ZERO 0 0
result:
ok 50 lines
Test #27:
score: 0
Accepted
time: 53ms
memory: 3560kb
input:
25 27 984348859035004913 983375325612877523 792784540975539288 983814196527090889 987822967307273267 993333873686524151 989626900109732161 988593104624425117 988343394740807333 988723965727308001 986309955817069321 992186158925818027 984521978857053881 990668407805337577 981104836920341041 467254662...
output:
DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 952504447603036342 0 984258455713505033 673120288858858831 496877878730612574 665257567773275663 649100258213494149 394939483789747337 935426345223172420 0 DIVISION BY ZERO DIVISION BY ZERO 606840371889025921 13704214510244982 0 198597543693390960...
result:
ok 50 lines
Test #28:
score: 0
Accepted
time: 60ms
memory: 3856kb
input:
78 81 996359497065800611 985707493224666371 460447137170546734 960250806790462531 361759962870131208 163132872903812207 142509239241473941 510919179562797225 513383200483912256 993770777611534157 744324184787883533 349389596260141590 366233876724222681 545023372737265553 989973428340652499 999317118...
output:
385720192090553290 434728801261638318 0 0 DIVISION BY ZERO 111203255375607547 DIVISION BY ZERO 712504350453022140 791708357113061197 DIVISION BY ZERO 0 974242175654912642 DIVISION BY ZERO 773463933326657780 DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISI...
result:
ok 50 lines
Test #29:
score: 0
Accepted
time: 56ms
memory: 3636kb
input:
555 549 418933564459911442 621517776022621066 763552870775357146 926554233570209825 991987666688319443 340068291754090904 566713236270407401 944934667801523941 459315543997078790 493765293887748311 434009476268813323 827114933517368829 942155288313629635 616017723733308265 203147963174780711 8330413...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 141308827751673109 DIVISION BY ZERO 30039346500418712 0 DIVISION BY ZERO 0 118153415570022299 418709768167246600 93401291273576777 DIVISION BY ZERO DIVISION BY ZERO 364563799260473577 73523507368469...
result:
ok 50 lines
Test #30:
score: 0
Accepted
time: 76ms
memory: 3876kb
input:
1170 1245 339602378043349725 71063552569769955 221148159841448583 992646280984036410 661678259566084000 133332363852560936 468530206070440985 386824765618984142 860773918453962329 253905995982156588 328891751602337014 51602140568853368 218704470736438907 57016083246296212 688418673288116246 80116289...
output:
DIVISION BY ZERO DIVISION BY ZERO 528231052669468030 588201186130341029 853309626441444504 DIVISION BY ZERO DIVISION BY ZERO 33887831212067662 108519205556057801 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 0 292461091472085594 134879920342947002 955942623112929830 0 DIVISION BY ZERO 5211463...
result:
ok 50 lines
Test #31:
score: 0
Accepted
time: 92ms
memory: 3656kb
input:
3323 3311 262580034563002000 101717835393485367 977373299335290574 223949867783080438 689726337639751864 902657026867206464 211108439810305276 892248553101090368 885848855965762764 435183039608434203 20675369364023147 122417608224675970 995127272179602800 811532533115442335 303204487786559174 137294...
output:
0 0 865566293501980794 0 504718352236057633 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 39803860614017771 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 166798223164701778 DIVISION BY ZERO 189960784374788046 184347811499754131 DIVISION BY ZERO 128125757144601426 DIVIS...
result:
ok 50 lines
Test #32:
score: 0
Accepted
time: 111ms
memory: 3540kb
input:
4955 4949 565494718911868643 59435583536861931 718412500906444171 989575905632893127 429938544093897896 983104002965303929 333252373307269513 455168290978520811 954617897017941717 249884309128687659 805845672555649993 731896690797239836 995542372835315023 426955718466755493 342727486734310886 223444...
output:
593951857255935386 DIVISION BY ZERO 333737075982168905 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 758686883413497172 DIVISION BY ZERO DIVISION BY ZERO 134036446914770554 DIVISION BY ZERO 574597707455716022 DIVISION BY ZERO 534554195417949776 DIVISION BY ZERO 419948936429963311 DIVISION BY ZE...
result:
ok 50 lines
Test #33:
score: 0
Accepted
time: 6ms
memory: 3632kb
input:
4 4 553058120386116253 827486978397682051 794474548992767053 843106203729002701 511019506556967169 762376391510008997 766570858152070427 766570858152070427 50 766570858152070427 686498292951471851 829026992966799493 621665386068434657 787959703965647293 511019506556967169 876961308680733071 82748697...
output:
DIVISION BY ZERO 267067423165159060 731719900962093688 487662756139367942 DIVISION BY ZERO DIVISION BY ZERO 530543450566880890 0 414932733574650803 300464407441653961 340482798685090547 709791819435807566 302307321341981063 635568288831131486 382331376480308386 103256439855698979 753407320018266378 ...
result:
ok 50 lines
Test #34:
score: 0
Accepted
time: 29ms
memory: 3828kb
input:
44 43 554607896957223227 284303902334000920 131998609440206431 756727975029078109 795955664098225199 172920243380985971 886310103815900009 577204306085770397 783787661024466641 800109285327953274 761952215091169601 546572745725720783 817571629310435023 787767690609657887 74071936272226725 7074495174...
output:
117779346830329668 DIVISION BY ZERO DIVISION BY ZERO 180658624778656983 DIVISION BY ZERO DIVISION BY ZERO 580983093659406544 DIVISION BY ZERO 463542657797144490 710262512441687950 0 DIVISION BY ZERO 147187447853960888 234740085587139007 DIVISION BY ZERO DIVISION BY ZERO 738573817089599980 0 DIVISION...
result:
ok 50 lines
Test #35:
score: 0
Accepted
time: 7ms
memory: 3884kb
input:
121 130 655417409336801119 632591364361916101 685976537104363861 95952470115948426 682705889785524367 336635604223715069 890350667296057237 807567515937837919 656000512396097423 661599103240648986 10718765418020467 7973926849197642 684506281127593409 85747359673108315 628155142016175047 777099178925...
output:
521419188010567974 DIVISION BY ZERO 0 56606692463273481 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 607662131203515918 DIVISION BY ZERO 532403944640350211 0 729671986429647272 0 0 DIVISION BY ZERO 419895857442676278 4714960...
result:
ok 50 lines
Test #36:
score: 0
Accepted
time: 14ms
memory: 3616kb
input:
900 899 420260354332076023 708714401420812275 50532752234716785 169951521641939564 301973315079042755 639734417084135440 846181962925237967 193599844312891518 798716762122517691 290006261902499160 416635995432407740 726673520767882651 537675702779811162 186479529076250579 783623578918766302 71902893...
output:
105740377069772084 DIVISION BY ZERO 569441540406533560 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 776043006890936393 0 0 176936020676990501 625323844300669660 297739404869089001 0 DIVISION BY ZERO DIVISION B...
result:
ok 50 lines
Test #37:
score: 0
Accepted
time: 22ms
memory: 3916kb
input:
4619 1218 856594287334066802 881862123462336833 859277265691398358 319814940612694745 61386170988936715 859630656323963553 145651701086875803 692046018700486337 289276589861128838 168989391491883318 567967927247763172 314346172321666964 458386682405099211 320137805050308892 574263444701190680 255217...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 228569183448005749 DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISIO...
result:
ok 50 lines
Test #38:
score: 0
Accepted
time: 60ms
memory: 3744kb
input:
4990 4995 806554650949025016 702749893921868250 944405950423328781 111263766975280314 19592389419672840 54315460017067937 114429971587296812 91396688760584786 390787699147442460 296772827941251148 751886926743614202 835277302549859674 832453284096581611 882420743003142497 769237065726442925 12731487...
output:
DIVISION BY ZERO DIVISION BY ZERO 241863933694036795 0 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 693486183433369338 346645991047848014 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 487860612191744162 289862560448902016 114484803554287274 DIVISION BY ZERO DIVISION BY ...
result:
ok 50 lines
Test #39:
score: 0
Accepted
time: 60ms
memory: 3648kb
input:
4995 4990 41144707024519671 85051554160024284 459006567375248505 502069799838867877 417561162257932739 703016732523683090 350679662514272868 198633097473766685 180501341122344414 849521792492630809 174936410781856377 628680800498630144 150471577933962893 455405577000947500 208292349222317938 1632442...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO 701193878210248611 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 341810123634664631 98473855663201195 DIVISION BY ZERO 246703538427849229 DI...
result:
ok 50 lines
Test #40:
score: 0
Accepted
time: 65ms
memory: 3648kb
input:
4995 4995 133846343142459738 550926351173556541 572075993020091594 276799333293325420 452061499629189585 840102734199479908 42661911259173924 249759511759018780 45731638908260380 376045393885984023 165305397896271007 569932747284327124 952366747919554279 277026028233552142 752911772619294320 8907296...
output:
0 171990553479712490 DIVISION BY ZERO DIVISION BY ZERO 93109779012915190 DIVISION BY ZERO 0 DIVISION BY ZERO 797965700784460119 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO 152166481059887178 127376902382806033 0 DIVISION BY ZERO DIVISION BY ZERO 0 553394158844382724 DIVISIO...
result:
ok 50 lines
Test #41:
score: 0
Accepted
time: 71ms
memory: 3704kb
input:
5000 5000 711961280762162391 803078213985077526 946887469665174356 274953178813213354 303536292288511381 395181547882666928 831272345963571972 748331125015388766 392503469497919395 922899033510898791 296597041711235852 305808572531292331 111417798744008564 365576517872595724 61101122685270918 800904...
output:
DIVISION BY ZERO 0 DIVISION BY ZERO 0 484228868959136199 DIVISION BY ZERO DIVISION BY ZERO 405865891925513991 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 445750292165090598 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 270364083185989251 215914843689907482 DIVISION BY ZE...
result:
ok 50 lines
Test #42:
score: 0
Accepted
time: 5ms
memory: 3604kb
input:
6 7 811526778676373733 875934223142302944 591112707874493873 828749474143596121 957441428592258058 139411358181044623 724547350540898049 527870764119403636 393527081088930388 826822134028420764 810419610960568808 656902546720540304 600715197659282349 50 598309065410123867 21468858879099953 239874559...
output:
70117515274888341 DIVISION BY ZERO 47260501149536399 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 4173707617416117 419600740128872893 DIVISION BY ZERO 4091478294775610 32000057638126613 73878611184003667 DIVISION BY ZERO DIVISION BY ZERO 78814965309285439 260283236771 DIVISION BY ZERO 49159276...
result:
ok 50 lines
Test #43:
score: 0
Accepted
time: 4ms
memory: 3628kb
input:
30 39 567753114748057100 584845017235040807 612405855562857115 28202519835053820 382675382852810950 280662890575583883 213573707918181330 637547693784132579 909116181831339919 330644328140553078 213058918648480229 288827910425154747 109567952475078134 981169350595171469 993287761225946637 7547767994...
output:
38448739028587960 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 4263013407102729 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 34875377534814 DIVISION BY ZERO DIVISION BY ZERO 63730553848112395 DIVISION BY ZERO DIVISION BY ZERO 38246198985 DIVISION BY ZERO...
result:
ok 50 lines
Test #44:
score: 0
Accepted
time: 5ms
memory: 3632kb
input:
200 222 700131745763506982 64819480663260251 339874676605101392 934586895229577409 835059452719001712 301368963536055150 853034901474183604 29392773901178317 214970297390131532 690169575089575280 986216646990963283 518599324478135399 232176502292710456 85226155790163196 392490484358096946 7205220795...
output:
0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 278817551484596489 1543032339945443 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 64565159577975988 DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 203641133391438004 0 ...
result:
ok 50 lines
Test #45:
score: 0
Accepted
time: 13ms
memory: 3876kb
input:
1023 1010 65609539061963404 510003143547014942 311925007011385320 195775060479125033 629815719833238050 35855216071704591 56064196995790204 965725004791292899 172817943509533783 183823811809444574 705053713550589663 240425420683415025 494381378150555548 462582909728489668 19825130054556585 481115987...
output:
98864417470817 DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 20336987892497641 DIVISION BY ZERO DIVISION BY ZERO 1957324463577354 11957646459265717 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 559176740...
result:
ok 50 lines
Test #46:
score: 0
Accepted
time: 55ms
memory: 3636kb
input:
4782 4811 143859783030208762 563844481156020809 975146265645192989 313104624797887286 919453544758770749 628023073198378091 273037507239500656 490786507989101262 288292529945260373 252975992047120856 257203885010978070 984661616138222351 84595571601294666 594363875259356393 524610868421598215 862873...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 0 13890755839 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 8176613567629322 0 DIVISION BY ZERO 370912268944184 775412836563211 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 25854038718023220 DIVISION BY ZERO 289454584139020 DIVISION...
result:
ok 50 lines
Test #47:
score: 0
Accepted
time: 50ms
memory: 3920kb
input:
3999 4001 901070224113256146 725111305846668816 13836469432896448 813224841618914053 137127849559734290 465344276680222082 843944569136518089 680742752662633672 349545420091985636 227659703118961367 432647476250927823 259879941494889032 196925585560781937 323142395003741359 252322834475832090 530127...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 16927430944263844 DIVISION BY ZERO 83138081232599493 10622821562774979 DIVISION...
result:
ok 50 lines
Test #48:
score: 0
Accepted
time: 53ms
memory: 3640kb
input:
4956 4945 434188370855901669 8448655306864613 914500955502903680 44165790209826495 898473333086753005 601734144848181204 941325808102948602 393994176798393604 366394315799545357 676646807308053444 679560569909073661 197266047434639251 612888273185793529 479860456593987916 973439522150080936 26067399...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 69404886523937595 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 3841317608161632 0 77594560088769222 355024841369844 0 DIVISION BY ZERO 0 0 DIVISION BY ZERO 0 DIVISION BY ZERO 300861325028619446 115436387465711...
result:
ok 50 lines
Test #49:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
9 8 796811556603478750 527306303124340387 308733366089229627 386372481311041330 570026369944044350 121235992711983424 553470818522376469 743405832096576936 96877366267110958 130034319098356704 709411469784048126 388483805193959268 855947907110887422 421054150805008311 470718982453056358 948323478509...
output:
DIVISION BY ZERO 45039536806727263 DIVISION BY ZERO DIVISION BY ZERO 114781332056568201 DIVISION BY ZERO 201667095086123716 DIVISION BY ZERO 102018332990581546 288076669242956670 40072151479451677 164056829478637789 136183136633781235 85956066735915556 DIVISION BY ZERO 460667993206986537 21446352419...
result:
ok 50 lines
Test #50:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
51 49 323522629240315951 314147968779365890 654810763778357408 223429412929026216 806416122334153301 446713128216374529 235959286453167917 133987366695206424 637285494477130408 98993230547496160 482466642238216211 442248897029989474 223696596112116693 120604150585064765 326616737095381109 3779393503...
output:
118529394319610142 124133721382712240 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 106288430734337625 DIVISION BY ZERO DIVISION BY ZERO 802447282726583487 DIVISION BY ZERO DIVISION BY ZERO 475979045542293011 698722127612096512 427026639528469277 22132312938622715 262745683867106928 11174869623...
result:
ok 50 lines
Test #51:
score: 0
Accepted
time: 5ms
memory: 3580kb
input:
331 324 112903172286280677 63931838462002240 685863998278816380 309307455517208114 85637131346554850 459156630613675872 397665350215316952 34272874627173923 791039033854954907 935558629119337387 763401063241469948 346827744457582663 412732567774190070 196397841378323806 137189386424172626 1538856068...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 24607878308717367 DIVISION BY ZERO 38535777658450020 DIVISION BY ZERO 53957379969021730 DIVISION BY ZERO 141507768676780974 403196542874332738 DIVI...
result:
ok 50 lines
Test #52:
score: 0
Accepted
time: 51ms
memory: 3900kb
input:
4923 4966 505632917740230597 592127377349475609 761456547473012471 898683472863528428 999792794557537962 425787912339164397 956493047969366504 495343313752299511 464198686977743528 873182892044452383 212539058217627468 906107716340512789 807949432240241043 802692363815975760 194847662764556993 62135...
output:
DIVISION BY ZERO 0 0 28436921139290527 DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 1943249917881277 DIVISION BY ZERO 0 DIVISION BY ZERO 0 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 32011452686413192 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ...
result:
ok 50 lines
Test #53:
score: 0
Accepted
time: 34ms
memory: 3624kb
input:
3111 3089 625288439917287265 725948469280030831 234330447536375372 542181004929914685 414296142815889660 491421431842507558 899590666618639778 232848508139848534 872830044685601163 253573862565274844 926153140120654231 391979984913454638 387252471857493052 109514434765670524 395654702186835945 54696...
output:
40763687034230616 0 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 1698486959759609 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO 708610850717616495 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DI...
result:
ok 50 lines
Test #54:
score: 0
Accepted
time: 52ms
memory: 3708kb
input:
4944 4949 416745902047956580 312918467003361060 4831297918904597 757545717787804790 156475635600208520 119137042151369991 43170498694178330 255254474433355645 800352769486153631 332678608087821888 581855957243283010 375925214062078176 484760747398642307 953121591153173080 558784967506906085 64021436...
output:
DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 29870213564314271 DIVISION BY ZERO DIVISION BY ZERO 0 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 463303148886215820 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO ...
result:
ok 50 lines
Test #55:
score: 0
Accepted
time: 2ms
memory: 3564kb
input:
72 69 787598425127080919 528970975130240390 907329780807243651 196965748256637646 245697322804238327 814705770591012443 357630263436934813 685709166572811109 662177002877990611 333206260617246874 737496334319530214 827086024971755692 459780028039126418 860827173487510658 724728765862559062 896015095...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO 0 DIVISION BY ZERO 0 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZE...
result:
ok 50 lines
Test #56:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
4 5 810589685978004647 687008162762052794 186597366975777043 953299372657040981 341234853980941349 866461149193272776 689218351262337259 606294954387780346 595977392905013548 50 682618058073834961 127084094123850721 330128258576104703 331656994094807953 101648158927128517 155943656226902291 20764674...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY...
result:
ok 50 lines
Test #57:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
1 1 906736356922149897 782272866036402026 50 104953537236619357 119979313260192061 571475291000862391 264439653669844609 378423835591496903 335733879276783529 141534858138952421 104028827362430399 827799034473508331 880087806072274249 891853153617830833 829107713540161033 160423145410516417 78894149...
output:
DIVISION BY ZERO 108017988170968018 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 621006483090845774 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISIO...
result:
ok 50 lines
Test #58:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
1 2 233814580559121122 919574433101731979 279894309939680007 50 272184313131456583 542401315359322133 659444284853667053 831956420476975651 358737067591361173 259993678786436881 669354156209690237 410926104023649071 879367197230567851 734236189669637551 263316177676258993 471698837983369711 58680913...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY...
result:
ok 50 lines
Test #59:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
2 1 772563492002993867 941533164566042939 881674315974993497 50 96450112152767021 568087239346633633 182027135906920531 628454267739580403 452868666074187121 164769370242806407 873237308366109203 898312778038785197 151526657381468459 843140623290389281 729190104565384891 680394459967547923 192422297...
output:
DIVISION BY ZERO DIVISION BY ZERO 48399987149419759 DIVISION BY ZERO DIVISION BY ZERO 147784137540605512 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 381748345976534977 265356006799659644 359847363207440925 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 159961075112532441 ...
result:
ok 50 lines
Test #60:
score: 0
Accepted
time: 6ms
memory: 3628kb
input:
1 1 695584460311841967 927445947082455956 50 402711604731420461 124274712705293023 87080662676795411 545066793578571281 560794658695029433 481725284279243719 134005422186298913 770317887582043207 627744097428115027 584251060698344149 165227740596502571 135560947900192859 231184618623536429 385734655...
output:
100677901182855116 93206034528969768 65310497007596559 136266698394642821 140198664673757359 361293963209432790 33501355546574729 577738415686532406 470808073071086271 146062765174586038 123920805447376929 101670710925144645 57796154655884108 289300991593992891 521512456897068108 42106742255326351 3...
result:
ok 50 lines
Test #61:
score: 0
Accepted
time: 5ms
memory: 3632kb
input:
1 1 722284678127932985 573086559455082517 50 588939814473545357 749362920703246447 293121030046679897 601615803896546291 846715085863005923 874038301927994069 625452357030100681 391378523095817447 606437328730590253 230345942694279313 215087045479904447 556843790812856371 337724459840998009 26804149...
output:
DIVISION BY ZERO 437936236216347690 19900379931387542 337713203410606378 88341907607279297 447555577841212424 606727858503752306 356252944994560949 37161677857400112 159642886847896073 20988733315030340 113798960640283287 321565132905969800 104349756237042159 277982619753541580 71803014755236788 785...
result:
ok 50 lines
Test #62:
score: 0
Accepted
time: 6ms
memory: 3628kb
input:
1 2 210759913437032839 340648134652890311 355559231443143013 50 249079897698311537 724139107559898041 768655536538768771 684755373205956637 88609027619867981 477029118731832719 703986171644627947 645445747980305347 139697206326168049 737764238328614731 580244448884150159 50944909724678521 1478707778...
output:
DIVISION BY ZERO DIVISION BY ZERO 620156836769221734 DIVISION BY ZERO 5494349443378709 DIVISION BY ZERO 233755829607804042 180906263100473346 DIVISION BY ZERO DIVISION BY ZERO 12543002016308503 35391353044333641 4653163852254721 380952811400752287 DIVISION BY ZERO 173812614856704484 1480359466471706...
result:
ok 50 lines
Test #63:
score: 0
Accepted
time: 9ms
memory: 3560kb
input:
2 1 674198898792879185 608111282132541842 886847461488400137 50 833099130489103159 239572473666301619 82340223259381609 448856496357157453 142510856837469373 286708571009106781 84870346745255999 806748678451910909 601309345536555611 206828967629350919 166466115027485501 435771516981543539 3162472082...
output:
739997878180791263 142868203129354718 78043792807309368 163060503779651908 82269216451171882 271159120678352356 9656318709724882 193381941867119907 261861719505571673 186526211178622318 73877232953624041 317040995690575697 40635223660184566 68665695293351700 56238144795192298 345954372971023823 2749...
result:
ok 50 lines
Test #64:
score: 0
Accepted
time: 12ms
memory: 3804kb
input:
555 576 282456754087717600 677258304868817806 620553924487417498 388034463469952875 460951786014658461 631009133063086957 208583164971123886 454144873760176631 911068636298615465 67249728774725767 682045220853346332 859414030378497805 292319185354243990 798067629883227352 896729549590180662 81167333...
output:
0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 136455579942156095 0 0 DIVISION BY ZERO 0 0 DIVISION BY ZE...
result:
ok 50 lines
Test #65:
score: 0
Accepted
time: 37ms
memory: 3904kb
input:
3827 1807 136627839948551882 214035657635596159 479912710539997003 83613809135100585 637823618689257992 804501520392243194 813733237455658416 516545143234025456 526102547944821522 922618330461609963 710102735621359551 103864564342558218 510450582172135830 551386409274078925 160697617023322411 189162...
output:
0 0 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 64070545065795061 0 281600563016585393 0 DIVISION BY ZERO 0 0 DIVISION BY ZERO 0 72654923421061839 DIVISION BY ZERO 0 0 0 0 DIVISION BY ZERO 86746473160914285 0 0 0 0 DIVISION BY ZERO DIVISION BY ZERO 0 0 0 72516823203325631 DIVISION BY ZERO D...
result:
ok 50 lines
Test #66:
score: 0
Accepted
time: 24ms
memory: 3676kb
input:
1487 4000 159148838779395703 729937073005604918 238261066236219328 331272684952746966 758925516410527206 303984941918978804 981004142962972044 735841414215360236 191569846069232605 691697886931461555 715761899679301491 767071231234027347 668707924643845817 26926649499003250 232180292081428146 581396...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 77976806852845138 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 727217727576265127 DIVISION BY ZERO 66361675481081965 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISIO...
result:
ok 50 lines
Test #67:
score: 0
Accepted
time: 9ms
memory: 3576kb
input:
555 600 777192396770393754 919324902313243909 988030032790054273 126398355595530271 4362287045618285 727134930332858086 517064544756970035 231449052277396792 350159980720515922 107345303245188222 200872434248364933 753292765268784892 807083608109683553 609701158730627465 668251860339696984 969766189...
output:
0 DIVISION BY ZERO DIVISION BY ZERO 315340357378848351 111249548025383161 DIVISION BY ZERO 30313475871957278 DIVISION BY ZERO 0 DIVISION BY ZERO 0 0 DIVISION BY ZERO 26007358504595508 DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 77650326936263070 DIVISION BY...
result:
ok 50 lines
Test #68:
score: 0
Accepted
time: 26ms
memory: 3680kb
input:
1172 4807 71023035310044235 756310852794128069 405731224844763017 179141826913484745 270864969304205353 948977776308611125 826248998566764280 942205381068574520 330418861830305596 934583405766797398 307863053552971148 493362488260568026 561744234038938647 225464263168395504 987873642237862667 240307...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 848243513558189853 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVIS...
result:
ok 50 lines
Test #69:
score: 0
Accepted
time: 68ms
memory: 3640kb
input:
4990 5000 100830461779284088 570520750030211765 157989207988937471 810350157800180387 361223263178073342 766816435274404828 611471809011005418 438802689308446965 795071599513795641 445258041053057377 348524361644787886 841983331536879423 634715131795966562 939032654748708729 362705046543800726 66465...
output:
0 DIVISION BY ZERO 94240665487855664 20227865360471230 DIVISION BY ZERO DIVISION BY ZERO 0 0 0 0 0 DIVISION BY ZERO 0 DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO 38436024762715385 0 389632827832814438 DIVISION BY ZERO 0 55295466018020811 DIVISION BY ZERO 41391738689183242 167671801927550055...
result:
ok 50 lines
Test #70:
score: 0
Accepted
time: 47ms
memory: 3708kb
input:
5000 4987 550634068412293468 390239041356950779 131854906563175435 506581259837949305 65864472979714480 105656535629132431 143588716132975707 995435862571290924 748207098906412619 935043697065181219 634830949645334611 12966218186395092 458539677427329010 136873338293756878 991533192715071381 5049607...
output:
537649482407489162 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO 286081999808574896 DIVISION BY ZERO DIVISION BY ZERO 0 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 240702015222569392 DIVISION BY ZERO 726256246799208705 0 DIVISION BY ZERO DIVISION BY ZE...
result:
ok 50 lines
Test #71:
score: 0
Accepted
time: 2ms
memory: 3600kb
input:
1 1 999999797 999999558000048517 1 999999558000048517
output:
DIVISION BY ZERO
result:
ok single line: 'DIVISION BY ZERO'
Test #72:
score: 0
Accepted
time: 62ms
memory: 3516kb
input:
1 1 997641685590307531 997250214932953921 50 997641685590307531 998259947044282451 990401802930895897 984591837563427047 989216148630431171 993440117747628371 996821536757926807 983396333481616849 987520482697827361 993172183142534477 992823459344950349 984937696474190177 989527502664708523 99190564...
output:
DIVISION BY ZERO 707620986323813862 784991384993918020 449233438279742990 97399256265578380 3101938234750786 88434096248868377 334057601028419960 875652253835987697 892629464263236980 56696042911615384 226505157160985751 740370827855099269 466285027333744176 112605445726236115 210050845994799385 717...
result:
ok 50 lines
Test #73:
score: 0
Accepted
time: 58ms
memory: 3792kb
input:
1 2 986039667808080601 997739539161051223 999768755370065641 50 992471050123832351 993596829106256201 991992380731241693 995711925604984843 989663335768283717 990980064853158383 985063576648623481 994017293063297281 996568557057333011 992869575611559887 994271707347330869 994285721923198571 99589553...
output:
DIVISION BY ZERO DIVISION BY ZERO 205425117007571218 113402447602634095 219748723113813297 695981128065125207 17575847570074111 60331370791478485 234010320804935160 DIVISION BY ZERO 187898445389979287 474497236123738445 991384165276102030 599272110338450023 820411946384504928 65151967745018598 45819...
result:
ok 50 lines
Test #74:
score: 0
Accepted
time: 54ms
memory: 3564kb
input:
1 3 990305196647935067 995832529024699921 985492615543224793 985492615543224793 50 985492615543224793 995832529024699921 989951778443028007 988101718408765249 981469126670586733 990068422481029289 992135087434039363 997293438756030799 984210422697802357 981765314130438599 991969531568819273 98552567...
output:
DIVISION BY ZERO DIVISION BY ZERO 639390456088401987 133306434628195143 677885794942880290 244306069744154455 748903468232097455 248977895182115538 464781462740168179 250302553498875295 609959086197351655 688843791573029891 575110078999420640 814106757998756978 202352805914840226 323038320837115690 ...
result:
ok 50 lines
Test #75:
score: 0
Accepted
time: 55ms
memory: 3564kb
input:
2 1 988710895826001797 989439468350902267 993712173388574641 50 992553830382974383 996330760374025759 988710895826001797 992935303116152827 986290671080477137 994571829767216923 989395537715547769 992701149492832249 990918151869696541 982337532053041601 986226312467819009 981585742816508281 99092577...
output:
DIVISION BY ZERO 381503435182421846 0 951047142427828776 231552172139477493 456832793793690762 219435640756251732 864795482958265603 712560959118860320 696776047537527028 634767567461674651 142959323945794915 872183861249749450 491453558006470958 616659851048190924 497368795443577110 878756551180081...
result:
ok 50 lines
Test #76:
score: 0
Accepted
time: 50ms
memory: 3512kb
input:
2 3 987310709110930117 991432677880588549 991310934860960423 989928901953433297 993488747749249249 50 988886823541534481 992857866974392493 991019083531201841 994296857424952183 987696421499131579 982869344635557961 991763145959229367 985655464154238623 983986609440982349 989623758552704713 98737152...
output:
239638302768607160 DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 401089837234617100 DIVISION BY ZERO DIVISION BY ZERO 769085913666783255 325927290045771157 354045128992329891 440628401302492257 876418863800088844 130070288713998865 843513016346411881 209442820816352737 659101612392083879 146575...
result:
ok 50 lines
Test #77:
score: 0
Accepted
time: 51ms
memory: 3516kb
input:
3 1 983394198557600281 989095627441839563 995356249658228929 988484367098199767 50 988484367098199767 990286011845263759 988003945854830887 984134027692127309 992302300249851677 985358243513402053 981338496557595091 988557736926580657 985894045351025821 993915772203186253 985982980632731773 98373548...
output:
DIVISION BY ZERO 781372090960272880 340544480106756352 662045471781958374 135642826259609677 815902611165298839 564147392871876398 133362003520762813 343213391443678078 582948656767264466 328283425057159625 29822523192813401 153110948065261763 915094819258798858 265124471017533593 503973484427439428...
result:
ok 50 lines
Test #78:
score: 0
Accepted
time: 60ms
memory: 3856kb
input:
3 2 989874048503192521 988766514212024929 980610373805268361 986813936287858603 987455038749844729 50 987190345725224611 986813936287858603 988100744768277281 995018341931905391 983662769982003767 993889549434647687 996601318433528359 993033481542486409 983601693449211521 988790498002238401 98888602...
output:
260914055227178879 DIVISION BY ZERO DIVISION BY ZERO 66453755754512947 0 891057913834949869 547428521150367528 231068519518796513 775343497414118457 843065228439440952 313541505160695780 484521313403760840 271712087921978555 98339716348958584 88452631995969135 860669346418887535 325039028664819243 1...
result:
ok 50 lines
Test #79:
score: 0
Accepted
time: 59ms
memory: 3820kb
input:
3 3 994443495897769033 997780210800042017 985159459157180473 991851100350209551 990339495634371913 986487798758619823 50 988246461356597479 985159459157180473 991892503415420207 996876060876793483 992307457230226741 989246203513732093 989326828967419609 986067563853745843 998238697511196997 98181631...
output:
752859157662928983 166858716381019714 DIVISION BY ZERO 359367219665223196 DIVISION BY ZERO 482907245465632686 353122087169597809 894219122970837832 DIVISION BY ZERO 836052311449985512 417079470666849082 783332644125084038 0 773145324047110244 358163749424906186 876624938614249615 751369080245947790 ...
result:
ok 50 lines
Test #80:
score: 0
Accepted
time: 5ms
memory: 3628kb
input:
1 1 552294413171962579 629060777948423819 50 629060777948423819 819038755931359519 665964019905940433 679857503237076277 711991789952597939 890806424681754661 822983875824915601 641176575627898873 572443987651513451 704834834133716483 702432358064244503 704943812325192329 585581139815265613 77678193...
output:
DIVISION BY ZERO 586598025247812512 278502959201990842 118837327208236645 589100123140772363 433146865779408929 365152480010316310 493780592287265012 504048343571378446 596180034748731521 611714380985172611 327460141020674944 576859135955348501 735128259341690429 514164925812699532 46853361396836308...
result:
ok 50 lines
Test #81:
score: 0
Accepted
time: 5ms
memory: 3560kb
input:
1 2 672545724566038501 788911993238062147 814249354655252573 50 788911993238062147 839409758290596917 814249354655252573 672545724566038501 752979523459985183 591462306511617997 827273032941838099 662284701484428811 867690797489458249 699808404380209207 860054668331654057 717508846608772423 60154554...
output:
DIVISION BY ZERO 337335198262892901 DIVISION BY ZERO 0 462128782633537847 35973147555863990 659535537388049512 485479809269360304 708413130220613266 357424635658446045 4307833357474830 573097358498160950 506032874576073564 535152268037578177 154518832319404583 501250902905158875 127440464417946670 2...
result:
ok 50 lines
Test #82:
score: 0
Accepted
time: 5ms
memory: 3628kb
input:
1 3 538855863402777773 639572823306293857 621701991800896621 740827988115408619 50 621701991800896621 760692457583450753 655794290541996703 600744353814798569 777846917965198063 609699483244089013 658904660144232067 695071829135307353 731978926191126227 952612736139824021 709579820933093657 72205535...
output:
DIVISION BY ZERO 567744610698215060 DIVISION BY ZERO 443533269597486149 119580036972188763 383348395452329742 134507092996485773 296872377409950383 334102491078902245 907592841415866661 66011355931547865 457974336247219938 834972092970845610 191120957664156710 93169390890871129 418148620453349039 62...
result:
ok 50 lines
Test #83:
score: 0
Accepted
time: 5ms
memory: 3628kb
input:
2 1 868353976333383443 773441374406320423 974913746750081263 50 616166012132261699 868353976333383443 666000581992780921 668725588910389463 782037162569031049 641928471335486303 609218454577629269 864425616580880173 616161730534008101 624828061664809967 664032562179943903 769009840277417579 60991784...
output:
72736873036158504 688902885168420203 22902303175639282 20177296258030740 688902885168420203 46974413832933900 79684430590790934 688902885168420203 72741154634412102 64074823503610236 24870322988476300 688902885168420203 78985040508769542 40385851807443534 688902885168420203 688902885168420203 688902...
result:
ok 50 lines
Test #84:
score: 0
Accepted
time: 8ms
memory: 3628kb
input:
2 2 851181675313402243 851181675313402243 696246347283979243 908352636056303563 50 789139110281425487 851181675313402243 656717312428925207 832931924029777931 626560597789533559 733362126872323931 828197091502336651 805883726169918197 681088400349971969 783257392901269063 745589071066021073 94502184...
output:
DIVISION BY ZERO 0 120847285468793056 58480865002571685 241237525098421778 711419992396344202 402708429473987300 323840329556954666 DIVISION BY ZERO 99664021820945793 706466221612782392 204107009822247795 754421060108289784 499820308882782892 241940303213192443 512343102335915651 431827282559528686 ...
result:
ok 50 lines
Test #85:
score: 0
Accepted
time: 5ms
memory: 3624kb
input:
2 3 717981539626814779 717981539626814779 554770000290134411 615857761260254693 662407371189555053 50 747951729466355083 652595942295713783 670126317668329969 615857761260254693 614021956194770741 931395220520309299 712774443211755233 705164925910331167 578116769997246163 709162817321078737 74226130...
output:
592142860720191122 589521736094837751 80788234666360269 DIVISION BY ZERO DIVISION BY ZERO 649631069045261524 596371580476067528 DIVISION BY ZERO 136056860447878538 525346180862401640 681222610472222746 54384180478586725 291110047524494753 473178630251407614 467515625982260028 182517624926446083 4503...
result:
ok 50 lines
Test #86:
score: 0
Accepted
time: 6ms
memory: 3560kb
input:
3 1 740961055056016931 678329338333414057 682581192532728673 660341705024885129 50 694806817918046579 745605492787707659 634526844063286963 774378806030617033 743075824262314007 637043866087668227 904409952203449061 607121094390289889 685606943189974097 766344729327347897 654464472865850953 59003201...
output:
DIVISION BY ZERO 0 367868996773492257 714281810538658183 262546697042258621 213011817193286727 57243656653750029 8328198733961079 370432305264173719 357363184989853957 382832555178318433 573489285477701656 251207822210775269 526006079442759965 463110141981403159 150409889900739388 173310056567172877...
result:
ok 50 lines
Test #87:
score: 0
Accepted
time: 3ms
memory: 3868kb
input:
3 2 959477833234446707 692475616349710891 882932831201377223 943646030967235051 955234360127347841 50 955234360127347841 613875823314919037 801140531255074097 953342069742032599 829968626174285347 691954134217822169 569296016613052747 735691860100311379 527644072418171537 704900655543569767 85031942...
output:
DIVISION BY ZERO 273776796161486078 768975901297155209 568276020889604867 460731907690960727 680906384167271486 432374942990440651 354124129755722001 247215442986202716 433965953389965421 839040307575129877 227432893471838161 556823703487745538 212947845248441846 285047252172664885 193381624225714 4...
result:
ok 50 lines
Test #88:
score: 0
Accepted
time: 5ms
memory: 3632kb
input:
3 3 860790292754370443 823096758335123147 834440074508500429 615024622118294279 771644458996467233 970831547183066347 50 834440074508500429 930760931656280441 897049041803370737 771644458996467233 605034790739928671 791700306288269527 757920046711281413 838663854289414093 670944844397075597 74667831...
output:
DIVISION BY ZERO 250935534266736157 422515751113490035 DIVISION BY ZERO DIVISION BY ZERO 386082754210628669 167082289404046107 139630420984191562 88098247626522357 5326044193627244 267703134696821486 20659049905208084 565426607244066108 539634219283843152 455904661442781747 710974757100408020 323431...
result:
ok 50 lines
Test #89:
score: 0
Accepted
time: 3ms
memory: 3632kb
input:
1 1 763352331402612489 47344305185608367 50 598309065410123867 56726199887361577 17284295774650799 25261452186159289 7842379434804199 48713530916977457 661516680287277049 4721481982322603 20646555590644993 18362078733358037 31602847532881 21312996488722369 9344556642559009 44544365445785141 90171331...
output:
DIVISION BY ZERO 32030264556815928 2930285806618946 3158151921118953 57854569598421 19443022254966312 67419835725939855 1953927217281935 13641079707007088 8084820439019914 18851287331921 3456614234694372 7930786926231753 20292570793926745 503591237055028 90189849211514573 2517604103614835 1464184121...
result:
ok 50 lines
Test #90:
score: 0
Accepted
time: 3ms
memory: 3600kb
input:
1 2 45864913561098381 77151751387638213 26868088387992069 50 2889842339598629 988053892081 75746150654822233 28863120178875427 46776188966454839 14162494917450961 454451774473023713 10108085216834179 11929941734035889 591544480711865521 57183082998298783 3604030166992531 18453749206478771 1125249709...
output:
DIVISION BY ZERO DIVISION BY ZERO 70950144579556385 DIVISION BY ZERO 14894360710195147 2474471570677004 342646870612510053 9884265588863121 7947391375397436 519155643728820596 52178136970056311 1932908119063444 9286950052953713 85099776373409905 1329577013460794 51845419801802962 86429246232332537 2...
result:
ok 50 lines
Test #91:
score: 0
Accepted
time: 4ms
memory: 3628kb
input:
1 3 262270007993305011 352864257891944632 99357786382234637 187904711743454630 50 27194647953561353 87874548991553521 427464267193681 72533758488288241 4425989338787623 57176083208711141 4826594174387729 191012615964109801 136324912655302541 712777277056321 202725245840002121 36492737446678553 32606...
output:
DIVISION BY ZERO DIVISION BY ZERO 6570448342766 72226382758927945 3813615793769429 35992166969221175 2714177688941962 143721313565463694 115593989575850240 664233844155002 81753804729277042 34049456596073484 20085042504140135 3106551014856089 275687284898790 186206228085284196 464231567 162508714586...
result:
ok 50 lines
Test #92:
score: 0
Accepted
time: 2ms
memory: 3864kb
input:
2 1 503657875266360402 468868717031458425 327334603924987238 50 111139884923455457 1431472166709601 5498479882007927 25867620098962823 75650138658014497 87304241780689 366625080259224361 9392764496987191 1383514660441 102731409472073281 827528474865618241 164450677291384969 7443603430136683 10356020...
output:
DIVISION BY ZERO 767617883094829 4251121142303097 13912404051926440 22050988773966610 38697052856946 50006931611786909 646541716441264 740701351356 95720349386756736 101282631136997238 DIVISION BY ZERO 6810199706911499 95214209175810657 21758626712418574 71671680474430 54500544551896982 164124201694...
result:
ok 50 lines
Test #93:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
2 2 672416035826921868 988562422918563713 177971252682906545 585007520689534153 50 187219767545418857 23467215623036641 37338402980916173 46349148695997727 2097395876655223 83388246273767203 176357831590958833 307341623350278107 51491083121754041 191137271121803 77300257347996223 23086378385902289 1...
output:
DIVISION BY ZERO DIVISION BY ZERO DIVISION BY ZERO 31939736350468482 1626033801536069 40435626393482082 DIVISION BY ZERO 54611987260279918 7103489447375393 9987802659282 48717414555556317 17065137277776471 30860843510 10333117686654192 18068173745722164 33255433661550963 9549171851931700 14673511633...
result:
ok 50 lines
Test #94:
score: 0
Accepted
time: 2ms
memory: 3516kb
input:
2 3 883454755728532516 610649124175907260 422361739960211831 337045614521680336 222424030541146744 50 2210734546365601 48853239304680721 1913691390337429 983346244746851 12252787667554459 403689873954839 170762240435520163 19324669039660091 32308218071711831 2428473322491967 300694181000980321 11103...
output:
357917920627238 DIVISION BY ZERO DIVISION BY ZERO 52648132474923 DIVISION BY ZERO 235939111168763 59640754602364221 17790976059230677 25615589065309237 687663812940463 217839124947135876 108546176956407469 45661295862972840 3484842543956681 2475258830430363 DIVISION BY ZERO 1132291164100310 21461786...
result:
ok 50 lines
Test #95:
score: 0
Accepted
time: 2ms
memory: 3516kb
input:
3 1 687290860641836212 785289354800719365 497749371981125954 293497049522777269 50 2860120989049801 255495099749883361 51690809647121 79413138779750161 60578918365972651 136565107112147489 11557653799911367 6312376977720419 22242653264016613 529552004609083 27485035165299211 320908202086735201 96493...
output:
DIVISION BY ZERO 207630970480310203 DIVISION BY ZERO 44233844921008295 34080696625253324 111539731211647580 7722580719666463 704654201304643 16326718677302761 397600127987276 960380436246182 304317010558665010 7169071533930052 14212917391979 55314817103372897 265377458011673096 12378782452853271 114...
result:
ok 50 lines
Test #96:
score: 0
Accepted
time: 4ms
memory: 3564kb
input:
3 2 322277646815091683 278588722930826205 55744423285566829 351885279080284042 347959503743315202 50 1279661811514321 8667394222740763 273322697632269289 200694686761130867 338798985375667 973731205264373 3277205613215689 135993519477557969 805214370687931 13421241731106889 9899488705350197 80558644...
output:
779458962448259 DIVISION BY ZERO 56866422669856533 179018230087200635 103074233267665 146279993926014 2048812351223668 4275809038375933 585825809352290 5267748236120564 8117809335009984 227917069392530 584986674667070 280410667579173199 24150670854975427 2814039515094 25257548193382633 1361418680069...
result:
ok 50 lines
Test #97:
score: 0
Accepted
time: 2ms
memory: 3664kb
input:
3 3 981357351910728771 219536037933125495 118269404427885519 50332949564401067 598606020811437415 806659512286482567 50 60600422035754959 927459695631373921 31372180523952187 58618761251521 499963937940600961 5345384904029 12862432019231 144591546239306401 57382090650275203 2298475642063147 18428003...
output:
DIVISION BY ZERO DIVISION BY ZERO 20008197533517666 57683058042733 DIVISION BY ZERO 4164731851300 6145612668233 137370362888505317 1250657145273373 830793036803958 5037742666799064 524444785367230 294366398663745570 DIVISION BY ZERO 2136983363528197 11787894851377835 101382766057286714 1280407391309...
result:
ok 50 lines
Test #98:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
1 1 485998318087693180 268090486331851227 50 653384069306141121 262942020812625625 185019673867997807 88601797668412681 350356403707485209 743396045589155903 358324907264191103 534118891628828241 28994432032581637 760231058654565217 119851595982618319 353814783205469041 72042446774615111 16837782655...
output:
DIVISION BY ZERO 149184461818313965 17290908642736704 15925776542825357 253486236984861564 69837734498625156 92559109613420126 DIVISION BY ZERO 28722126515648940 268612118007029601 14600136431689947 110900103587995674 31387632346238474 43938498801573663 293075187859030757 268895925795657789 DIVISION...
result:
ok 50 lines
Test #99:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
1 2 690988337266006236 516041748235350817 499777392275125172 50 644567281582582259 330567960375821147 683635509017782097 184508630649961073 62699468755015688 41407827504802379 267887115478515625 24814343955130249 118687463879252119 58597025598416569 782459401993426609 377183444551071187 603822418430...
output:
534562494385056122 DIVISION BY ZERO 428172505639861834 152206269727705838 18031137451067171 11171424448964581 49623062456682364 DIVISION BY ZERO 109978201146971048 7189263999307001 579643574063679213 148143625860756289 371972067711499427 48687879765490657 DIVISION BY ZERO DIVISION BY ZERO 2350567093...
result:
ok 50 lines
Test #100:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
1 3 48227653723595213 777964794984030493 678751673056921364 2656901885350770 50 456982603485970229 109573122160101605 467882125198298417 350356403707485209 353814783205469041 558545864083284007 42506312834603369 25007330694265969 73246077042336827 573423958988173963 134413697781853199 36476464593194...
output:
451542776938883675 DIVISION BY ZERO 287452427525482243 38076278935963984 63645979080113347 507881620085454289 DIVISION BY ZERO 22984755951560014 39260849280672859 515064840411229020 43110488052261408 DIVISION BY ZERO 341162638811887063 DIVISION BY ZERO 76610072334721538 36343392785685858 18033785639...
result:
ok 50 lines
Test #101:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
2 1 279498352323602910 951659761965532702 831353564610378255 50 929293739471222707 119851595982618319 37320548158602361 787662783788549761 303295135498046875 255323103761400443 452342817211943853 41526246541527307 174887470365513049 203528449592657537 24981072721479191 27206534396294947 455585028726...
output:
229587079843652231 DIVISION BY ZERO 13013655076413556 182624136106997724 19615901540405339 121601680470578304 244404923770530007 17633205144714419 166925739437842706 61985686519428877 4640893620845565 5686948153066411 DIVISION BY ZERO 13461341626681652 336158492584624163 492106030429281720 164854088...
result:
ok 50 lines
Test #102:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
2 2 535957444502095812 374370336138430132 896474283200974281 891629823972123632 50 739261060311173427 54882491467515625 182650594886149591 62824076492105375 433460253360272899 389782044009223441 262942020812625625 665416609183179841 185016944945393521 45848500718449031 171601783652200789 36865744080...
output:
628361717490540037 DIVISION BY ZERO 59048899341449001 51115212948709002 9148151069206662 DIVISION BY ZERO 70824391360813127 186863040819727149 135361434614840764 7727590497748719 DIVISION BY ZERO 317122180170541228 DIVISION BY ZERO DIVISION BY ZERO 36305849940493381 DIVISION BY ZERO DIVISION BY ZERO...
result:
ok 50 lines
Test #103:
score: 0
Accepted
time: 1ms
memory: 3856kb
input:
2 3 440170963053572489 220195392603722361 930158562686941083 672725086465936702 375376245034576710 50 38263984514936041 15144877726785199 19743370127240459 16288748326184933 494352768081226169 96806905199227519 808410095031977957 353814783205469041 44855952664614059 19897316200275409 720733514284493...
output:
15046973226949222 1503230209094715 17899844007181269 2351263229620980 DIVISION BY ZERO 36367696346731379 DIVISION BY ZERO 247350205282862883 DIVISION BY ZERO 14338033531090948 DIVISION BY ZERO 271099769040610960 DIVISION BY ZERO 52248272655048448 DIVISION BY ZERO 25474651675914280 185291239065870796...
result:
ok 50 lines
Test #104:
score: 0
Accepted
time: 1ms
memory: 3856kb
input:
3 1 485312277671144868 47080558635495827 528779018097421008 31548056353227714 50 285974273681640625 665416609183179841 171369120431183849 634546841580671479 448185868185332609 25988987455964817 364764645931940576 451418861331115673 713342911662882601 52468331046150889 44855952664614059 2402992568810...
output:
154743632359528342 458333874698670386 136428926737005051 272233648587052061 444368901697357102 10648896215631339 299304905996420576 DIVISION BY ZERO 691673257925388802 DIVISION BY ZERO 1499914161472273 175157752611285371 691673257925388802 280344229338282797 DIVISION BY ZERO 691673257925388802 28717...
result:
ok 50 lines
Test #105:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
3 2 784774452888335550 687786409609966310 953016666854776992 274538387083985635 291595145800125615 50 23121839365411671 667333156543535161 295885811600069161 14266930231448423 168177611185614613 30711628030914673 168211933849028236 329391024233421637 724754206248150841 172764629286777953 12416278717...
output:
DIVISION BY ZERO 150759541322635915 97491014640426565 12375222956517337 161348608849998872 19820755507446209 20696641617611876 135469961056798307 606824465323082315 33759509062860994 DIVISION BY ZERO 190602879906679765 2239730245909269 28906613919486214 136035087935985711 47742537154845984 661867875...
result:
ok 50 lines
Test #106:
score: 0
Accepted
time: 13ms
memory: 3668kb
input:
350 350 981056539757719722 750796496765156996 565688328533430971 749154813463192367 655081263231828125 435294814914863750 355106451172709390 613826865598540517 997721334722112000 967404952631287940 336355222371229226 699982489799585146 517303722113757733 271465675483269575 453934470089292500 4017691...
output:
736200628744089600 586598547946320000 586598547946320000 62991265154126400 137792305553011200 287394386350780800 586598547946320000 736200628744089600 586598547946320000 287394386350780800 736200628744089600 137792305553011200 287394386350780800 736200628744089600 287394386350780800 2125933459518960...
result:
ok 50 lines
Test #107:
score: 0
Accepted
time: 47ms
memory: 3640kb
input:
1111 1111 567979764784629659 500757801747988015 782814867910555634 746780306816755750 623175290516051350 666577051493154340 996309831886161716 426401787554585150 427828913733876886 610645768946925250 711376711261562500 738465920185697858 887280770773512500 529645994283319375 316885989561968750 56395...
output:
135511266961324800 434715428556864000 135511266961324800 135511266961324800 359914388157979200 14212282530700800 135511266961324800 135511266961324800 135511266961324800 135511266961324800 135511266961324800 135511266961324800 135511266961324800 434715428556864000 135511266961324800 6071022656244000...
result:
ok 50 lines
Test #108:
score: 0
Accepted
time: 148ms
memory: 3848kb
input:
3500 3500 889913207266509375 458170386505397603 298474501921171875 549329140287968750 272124989214954255 786380821061647500 613956097968906250 322965361942778250 709733249252055625 880905967219035609 849523291286757750 844832482856884125 409941924767987329 709733249252055625 531931563280260375 56817...
output:
14262013574265600 612670336765344000 2132115131203200 14262013574265600 14262013574265600 14262013574265600 612670336765344000 612670336765344000 14262013574265600 14262013574265600 14262013574265600 2132115131203200 14262013574265600 612670336765344000 612670336765344000 14262013574265600 612670336...
result:
ok 50 lines
Test #109:
score: 0
Accepted
time: 198ms
memory: 3680kb
input:
5000 4987 590689815123136883 938997839732834266 401504205699728978 281425179786026199 672302578724663678 765033968893582806 358881278875938049 338549514970148713 999346556791195074 775988969857774134 787671741594071719 847518395101829836 716006919999821758 585539186763702633 855657827467753772 93509...
output:
670222721552832000 221416479159523200 670222721552832000 71814398361753600 221416479159523200 670222721552832000 670222721552832000 71814398361753600 3078307184400000 670222721552832000 670222721552832000 221416479159523200 71814398361753600 221416479159523200 221416479159523200 670222721552832000 2...
result:
ok 50 lines
Test #110:
score: 0
Accepted
time: 208ms
memory: 3648kb
input:
5000 5000 840699475716774825 513999606409744725 407323678753134375 255018813787515625 951154335621718750 678872797921890625 693176317143918750 255018813787515625 593259010168218750 918067729635056250 506995943284299375 436838470868321250 411320667399218750 832166655517156250 832166655517156250 77549...
output:
671389030578857472 222582788185548672 222582788185548672 222582788185548672 222582788185548672 222582788185548672 222582788185548672 110381227587221472 72980707387779072 521786949781087872 147781747786663872 4244616210425472 40634311539612672 222582788185548672 147781747786663872 147781747786663872 ...
result:
ok 50 lines
Test #111:
score: 0
Accepted
time: 198ms
memory: 3648kb
input:
5000 5000 877892034972751358 953735388026861846 868495836590405870 746671160501328986 574265806631938729 486224990818808191 347086726016339666 689772313192876067 329780462669264558 949061313083022370 358271045866490246 716175081161981371 686391870853707865 358271045866490246 793314458704371259 47686...
output:
749355602696870400 76146239106907200 300549360303561600 300549360303561600 300549360303561600 76146239106907200 150947279505792000 9431797670064000 300549360303561600 1345198708022400 300549360303561600 150947279505792000 9431797670064000 1345198708022400 1345198708022400 150947279505792000 30054936...
result:
ok 50 lines
Test #112:
score: 0
Accepted
time: 231ms
memory: 3948kb
input:
5000 5000 611979838500405672 728196754909193856 307994216500054656 370275643566675000 487470554939212416 565093555368234750 970914785705865000 293650081552181079 541715641483864320 419766311197655136 445593484519755000 887967196764270480 347328053448816330 875687698392167232 875555643341231424 83628...
output:
623658968171366400 174852725778057600 25250644980288000 25250644980288000 174852725778057600 41423842904371200 174852725778057600 623658968171366400 623658968171366400 174852725778057600 174852725778057600 25250644980288000 174852725778057600 623658968171366400 623658968171366400 25250644980288000 2...
result:
ok 50 lines
Test #113:
score: 0
Accepted
time: 218ms
memory: 3632kb
input:
5000 5000 790764863616750000 966819286906825000 694673868622976000 394189284788740320 324907531704658688 733940819836499000 500988175942627500 974722595113976064 361392858897778400 967487711855280000 478136083706648000 584327949780000000 520572316731470720 552725312764885088 762490687409000000 53401...
output:
138785467614393600 138785467614393600 138785467614393600 363188588811048000 363188588811048000 138785467614393600 138785467614393600 138785467614393600 138785467614393600 138785467614393600 138785467614393600 138785467614393600 138785467614393600 363188588811048000 138785467614393600 265839070160664...
result:
ok 50 lines
Test #114:
score: 0
Accepted
time: 194ms
memory: 3900kb
input:
5000 5000 826717950385857853 337052494455809258 447788555204753836 432898492309778606 616709603707089088 584547495887431454 793314458704371259 972449981637616382 832721666878141166 876821243831147181 679325570347957267 920376579181103394 563555701371447841 925033354795140861 503088315765778363 58454...
output:
324373687087806720 99970565891152320 324373687087806720 99970565891152320 25169525492267520 99970565891152320 99970565891152320 99970565891152320 25169525492267520 99970565891152320 324373687087806720 324373687087806720 25169525492267520 8996327568184320 15061276789715520 99970565891152320 324373687...
result:
ok 50 lines
Test #115:
score: 0
Accepted
time: 202ms
memory: 3640kb
input:
5000 5000 330310199653262803 487556505022234375 803237801005859375 871226389422553125 663990667022508995 595536052203828125 817244519019116500 415551541499266107 880944953645888625 303597813829022323 489652898969763750 447167208748203125 692585902498776845 255381025777888075 449109192054766750 84028...
output:
335586518813145600 335586518813145600 20209159293523200 335586518813145600 36382357217606400 185984438015376000 185984438015376000 20209159293523200 111183397616491200 111183397616491200 335586518813145600 111183397616491200 335586518813145600 335586518813145600 185984438015376000 36382357217606400 ...
result:
ok 50 lines
Test #116:
score: 0
Accepted
time: 6ms
memory: 3748kb
input:
5000 5000 611979838500405672 728196754909193856 307994216500054656 370275643566675000 487470554939212416 565093555368234750 970914785705865000 293650081552181079 541715641483864320 419766311197655136 445593484519755000 887967196764270480 347328053448816330 875687698392167232 875555643341231424 83628...
output:
623658968171366400
result:
ok single line: '623658968171366400'
Test #117:
score: 0
Accepted
time: 99ms
memory: 3876kb
input:
5000 5000 715142749577109271 388195903860913444 669645271461869507 715142749577109271 717996298021084753 326136668337056308 811942462380486547 794265135706523437 732205439058091736 741117282759618523 670620243766861223 553744171192486841 906305451445310172 343304811046608548 748534628934795307 33720...
output:
435042045870391474 438898088998384 2663547853544181 21926748970573523 322098677068442 21453336985409325 72858344265129895 4372754321816973 2852854048587442 7596837285546363 8373522686034091 580808078391340800 258537486302711655 93761454111167252 120443205676512886 382440261010329780 507393975175894 ...
result:
ok 50 lines
Test #118:
score: 0
Accepted
time: 102ms
memory: 3708kb
input:
5000 5000 794245598118647917 477851920417397598 426688690960881215 444393615897017365 360448457830743055 502160479665121465 474885021755743554 405197379120936565 829314480224173670 822397080796948591 820943144050257547 849829844166919603 758006255238709609 426688690960881215 748534628934795307 78083...
output:
78759391089234468 40334306174435 224360402379638027 38547998229108225 4313176874361678 81893928360113251 407993861352896085 18697335210071430 11098141986636654 13302057600723313 123322696438259515 1726327195179779 880692031747245 6764661216535086 1646410457135067 26726214219608358 63599205249770858 ...
result:
ok 50 lines
Test #119:
score: 0
Accepted
time: 98ms
memory: 3588kb
input:
5000 5000 623138824865022347 555275344525847519 671150354354229911 740086882563428521 636691651324209089 696940778233669501 650998799651634931 653551469082935213 525267124237529574 601805536619175959 656742141621756337 803726358749683237 666767473094887409 538883452436523607 566811969080250198 69215...
output:
118177717858856841 387307453361388629 60392401016666845 70075559845164112 24058773628380 2997614133689156 3164361912306988 219423829012338191 19775969776149326 1434910179198119 1442227904991208 512961035084996 472217146836238069 18837913063652500 970505724973089 861866972462633 266238434691896180 16...
result:
ok 50 lines
Test #120:
score: 0
Accepted
time: 102ms
memory: 3708kb
input:
5000 5000 678978695965669979 748924417409787751 731059112305967401 834116687568158157 579758628076359919 579758628076359919 778267142149894911 740472271997885053 673967783080314481 246148598084866647 839671884979160761 736494496040584259 464532544485319314 484126524608732646 736494496040584259 95239...
output:
1209266854689521 69920350143979351 41361262919195977 376996797795997998 201706798465272103 3362600577175097 146430385941069230 129503822849782 778455689891555 65663957397656852 3033216830811367 12768661796719005 25627257021620913 573020202546644183 39471776982830172 64806828118219664 513887162609958...
result:
ok 50 lines
Test #121:
score: 0
Accepted
time: 102ms
memory: 3868kb
input:
5000 5000 783176015094926872 972975880444869348 818251772283502931 334585032499176604 423068806869234844 827541855418103272 924281259640285116 410579690799294332 413770927709051636 755315773857593861 824772406099817576 564045325702042219 800000803384986137 738892430573015128 827928745564982897 83408...
output:
21951459744684777 10336128209490818 665012736654955111 46960738519820578 2461159855886261 12587714271616832 101960306798661071 423374218721754373 821474380613087 404492825697184503 855921959466839384 236671035718159701 40216570117852124 40006971600364686 2371985263874162 1153230262732798 11091292211...
result:
ok 50 lines