QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#190571 | #3669. Counting Stairs | Gamal74# | AC ✓ | 1551ms | 4316kb | C++20 | 1.5kb | 2023-09-29 05:01:00 | 2023-09-29 05:01:00 |
Judging History
answer
#pragma GCC optimize("O3")
#pragma GCC optimize ("unroll-loops")
#pragma GCC optimize ("Ofast,no-stack-protector", "omit-frame-pointer", "inline", "-ffast-math")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,sse4.2,fma,popcnt,abm,mmx,avx")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
#define fi first
#define se second
#define pp push_back
#define all(x) (x).begin(), (x).end()
#define Ones(n) __builtin_popcount(n)
#define endl '\n'
#define mem(arrr, xx) memset(arrr,xx,sizeof arrr)
//#define int long long
#define debug(x) cout << (#x) << " = " << x << endl
void Gamal() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
#ifdef Clion
freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
#endif
}
int dx[] = {+0, +0, -1, +1, +1, +1, -1, -1};
int dy[] = {-1, +1, +0, +0, +1, -1, +1, -1};
const double EPS = 1e-9;
const ll OO = 0X3F3F3F3F3F3F3F3F;
const int N = 2e5 + 5, INF = INT_MAX, MOD = 998244353, LOG = 20;
int dp[N];
void solve() {
int n;
cin >> n;
cout << dp[n] << endl;
}
signed main() {
Gamal();
dp[0] = 1;
for (int i = 1; 2 * i - 1 <= 2e5; ++i) {
int val = 2 * i - 1;
for (int j = N - 1; j >= val; --j) {
dp[j] = (dp[j] + dp[j - val]);
if (dp[j] >= MOD)dp[j] -= MOD;
}
}
int t = 1;
cin >> t;
while (t--) {
solve();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1547ms
memory: 4144kb
input:
4 3 5 17 25
output:
1 1 5 12
result:
ok 4 number(s): "1 1 5 12"
Test #2:
score: 0
Accepted
time: 1514ms
memory: 4152kb
input:
10 1 2 3 4 5 6 7 8 9 10
output:
1 0 1 1 1 1 1 2 2 2
result:
ok 10 numbers
Test #3:
score: 0
Accepted
time: 1515ms
memory: 4268kb
input:
100 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
output:
1 0 1 1 1 1 1 2 2 2 2 3 3 3 4 5 5 5 6 7 8 8 9 11 12 12 14 16 17 18 20 23 25 26 29 33 35 37 41 46 49 52 57 63 68 72 78 87 93 98 107 117 125 133 144 157 168 178 192 209 223 236 255 276 294 312 335 361 385 408 437 471 501 530 568 609 647 686 732 784 833 881 939 1004 1065 1126 1199 1279 1355 1433 1523 1...
result:
ok 100 numbers
Test #4:
score: 0
Accepted
time: 1541ms
memory: 4144kb
input:
1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101...
output:
1 0 1 1 1 1 1 2 2 2 2 3 3 3 4 5 5 5 6 7 8 8 9 11 12 12 14 16 17 18 20 23 25 26 29 33 35 37 41 46 49 52 57 63 68 72 78 87 93 98 107 117 125 133 144 157 168 178 192 209 223 236 255 276 294 312 335 361 385 408 437 471 501 530 568 609 647 686 732 784 833 881 939 1004 1065 1126 1199 1279 1355 1433 1523 1...
result:
ok 1000 numbers
Test #5:
score: 0
Accepted
time: 1517ms
memory: 4316kb
input:
10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
output:
1 0 1 1 1 1 1 2 2 2 2 3 3 3 4 5 5 5 6 7 8 8 9 11 12 12 14 16 17 18 20 23 25 26 29 33 35 37 41 46 49 52 57 63 68 72 78 87 93 98 107 117 125 133 144 157 168 178 192 209 223 236 255 276 294 312 335 361 385 408 437 471 501 530 568 609 647 686 732 784 833 881 939 1004 1065 1126 1199 1279 1355 1433 1523 1...
result:
ok 10000 numbers
Test #6:
score: 0
Accepted
time: 1516ms
memory: 4152kb
input:
10000 100001 100002 100003 100004 100005 100006 100007 100008 100009 100010 100011 100012 100013 100014 100015 100016 100017 100018 100019 100020 100021 100022 100023 100024 100025 100026 100027 100028 100029 100030 100031 100032 100033 100034 100035 100036 100037 100038 100039 100040 100041 100042 ...
output:
901658944 373412979 159838772 93352400 534560307 831057100 811670865 57705550 645906893 768727288 921975397 932394471 197972981 716834849 61170927 235262457 913754883 472024596 615251594 387910217 785833767 195540737 309658819 706652518 523139486 162434523 809498786 501651788 870551965 958200438 298...
result:
ok 10000 numbers
Test #7:
score: 0
Accepted
time: 1543ms
memory: 4092kb
input:
10000 190001 190002 190003 190004 190005 190006 190007 190008 190009 190010 190011 190012 190013 190014 190015 190016 190017 190018 190019 190020 190021 190022 190023 190024 190025 190026 190027 190028 190029 190030 190031 190032 190033 190034 190035 190036 190037 190038 190039 190040 190041 190042 ...
output:
324400202 382468200 482245488 290987588 728151440 693541919 599252580 371553751 257367623 792178634 279464813 566156395 466608723 8221653 542458263 180229350 381270003 962968465 938431526 380514423 286985398 297197291 149123548 888781770 124840799 684840218 258440336 6608452 97354532 690832351 66958...
result:
ok 10000 numbers
Test #8:
score: 0
Accepted
time: 1514ms
memory: 4128kb
input:
1 1
output:
1
result:
ok 1 number(s): "1"
Test #9:
score: 0
Accepted
time: 1527ms
memory: 4140kb
input:
1 200000
output:
902453163
result:
ok 1 number(s): "902453163"
Test #10:
score: 0
Accepted
time: 1512ms
memory: 4160kb
input:
10000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 10000 numbers
Test #11:
score: 0
Accepted
time: 1511ms
memory: 4312kb
input:
10000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 200000 ...
output:
902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 902453163 ...
result:
ok 10000 numbers
Test #12:
score: 0
Accepted
time: 1529ms
memory: 4144kb
input:
10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 ...
output:
34418089 98726032 327557294 56895502 610340509 199391053 43818543 51004063 858126112 561491074 824231248 723075797 881122040 271436303 48688801 695239265 934799014 554399557 342722529 57482620 190705488 561106109 993212671 564332883 859779950 136539973 177638251 639435794 618834787 275871404 6521887...
result:
ok 10000 numbers
Test #13:
score: 0
Accepted
time: 1542ms
memory: 4152kb
input:
10000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 ...
output:
214840568 523108804 856270494 498541128 198347900 532628974 505905277 30745105 342469374 319321709 721255997 228431654 455903611 220310515 824020553 213874725 783427605 406925828 936938968 440458332 445434970 818911755 206867179 598510473 914046656 965581784 111983048 655323795 267271743 795623135 6...
result:
ok 10000 numbers
Test #14:
score: 0
Accepted
time: 1542ms
memory: 4092kb
input:
10000 30001 30002 30003 30004 30005 30006 30007 30008 30009 30010 30011 30012 30013 30014 30015 30016 30017 30018 30019 30020 30021 30022 30023 30024 30025 30026 30027 30028 30029 30030 30031 30032 30033 30034 30035 30036 30037 30038 30039 30040 30041 30042 30043 30044 30045 30046 30047 30048 30049 ...
output:
185581490 520918631 146972712 524467076 818530769 149872537 879146799 365375207 375383287 218008445 558799660 30483062 735468904 291358425 28514636 978246932 168074236 837397909 375754930 726556880 588129244 460107853 624732587 966744018 562511031 94371722 256653298 181584600 910841613 68830781 1149...
result:
ok 10000 numbers
Test #15:
score: 0
Accepted
time: 1523ms
memory: 4152kb
input:
10000 40001 40002 40003 40004 40005 40006 40007 40008 40009 40010 40011 40012 40013 40014 40015 40016 40017 40018 40019 40020 40021 40022 40023 40024 40025 40026 40027 40028 40029 40030 40031 40032 40033 40034 40035 40036 40037 40038 40039 40040 40041 40042 40043 40044 40045 40046 40047 40048 40049 ...
output:
589183544 7125787 343565902 784329958 125464617 793160313 902609457 981435489 361976256 949888402 782481145 320254412 847046579 84869222 443392527 837282687 425755181 437353263 185358179 960959909 626104825 21770643 937786596 662037599 182966399 961783919 849632532 112107025 290666488 705335923 9475...
result:
ok 10000 numbers
Test #16:
score: 0
Accepted
time: 1529ms
memory: 4148kb
input:
10000 50001 50002 50003 50004 50005 50006 50007 50008 50009 50010 50011 50012 50013 50014 50015 50016 50017 50018 50019 50020 50021 50022 50023 50024 50025 50026 50027 50028 50029 50030 50031 50032 50033 50034 50035 50036 50037 50038 50039 50040 50041 50042 50043 50044 50045 50046 50047 50048 50049 ...
output:
244191189 971322896 926368954 101444701 935076594 441605313 680398506 808900176 663901429 677251393 288074585 275209652 514684565 591235042 346984768 181878000 307314080 906721571 10648212 809367682 706837916 256921094 802606344 593235414 59485295 85790154 582773586 828211395 257324882 839273344 182...
result:
ok 10000 numbers
Test #17:
score: 0
Accepted
time: 1547ms
memory: 4144kb
input:
10000 60001 60002 60003 60004 60005 60006 60007 60008 60009 60010 60011 60012 60013 60014 60015 60016 60017 60018 60019 60020 60021 60022 60023 60024 60025 60026 60027 60028 60029 60030 60031 60032 60033 60034 60035 60036 60037 60038 60039 60040 60041 60042 60043 60044 60045 60046 60047 60048 60049 ...
output:
160528002 948302879 236903395 30624743 106089342 878161993 535176940 500136969 806374043 368919561 413851552 830586380 563369460 662482349 80450392 371727337 710738996 986012843 127129114 780686840 179420636 192378795 17874543 202225879 728007889 230192079 565264741 563061110 205358201 687352945 141...
result:
ok 10000 numbers
Test #18:
score: 0
Accepted
time: 1514ms
memory: 4212kb
input:
10000 70001 70002 70003 70004 70005 70006 70007 70008 70009 70010 70011 70012 70013 70014 70015 70016 70017 70018 70019 70020 70021 70022 70023 70024 70025 70026 70027 70028 70029 70030 70031 70032 70033 70034 70035 70036 70037 70038 70039 70040 70041 70042 70043 70044 70045 70046 70047 70048 70049 ...
output:
751593768 969439408 413985253 607747745 396007103 889632164 2541012 100856078 654343538 463940741 601989655 296241616 912455432 126040822 15490652 597112497 517085888 845618808 567534133 356354608 411549528 333481135 322056591 259872354 779183086 145580184 133561947 888870710 422693431 588064739 409...
result:
ok 10000 numbers
Test #19:
score: 0
Accepted
time: 1523ms
memory: 4304kb
input:
10000 80001 80002 80003 80004 80005 80006 80007 80008 80009 80010 80011 80012 80013 80014 80015 80016 80017 80018 80019 80020 80021 80022 80023 80024 80025 80026 80027 80028 80029 80030 80031 80032 80033 80034 80035 80036 80037 80038 80039 80040 80041 80042 80043 80044 80045 80046 80047 80048 80049 ...
output:
246039123 947121648 870138295 186582328 340303952 564573460 705605393 212749758 265842968 498059668 161285437 773584928 812682960 974657678 659700488 357326186 351454033 617959315 806827901 475207821 431860023 771086169 487734461 947988577 287764438 437188827 147525618 719747660 575497713 482501882 ...
result:
ok 10000 numbers
Test #20:
score: 0
Accepted
time: 1513ms
memory: 4268kb
input:
10000 90001 90002 90003 90004 90005 90006 90007 90008 90009 90010 90011 90012 90013 90014 90015 90016 90017 90018 90019 90020 90021 90022 90023 90024 90025 90026 90027 90028 90029 90030 90031 90032 90033 90034 90035 90036 90037 90038 90039 90040 90041 90042 90043 90044 90045 90046 90047 90048 90049 ...
output:
511002981 549459113 443980304 75442543 201495883 370259660 189948473 754180961 258585028 565506100 727023253 275890382 880998291 398290438 220747255 692564158 701492132 309223606 252672154 38206162 913913127 424171176 425539287 960701452 610222083 363656694 236254447 484209984 735024331 177400660 94...
result:
ok 10000 numbers
Test #21:
score: 0
Accepted
time: 1513ms
memory: 4148kb
input:
10000 110001 110002 110003 110004 110005 110006 110007 110008 110009 110010 110011 110012 110013 110014 110015 110016 110017 110018 110019 110020 110021 110022 110023 110024 110025 110026 110027 110028 110029 110030 110031 110032 110033 110034 110035 110036 110037 110038 110039 110040 110041 110042 ...
output:
706989600 853133310 715767759 546998 32001783 368618262 219913710 242491463 835066742 699408058 656585946 916661685 487533465 209938276 597304187 558934747 485645808 132507146 104651307 437761439 211434792 132940983 979495927 964890938 887491814 359137662 665656240 64450747 961754206 772334656 12659...
result:
ok 10000 numbers
Test #22:
score: 0
Accepted
time: 1515ms
memory: 4144kb
input:
10000 120001 120002 120003 120004 120005 120006 120007 120008 120009 120010 120011 120012 120013 120014 120015 120016 120017 120018 120019 120020 120021 120022 120023 120024 120025 120026 120027 120028 120029 120030 120031 120032 120033 120034 120035 120036 120037 120038 120039 120040 120041 120042 ...
output:
696737169 778698073 255405308 713074396 947028774 759559954 406475533 490632003 567592811 886194959 423835239 177387213 155693440 384548518 619686405 623984345 785680101 261091517 266225442 646312578 836404181 487624690 471466056 603549177 536998771 944759696 835225417 470843018 236046617 754311551 ...
result:
ok 10000 numbers
Test #23:
score: 0
Accepted
time: 1524ms
memory: 4088kb
input:
10000 130001 130002 130003 130004 130005 130006 130007 130008 130009 130010 130011 130012 130013 130014 130015 130016 130017 130018 130019 130020 130021 130022 130023 130024 130025 130026 130027 130028 130029 130030 130031 130032 130033 130034 130035 130036 130037 130038 130039 130040 130041 130042 ...
output:
830183309 239681360 263926936 363286597 840378619 792395027 122915697 133441320 371918525 675204381 334480170 954328901 799439459 732084778 641233767 116737110 335844231 329646894 722448222 981882206 891033973 247244166 847054745 913094543 304944453 36946444 393057154 61493561 619397629 971179903 24...
result:
ok 10000 numbers
Test #24:
score: 0
Accepted
time: 1507ms
memory: 4156kb
input:
10000 140001 140002 140003 140004 140005 140006 140007 140008 140009 140010 140011 140012 140013 140014 140015 140016 140017 140018 140019 140020 140021 140022 140023 140024 140025 140026 140027 140028 140029 140030 140031 140032 140033 140034 140035 140036 140037 140038 140039 140040 140041 140042 ...
output:
661605866 564755600 272244234 43526282 544325505 768731845 80261188 867187744 610675338 937239083 705847498 514621284 838751121 305344814 89559954 887665244 726631746 581140731 372739761 227902578 431151282 383110631 691072093 98393302 10924200 20587731 701367947 254298796 269612046 995574243 803588...
result:
ok 10000 numbers
Test #25:
score: 0
Accepted
time: 1551ms
memory: 4096kb
input:
10000 150001 150002 150003 150004 150005 150006 150007 150008 150009 150010 150011 150012 150013 150014 150015 150016 150017 150018 150019 150020 150021 150022 150023 150024 150025 150026 150027 150028 150029 150030 150031 150032 150033 150034 150035 150036 150037 150038 150039 150040 150041 150042 ...
output:
45494608 816305754 521896575 984832705 410059706 186637536 482236502 711346165 747367825 550325160 388323603 494084093 289664677 583115033 972154666 416574599 413728235 1775765 860575351 166395490 36682819 607037748 149328499 329588746 160423814 99652461 399652878 225591792 508530114 37508823 985285...
result:
ok 10000 numbers
Test #26:
score: 0
Accepted
time: 1509ms
memory: 4152kb
input:
10000 160001 160002 160003 160004 160005 160006 160007 160008 160009 160010 160011 160012 160013 160014 160015 160016 160017 160018 160019 160020 160021 160022 160023 160024 160025 160026 160027 160028 160029 160030 160031 160032 160033 160034 160035 160036 160037 160038 160039 160040 160041 160042 ...
output:
969164029 640816357 863365963 523062233 339734909 9464568 382421649 718491480 338795032 444898830 293203843 512081889 795368972 160189817 711341899 20942047 613404706 251126901 152812719 761108591 176960164 879525831 825379032 511450113 950874851 497393591 246353031 869168728 773366101 626874499 525...
result:
ok 10000 numbers
Test #27:
score: 0
Accepted
time: 1525ms
memory: 4276kb
input:
10000 170001 170002 170003 170004 170005 170006 170007 170008 170009 170010 170011 170012 170013 170014 170015 170016 170017 170018 170019 170020 170021 170022 170023 170024 170025 170026 170027 170028 170029 170030 170031 170032 170033 170034 170035 170036 170037 170038 170039 170040 170041 170042 ...
output:
920285945 242203848 484064218 201388709 833046717 251021628 676304965 798577468 199381090 411890248 917344280 1683930 566154230 198725376 590790881 558757862 74695862 699181154 914324137 656972298 193071770 893174822 842305247 272367344 496793582 490921588 814877750 141932148 662285448 177473453 143...
result:
ok 10000 numbers
Test #28:
score: 0
Accepted
time: 1526ms
memory: 4148kb
input:
10000 180001 180002 180003 180004 180005 180006 180007 180008 180009 180010 180011 180012 180013 180014 180015 180016 180017 180018 180019 180020 180021 180022 180023 180024 180025 180026 180027 180028 180029 180030 180031 180032 180033 180034 180035 180036 180037 180038 180039 180040 180041 180042 ...
output:
219283116 640642590 613420686 873923757 791123480 921989939 581379569 461584378 25728374 640577533 664201455 790535838 922180744 335947116 771795443 43236160 736887461 911104222 752595627 66584978 612164011 654279535 762850506 596289257 710484005 844114764 424721572 543013382 290933610 197250622 832...
result:
ok 10000 numbers
Test #29:
score: 0
Accepted
time: 1507ms
memory: 4148kb
input:
10000 679 902 693 1000 79 436 906 893 351 886 516 927 187 966 785 56 490 64 35 143 841 965 609 735 992 43 956 952 835 810 387 117 66 152 751 549 441 895 639 883 729 722 782 902 861 323 232 641 454 920 153 940 272 705 366 65 722 188 785 24 386 178 961 579 631 791 344 419 901 325 731 297 549 778 846 7...
output:
55008637 228758252 886374554 91052726 732 995797473 436144613 531756592 74628130 218288930 261977088 279305763 180542 689324387 733490413 157 575256227 276 29 24335 502081313 589041770 448954495 393836099 355667882 57 763844822 270108715 332972919 950221691 230969820 6528 312 37449 503348971 1330730...
result:
ok 10000 numbers
Test #30:
score: 0
Accepted
time: 1512ms
memory: 4200kb
input:
10000 7694 40795 923 10621 32441 21903 4569 16771 47197 32547 43747 39653 11173 29148 36255 21074 26033 38116 37445 45388 22452 43541 36901 34651 11942 25330 19582 4553 48083 255 10968 18564 40473 387 10411 29856 44334 36621 47110 13010 10169 46540 32249 46118 7684 17750 25035 35529 5969 17538 29092...
output:
975534343 824837310 296664637 402113911 629192274 407981530 824512526 692094454 494941450 922659518 673814352 173751773 707920271 599817242 431293201 923185900 970362641 208362274 97392243 638915336 87702128 573985152 960001858 700604036 910775419 365030165 256809211 996550810 474959685 2721578 7276...
result:
ok 10000 numbers
Test #31:
score: 0
Accepted
time: 1510ms
memory: 4160kb
input:
10000 167688 146283 84746 164479 86440 65665 28361 18300 47143 88041 18841 76197 192685 54116 42171 88933 60470 90407 163973 121947 146705 5850 60064 60824 44259 170842 154315 155749 192225 83319 57686 31098 69849 64823 182184 152456 66538 104081 15034 161137 4870 132275 199194 161482 78391 123325 5...
output:
53053836 152012374 917015587 702654434 396738303 873150110 343693224 435705970 763791836 935652438 809172646 979202017 746131988 24362078 520281643 55352583 952114547 193724096 97626543 260794094 537468676 860272576 902752493 858367153 721342830 875401553 87425429 958380468 440478397 915272306 12554...
result:
ok 10000 numbers