Bubble Cup 12 - Finals [Online Mirror, unrated, Div. 1]

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
1218 Bubble Cup 12 - Finals [Online Mirror, unrated, Div. 1] FINISHED False 18000 168884687 Sept. 15, 2019, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 387 ) E Product Tuples PROGRAMMING divide and conquer fft 2500

B"While roaming the mystic areas of Stonefalls, in order to drop legendary loot, an adventurer was given a quest as follows. He was given an array A = {a_1,a_2,...,a_N } of length N , and a number K . Define array B as B(q, A) = { q-a_1, q-a_2, ..., q-a_N }. Define function F as F(B,K) being sum of products of all K -tuples of elements in array B . For example, if the array B is [2,3,4,5] , and with K=3 , sum of products of all 3-tuples is F(B, 3) = 2*3*4+2*3*5+3*4*5+2*4*5 He was then given a number Q, number of queries of two types: All changes are temporarily made to initial array, and don't propagate to following queries. Help the adventurer calculate the answer to a quest, and finally get that loot! In the first two lines, numbers N ( 1 <= q N <= q 2*10^4 ) and K ( 1 <= q K <= q N ), the length of initial array A , and tuple size, followed by a_1,a_2,a_3, xe2 x80 xa6,a_N ( 0 <= q a_i <= q 10^9 ) , elements of array A , in the next line. Then follows number Q ( Q <= q 10 ), number of queries. In the next Q lines come queries of the form: as explained above ( 0 <= q q, d <= q 10^9, 1 <= q i,L,R <= q N ) Print Q lines, the answers to queries, modulo 998244353 . In the first query array A = [1, 2, 3, 4, 5], B = [5, 4, 3, 2, 1], sum of products of 2-tuples = 85. In second query array A = [1, 2, 3, 4, 2], B = [5, 4, 3, 2, 4], sum of products of 2-tuples = 127 In third query array A = [1, 3, 4, 4, 5], B = [5, 3, 2, 2, 1], sum of products of 2-tuples = 63 "...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60757747 BigBag E Sept. 18, 2019, 9:44 a.m. OK GNU C++11 TESTS 36 639 1843200 2500
66637900 H_a_c_k_m_e E Dec. 11, 2019, 1:38 p.m. OK GNU C++11 TESTS 36 654 7987200 2500
60745749 WZYYN E Sept. 18, 2019, 1:20 a.m. OK GNU C++11 TESTS 36 670 34611200 2500
60757727 BigBag E Sept. 18, 2019, 9:43 a.m. OK GNU C++11 TESTS 36 685 1433600 2500
60757063 BigBag E Sept. 18, 2019, 9:25 a.m. OK GNU C++11 TESTS 36 873 1740800 2500
60636244 sajibreadd SirirNicheBirirDokan s_h_shahin E Sept. 15, 2019, 1:58 p.m. OK GNU C++11 TESTS 36 873 1945600 2500
63102561 zyt1253679098 E Oct. 22, 2019, 2:02 a.m. OK GNU C++11 TESTS 36 967 4710400 2500
63101469 vjudge3 E Oct. 22, 2019, 12:58 a.m. OK GNU C++11 TESTS 36 1762 10035200 2500
60747255 AutumnKite E Sept. 18, 2019, 2:57 a.m. OK GNU C++11 TESTS 36 1840 1228800 2500
66765178 luogu_bot2 E Dec. 13, 2019, 7:35 a.m. OK GNU C++11 TESTS 36 2215 1843200 2500
67045785 moralizer E Dec. 16, 2019, 10:09 p.m. OK GNU C++14 TESTS 36 405 3788800 2500
60808388 krijgertje E Sept. 18, 2019, 5:47 p.m. OK GNU C++14 TESTS 36 421 5529600 2500
68379226 cuom1999 E Jan. 7, 2020, 10:28 p.m. OK GNU C++14 TESTS 36 592 2969600 2500
60744578 Cyanic E Sept. 17, 2019, 11:51 p.m. OK GNU C++14 TESTS 36 655 34918400 2500
60637861 lavender730 liouzhou_101 E Sept. 15, 2019, 2:33 p.m. OK GNU C++14 TESTS 36 670 9932800 2500
60744709 RobeZH E Sept. 18, 2019, 12:02 a.m. OK GNU C++14 TESTS 36 686 10342400 2500
60744734 RobeZH E Sept. 18, 2019, 12:04 a.m. OK GNU C++14 TESTS 36 686 10444800 2500
69401450 MinecraftFuns E Jan. 23, 2020, 9:03 a.m. OK GNU C++14 TESTS 36 701 1843200 2500
60676654 Sealionheart Batrr aNIME_BOI E Sept. 16, 2019, 12:38 p.m. OK GNU C++14 TESTS 36 702 15462400 2500
66511211 Hiren.Vaghela E Dec. 8, 2019, 4:41 p.m. OK GNU C++14 TESTS 36 717 38297600 2500
60645949 Growth teochaban Deemo E Sept. 15, 2019, 5:09 p.m. OK GNU C++17 TESTS 36 312 1536000 2500
60644190 PeregudovSergey polinarria AlesyaIvanova E Sept. 15, 2019, 4:30 p.m. OK GNU C++17 TESTS 36 312 5939200 2500
66513967 nishant403 E Dec. 8, 2019, 5:59 p.m. OK GNU C++17 TESTS 36 358 2252800 2500
67847432 dinosaurs E Dec. 28, 2019, 10:45 p.m. OK GNU C++17 TESTS 36 436 3891200 2500
60636049 FrozenBlood Jubair_2147483647 YouKn0wWho E Sept. 15, 2019, 1:53 p.m. OK GNU C++17 TESTS 36 483 3379200 2500
60720726 jiangly E Sept. 17, 2019, 12:18 p.m. OK GNU C++17 TESTS 36 514 1433600 2500
61116989 vjudge2 E Sept. 23, 2019, 1:11 p.m. OK GNU C++17 TESTS 36 514 4096000 2500
61112618 yizhibaiwuya E Sept. 23, 2019, 11:49 a.m. OK GNU C++17 TESTS 36 514 4096000 2500
60667085 Elegia E Sept. 16, 2019, 8:41 a.m. OK GNU C++17 TESTS 36 530 1331200 2500
69933618 sai E Feb. 1, 2020, 2:11 a.m. OK GNU C++17 TESTS 36 561 34611200 2500
61020543 Ahmad E Sept. 21, 2019, 2:28 p.m. OK Java 8 TESTS 36 1496 80691200 2500
65933482 Taran_1407 E Nov. 28, 2019, 11:06 p.m. OK Java 8 TESTS 36 3353 3788800 2500
61583023 beginner1010 E Oct. 1, 2019, 3:12 a.m. OK Java 8 TESTS 36 5537 3584000 2500
65547613 sansen E Nov. 22, 2019, 5:39 p.m. OK Rust TESTS 36 2168 1228800 2500

remove filters

Back to search problems