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 | 233092824 | Sept. 3, 2017, 10 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 585 ) | F | Product transformation | PROGRAMMING | combinatorics math number theory | 2300 |
B'Consider an array A with N elements, all being the same integer a. Define the product transformation as a simultaneous update Ai xe2 x80 x89= xe2 x80 x89Ai xc2 xb7Ai xe2 x80 x89+ xe2 x80 x891, that is multiplying each element to the element right to it for , with the last number AN remaining the same. For example, if we start with an array A with a xe2 x80 x89= xe2 x80 x892 and N xe2 x80 x89= xe2 x80 x894, then after one product transformation A xe2 x80 x89= xe2 x80 x89[4, xe2 x80 x89 4, xe2 x80 x89 4, xe2 x80 x89 2], and after two product transformations A xe2 x80 x89= xe2 x80 x89[16, xe2 x80 x89 16, xe2 x80 x89 8, xe2 x80 x89 2]. Your simple task is to calculate the array A after M product transformations. Since the numbers can get quite big you should output them modulo Q. The first and only line of input contains four integers N, M, a, Q (7 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89Q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109 xe2 x80 x89+ xe2 x80 x89123, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106 xe2 x80 x89+ xe2 x80 x89123, , is prime), where is the multiplicative order of the integer a modulo Q, see notes for definition. You should output the array A from left to right. The multiplicative order of a number a modulo Q , is the smallest natural number x such that ax mod Q xe2 x80 x89= xe2 x80 x891. For example, . '... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
30198979 | Faimerth | F | Sept. 8, 2017, 9:30 a.m. | OK | GNU C | TESTS | 18 | 342 | 24268800 | 2300 | |
30038857 | nwi | F | Sept. 3, 2017, 3:38 p.m. | OK | GNU C++ | TESTS | 18 | 327 | 11878400 | 2300 | |
31629016 | vjudge3 | F | Oct. 23, 2017, 12:46 p.m. | OK | GNU C++ | TESTS | 18 | 343 | 25907200 | 2300 | |
41417558 | vjudge4 | F | Aug. 10, 2018, 4:59 a.m. | OK | GNU C++ | TESTS | 18 | 373 | 35328000 | 2300 | |
30035936 | kut_kjb1994 | F | Sept. 3, 2017, 1:32 p.m. | OK | GNU C++ | TESTS | 18 | 436 | 44544000 | 2300 | |
31705245 | Zarxdy34 DeaphetS BinGoo0o0o | F | Oct. 25, 2017, 10:20 a.m. | OK | GNU C++ | TESTS | 18 | 451 | 29696000 | 2300 | |
30240137 | vjudge2 | F | Sept. 10, 2017, 8:01 a.m. | OK | GNU C++ | TESTS | 18 | 592 | 12083200 | 2300 | |
30031132 | Magolor F.Darcy dsyhy | F | Sept. 3, 2017, 11:12 a.m. | OK | GNU C++ | TESTS | 18 | 592 | 13004800 | 2300 | |
30031845 | jvjhfhg Mstdream Lesphere | F | Sept. 3, 2017, 11:30 a.m. | OK | GNU C++ | TESTS | 18 | 592 | 24064000 | 2300 | |
35672863 | lijiamu | F | Feb. 25, 2018, 8:39 a.m. | OK | GNU C++ | TESTS | 18 | 623 | 26112000 | 2300 | |
30121465 | SeventeenYears | F | Sept. 6, 2017, 2:48 a.m. | OK | GNU C++ | TESTS | 18 | 639 | 24064000 | 2300 | |
57769120 | py_ultron | F | July 25, 2019, 10:55 p.m. | OK | GNU C++11 | TESTS | 18 | 311 | 23859200 | 2300 | |
30029895 | black_horse2014 | F | Sept. 3, 2017, 10:43 a.m. | OK | GNU C++11 | TESTS | 18 | 327 | 13209600 | 2300 | |
30616565 | braveTester chitanda | F | Sept. 22, 2017, 1:57 p.m. | OK | GNU C++11 | TESTS | 18 | 343 | 16076800 | 2300 | |
57873339 | lopare | F | July 28, 2019, 3:30 a.m. | OK | GNU C++11 | TESTS | 18 | 343 | 23859200 | 2300 | |
38631985 | little_misfortune | F | May 26, 2018, 11:25 a.m. | OK | GNU C++11 | TESTS | 18 | 373 | 32051200 | 2300 | |
30029476 | yfzcsc | F | Sept. 3, 2017, 10:30 a.m. | OK | GNU C++11 | TESTS | 18 | 374 | 32051200 | 2300 | |
30047411 | Megumi_ | F | Sept. 4, 2017, 5:38 a.m. | OK | GNU C++11 | TESTS | 18 | 389 | 24064000 | 2300 | |
30047403 | Megumi_ | F | Sept. 4, 2017, 5:38 a.m. | OK | GNU C++11 | TESTS | 18 | 389 | 24064000 | 2300 | |
30035575 | _LeMur_ hamlet | F | Sept. 3, 2017, 1:20 p.m. | OK | GNU C++11 | TESTS | 18 | 389 | 32051200 | 2300 | |
30032202 | liziy zbh2047 niike0goood | F | Sept. 3, 2017, 11:40 a.m. | OK | GNU C++11 | TESTS | 18 | 576 | 9830400 | 2300 | |
62409881 | RyoPham quachanh | F | Oct. 12, 2019, 10:06 a.m. | OK | GNU C++14 | TESTS | 18 | 280 | 16076800 | 2300 | |
30029443 | zcyskyaa Krydom_Yuudachi apiadu | F | Sept. 3, 2017, 10:30 a.m. | OK | GNU C++14 | TESTS | 18 | 311 | 17612800 | 2300 | |
30032955 | square1001 Kmcode E869120 | F | Sept. 3, 2017, noon | OK | GNU C++14 | TESTS | 18 | 311 | 22016000 | 2300 | |
30094268 | zhangzy | F | Sept. 5, 2017, 8:21 a.m. | OK | GNU C++14 | TESTS | 18 | 327 | 32051200 | 2300 | |
30031701 | Um_nik Kronecker | F | Sept. 3, 2017, 11:26 a.m. | OK | GNU C++14 | TESTS | 18 | 327 | 40140800 | 2300 | |
40979914 | ReaLNero1 | F | July 30, 2018, 5:18 p.m. | OK | GNU C++14 | TESTS | 18 | 343 | 17612800 | 2300 | |
66164848 | kal013 hkyiitd smartnj | F | Dec. 2, 2019, 6:58 a.m. | OK | GNU C++14 | TESTS | 18 | 343 | 32051200 | 2300 | |
30030182 | gs13031 | F | Sept. 3, 2017, 10:50 a.m. | OK | GNU C++14 | TESTS | 18 | 358 | 32051200 | 2300 | |
46776773 | brimix__ | F | Dec. 8, 2018, 9:10 p.m. | OK | GNU C++14 | TESTS | 18 | 373 | 40140800 | 2300 | |
30035046 | please_delete_account | F | Sept. 3, 2017, 1:02 p.m. | OK | GNU C++14 | TESTS | 18 | 389 | 40140800 | 2300 | |
35778091 | ranwen | F | Feb. 28, 2018, 8:09 a.m. | OK | GNU C++17 | TESTS | 18 | 342 | 17920000 | 2300 | |
58860815 | jakedavis | F | Aug. 15, 2019, 11:32 a.m. | OK | GNU C++17 | TESTS | 18 | 358 | 40140800 | 2300 | |
65290938 | scnucjh | F | Nov. 18, 2019, 9:46 a.m. | OK | GNU C++17 | TESTS | 18 | 389 | 32051200 | 2300 | |
48510676 | markotee | F | Jan. 17, 2019, 8:47 p.m. | OK | GNU C++17 | TESTS | 18 | 483 | 16281600 | 2300 | |
58860482 | jakedavis | F | Aug. 15, 2019, 11:25 a.m. | OK | GNU C++17 | TESTS | 18 | 576 | 32153600 | 2300 | |
67210767 | squarepants | F | Dec. 19, 2019, 1:57 p.m. | OK | GNU C++17 | TESTS | 18 | 592 | 35123200 | 2300 | |
58338071 | yizhibaiwuya | F | Aug. 5, 2019, 12:13 p.m. | OK | GNU C++17 | TESTS | 18 | 592 | 35225600 | 2300 | |
42300675 | liujianbo | F | Aug. 31, 2018, 7:27 a.m. | OK | GNU C++17 | TESTS | 18 | 607 | 32358400 | 2300 | |
45462493 | maroonrk | F | Nov. 9, 2018, 2:17 a.m. | OK | GNU C++17 | TESTS | 18 | 607 | 38707200 | 2300 | |
65290758 | scnucjh | F | Nov. 18, 2019, 9:42 a.m. | OK | GNU C++17 | TESTS | 18 | 639 | 24064000 | 2300 | |
30033577 | qwerty787788 | F | Sept. 3, 2017, 12:18 p.m. | OK | Java 8 | TESTS | 18 | 1044 | 6246400 | 2300 | |
52245094 | aminul | F | April 2, 2019, 6:37 p.m. | OK | Java 8 | TESTS | 18 | 1076 | 22937600 | 2300 | |
52245058 | vjudge3 | F | April 2, 2019, 6:36 p.m. | OK | Java 8 | TESTS | 18 | 1076 | 22937600 | 2300 | |
30029310 | tourist VArtem | F | Sept. 3, 2017, 10:26 a.m. | OK | Java 8 | TESTS | 18 | 1294 | 7475200 | 2300 | |
32919413 | 2145527 | F | Dec. 4, 2017, 11:41 a.m. | OK | Java 8 | TESTS | 18 | 1310 | 30310400 | 2300 | |
30040009 | ebaalhuis | F | Sept. 3, 2017, 5 p.m. | OK | Java 8 | TESTS | 18 | 1341 | 7680000 | 2300 | |
52244918 | vjudge5 | F | April 2, 2019, 6:31 p.m. | OK | Java 8 | TESTS | 18 | 1840 | 22937600 | 2300 | |
30045755 | mualanhlung017 | F | Sept. 4, 2017, 2:29 a.m. | OK | Java 8 | TESTS | 18 | 2074 | 0 | 2300 | |
30228040 | beroul | F | Sept. 9, 2017, 2:32 p.m. | OK | Java 8 | TESTS | 18 | 2199 | 7680000 | 2300 | |
30227902 | beroul | F | Sept. 9, 2017, 2:25 p.m. | OK | Java 8 | TESTS | 18 | 2262 | 17203200 | 2300 | |
30301315 | dontpanic92 | F | Sept. 13, 2017, 7:43 a.m. | OK | MS C# | TESTS | 18 | 779 | 79564800 | 2300 | |
30043750 | AleksanderBalobanov | F | Sept. 3, 2017, 9:45 p.m. | OK | MS C++ | TESTS | 18 | 1091 | 15052800 | 2300 | |
30037380 | pnueli nagibator | F | Sept. 3, 2017, 2:25 p.m. | OK | MS C++ | TESTS | 18 | 1747 | 16179200 | 2300 | |
30035342 | natalia | F | Sept. 3, 2017, 1:12 p.m. | OK | MS C++ | TESTS | 18 | 1918 | 32256000 | 2300 |
Back to search problems