Bubble Cup X - Finals [Online Mirror]

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
852 Bubble Cup X - Finals [Online Mirror] FINISHED False 18000 271972823 Sept. 3, 2017, 10 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1706 ) B Neural Network country PROGRAMMING dp matrices 2000

Due to the recent popularity of the Deep learning new countries are starting to look like Neural Networks. That is, the countries are being built deep with many layers, each layer possibly having many cities. They also have one entry, and one exit point. There are exactly L layers, each having N cities. Let us look at the two adjacent layers L 1 and L 2 . Each city from the layer L 1 is connected to each city from the layer L 2 with the traveling cost c ij for , and each pair of adjacent layers has the same cost in between their cities as any other pair (they just stacked the same layers, as usual). Also, the traveling costs to each city from the layer L 2 are same for all cities in the L 1 , that is c ij is the same for , and fixed j . Doctor G. needs to speed up his computations for this country so he asks you to find the number of paths he can take from entry to exit point such that his traveling cost is divisible by given number M . The first line of input contains N (1 ≤ N ≤ 10 6 ) , L (2 ≤ L ≤ 10 5 ) and M (2 ≤ M ≤ 100) , the number of cities in each layer, the number of layers and the number that travelling cost should be divisible by, respectively. Second, third and fourth line contain N integers each denoting costs 0 ≤ cost ≤ M from entry point to the first layer, costs between adjacent layers as described above, and costs from the last layer to the exit point. Output a single integer, the number of paths Doctor G. can take which have total cost divisible by M , modulo 10 9 + 7 . This is a country with 3 layers, each layer having 2 cities. Paths , and are the only paths having total cost divisible by 13 . Notice that input edges for layer cities have the same cost, and that they are same for all layers.

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
30227198 vjudge1 B Sept. 9, 2017, 1:49 p.m. OK GNU C++ TESTS 20 46 7987200 2000
30050183 Scut82 B Sept. 4, 2017, 9:33 a.m. OK GNU C++ TESTS 20 61 7987200 2000
30322284 imone __stdcall B Sept. 14, 2017, 7:46 a.m. OK GNU C++ TESTS 20 62 3788800 2000
40979949 ReaLNero1 B July 30, 2018, 5:18 p.m. OK GNU C++ TESTS 20 62 7987200 2000
30173446 linkct davidlee1999WTK HalfSummer11 B Sept. 7, 2017, 6:26 a.m. OK GNU C++ TESTS 20 62 11980800 2000
30049688 SoiMae B Sept. 4, 2017, 8:58 a.m. OK GNU C++ TESTS 20 249 11980800 2000
30193855 131441373 B Sept. 8, 2017, 2:54 a.m. OK GNU C++ TESTS 20 312 4096000 2000
30029678 FallDream ditoly ACMLCZH B Sept. 3, 2017, 10:36 a.m. OK GNU C++ TESTS 20 358 12185600 2000
30029809 zyding B Sept. 3, 2017, 10:40 a.m. OK GNU C++ TESTS 20 405 3993600 2000
31626875 vjudge1 B Oct. 23, 2017, 11:34 a.m. OK GNU C++ TESTS 20 405 9932800 2000
30030871 lzr_010506 B Sept. 3, 2017, 11:06 a.m. OK GNU C++11 TESTS 20 62 3993600 2000
30227189 Magolor B Sept. 9, 2017, 1:49 p.m. OK GNU C++11 TESTS 20 62 7987200 2000
31369921 MZNW B Oct. 15, 2017, 3:04 p.m. OK GNU C++11 TESTS 20 77 56115200 2000
30051979 zcyskyaa B Sept. 4, 2017, 11:45 a.m. OK GNU C++11 TESTS 20 280 12288000 2000
30032015 iamqzh Deluxurous tene3nt B Sept. 3, 2017, 11:35 a.m. OK GNU C++11 TESTS 20 280 25804800 2000
57001418 vjudge5 B July 14, 2019, 3:55 a.m. OK GNU C++11 TESTS 20 312 4915200 2000
57001445 vjudge1 B July 14, 2019, 3:56 a.m. OK GNU C++11 TESTS 20 327 4915200 2000
30031432 MrDindows B Sept. 3, 2017, 11:20 a.m. OK GNU C++11 TESTS 20 342 15769600 2000
30031865 jvjhfhg Mstdream Lesphere B Sept. 3, 2017, 11:30 a.m. OK GNU C++11 TESTS 20 343 4300800 2000
30029311 ohweonfire FizzyDavid B Sept. 3, 2017, 10:26 a.m. OK GNU C++11 TESTS 20 343 12492800 2000
30539388 abutoto B Sept. 20, 2017, 9:04 a.m. OK GNU C++14 TESTS 20 62 4096000 2000
30032688 DOlaBMOon jxcakak The_Unbeatable B Sept. 3, 2017, 11:52 a.m. OK GNU C++14 TESTS 20 62 4096000 2000
30040606 jl0x61 B Sept. 3, 2017, 5:37 p.m. OK GNU C++14 TESTS 20 280 112640000 2000
30044717 jl0x61 B Sept. 4, 2017, midnight OK GNU C++14 TESTS 20 311 112640000 2000
52502849 vjudge4 B April 8, 2019, 5 p.m. OK GNU C++14 TESTS 20 390 3993600 2000
52527024 TistPetr-is-ok B April 9, 2019, 11:54 a.m. OK GNU C++14 TESTS 20 405 3993600 2000
30538902 abutoto B Sept. 20, 2017, 8:44 a.m. OK GNU C++14 TESTS 20 405 4096000 2000
30033096 Lollipop B Sept. 3, 2017, 12:04 p.m. OK GNU C++14 TESTS 20 405 4198400 2000
52517866 vjudge3 B April 9, 2019, 6:52 a.m. OK GNU C++14 TESTS 20 421 3993600 2000
52415885 luogu_bot1 B April 6, 2019, 3:09 p.m. OK GNU C++14 TESTS 20 421 88166400 2000
65729415 JBer B Nov. 26, 2019, 3:41 a.m. OK GNU C++17 TESTS 20 390 3993600 2000
52415543 Avalonal B April 6, 2019, 3:05 p.m. OK GNU C++17 TESTS 20 420 88166400 2000
52438640 vjudge1 B April 7, 2019, 5:27 a.m. OK GNU C++17 TESTS 20 421 7987200 2000
52438630 Avalonal B April 7, 2019, 5:27 a.m. OK GNU C++17 TESTS 20 421 7987200 2000
52415579 vjudge1 B April 6, 2019, 3:06 p.m. OK GNU C++17 TESTS 20 421 88166400 2000
61420692 IIeJlMeHb B Sept. 28, 2019, 11:39 a.m. OK GNU C++17 TESTS 20 530 13619200 2000
66113716 enabl3d B Dec. 1, 2019, 9:36 a.m. OK GNU C++17 TESTS 20 545 3993600 2000
50820442 chinmay0906 B March 5, 2019, 1:19 p.m. OK GNU C++17 TESTS 20 576 7987200 2000
60711451 stArliGht B Sept. 17, 2019, 8:33 a.m. OK GNU C++17 TESTS 20 577 3993600 2000
51248743 marcosmicJack B March 13, 2019, 7:09 a.m. OK GNU C++17 TESTS 20 654 10342400 2000
54908126 coderbond007 B June 1, 2019, 9:47 a.m. OK Java 8 TESTS 20 187 2150400 2000
30029587 qwerty787788 B Sept. 3, 2017, 10:33 a.m. OK Java 8 TESTS 20 405 37683200 2000
59348310 Jarik B Aug. 23, 2019, 10:43 a.m. OK Java 8 TESTS 20 420 34406400 2000
31554435 buddy_0 B Oct. 21, 2017, 7 a.m. OK Java 8 TESTS 20 421 67379200 2000
56668139 Pratik_Rajani B July 7, 2019, 11:52 a.m. OK Java 8 TESTS 20 748 6246400 2000
30035309 ebaalhuis mcfeed B Sept. 3, 2017, 1:11 p.m. OK Java 8 TESTS 20 889 36044800 2000
30379854 gone_girl B Sept. 16, 2017, 9:12 a.m. OK Java 8 TESTS 20 904 6041600 2000
30034532 mualanhlung017 B Sept. 3, 2017, 12:47 p.m. OK Java 8 TESTS 20 951 6451200 2000
30038020 alexyz B Sept. 3, 2017, 2:50 p.m. OK Java 8 TESTS 20 1091 41881600 2000
46923133 afrizal B Dec. 12, 2018, 6:40 a.m. OK Java 8 TESTS 20 1200 39014400 2000
54895421 vjudge5 B June 1, 2019, 2:09 a.m. OK MS C++ TESTS 20 343 4198400 2000
54895341 vjudge1 B June 1, 2019, 2:03 a.m. OK MS C++ TESTS 20 358 4198400 2000
57008730 vjudge2 B July 14, 2019, 8:07 a.m. OK MS C++ TESTS 20 358 12083200 2000
30035616 _mactep B Sept. 3, 2017, 1:22 p.m. OK MS C++ TESTS 20 373 12083200 2000
30032316 natalia B Sept. 3, 2017, 11:42 a.m. OK MS C++ TESTS 20 733 12492800 2000
54579578 vjudge5 B May 25, 2019, 3:33 a.m. OK MS C++ TESTS 20 748 4198400 2000
54864170 vjudge2 B May 31, 2019, 4:59 a.m. OK MS C++ TESTS 20 1356 3993600 2000
30035269 pnueli nagibator B Sept. 3, 2017, 1:09 p.m. OK MS C++ TESTS 20 1388 12185600 2000
55381821 antofik B June 9, 2019, 9:27 p.m. OK MS C++ 2017 TESTS 20 514 12185600 2000
55381729 antofik B June 9, 2019, 9:19 p.m. OK MS C++ 2017 TESTS 20 530 12185600 2000
57008716 C20191522 B July 14, 2019, 8:06 a.m. OK MS C++ 2017 TESTS 20 639 12083200 2000
55381602 antofik B June 9, 2019, 9:11 p.m. OK MS C++ 2017 TESTS 20 1060 12185600 2000
55381485 antofik B June 9, 2019, 9:03 p.m. OK MS C++ 2017 TESTS 20 1060 12185600 2000
55379785 antofik B June 9, 2019, 7:39 p.m. OK MS C++ 2017 TESTS 20 1372 12185600 2000
55375959 antofik B June 9, 2019, 5:34 p.m. OK MS C++ 2017 TESTS 20 1777 24371200 2000
55376115 antofik B June 9, 2019, 5:38 p.m. OK MS C++ 2017 TESTS 20 1793 24371200 2000
55375801 antofik B June 9, 2019, 5:29 p.m. OK MS C++ 2017 TESTS 20 1825 24371200 2000
55375481 antofik B June 9, 2019, 5:22 p.m. OK MS C++ 2017 TESTS 20 1871 24371200 2000

remove filters

Back to search problems