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 |
---|---|---|---|---|---|---|
1866 | COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 43437263 | Sept. 3, 2023, 12:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 7980 ) | B | Battling with Numbers | PROGRAMMING | combinatorics math number theory |
B'On the trip to campus during the mid semester exam period, Chaneka thinks of two positive integers X and Y . Since the two integers can be very big, both are represented using their prime factorisations, such that: Chaneka ponders about these two integers for too long throughout the trip, so Chaneka 's friend commands her "Gece, deh!" (move fast) in order to not be late for the exam. Because of that command, Chaneka comes up with a problem, how many pairs of positive integers p and q such that text{LCM}(p, q) = X and text{GCD}(p, q) = Y . Since the answer can be very big, output the answer modulo 998 ,244 ,353 . Notes: The first line contains a single integer N ( 1 <= q N <= q 10^5 ) -- the number of distinct primes in the prime factorisation of X . The second line contains N integers A_1, A_2, A_3, ldots, A_N ( 2 <= q A_1 < A_2 < ldots < A_N <= q 2 cdot 10^6 ; each A_i is prime) -- the primes in the prime factorisation of X . The third line contains N integers B_1, B_2, B_3, ldots, B_N ( 1 <= q B_i <= q 10^5 ) -- the exponents in the prime factorisation of X . The fourth line contains a single integer M ( 1 <= q M <= q 10^5 ) -- the number of distinct primes in the prime factorisation of Y . The fifth line contains M integers C_1, C_2, C_3, ldots, C_M ( 2 <= q C_1 < C_2 < ldots < C_M <= q 2 cdot 10^6 ; each C_j is prime) -- the primes in the prime factorisation of Y . The sixth line contains M integers D_1, D_2, D_3, ldots, D_M ( 1 <= q D_j <= q 10^5 ) -- the exponents in the prime factorisation of Y . An integer representing the number of pairs of positive integers p and q such that text{LCM}(p, q) = X and text{GCD}(p, q) = Y , modulo 998 ,244 ,353 . In the first example, the integers are as follows: The following are all possible pairs of p$'... |
COMPFEST 15 Preliminary — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
221720963 | tuanhung2008 | B | Sept. 3, 2023, 4:24 p.m. | OK | FPC | TESTS | 34 | 124 | 98201600 | ||
221712547 | aditya_developer | B | Sept. 3, 2023, 3:24 p.m. | OK | GNU C11 | TESTS | 34 | 78 | 1638400 | ||
221704370 | gauravbehera debangan.mishra40 ameykaran | B | Sept. 3, 2023, 2:32 p.m. | OK | GNU C11 | TESTS | 34 | 78 | 1638400 | ||
221723701 | adinair.ggn vishakkashyap ad1tya2 | B | Sept. 3, 2023, 4:44 p.m. | OK | GNU C11 | TESTS | 34 | 93 | 1638400 | ||
221722924 | vamsee_24 Krish9904 chandanapy | B | Sept. 3, 2023, 4:38 p.m. | OK | GNU C11 | TESTS | 34 | 93 | 19251200 | ||
221700497 | deekshithas thefourthclover | B | Sept. 3, 2023, 2:11 p.m. | OK | GNU C11 | TESTS | 34 | 655 | 1638400 | ||
221765878 | priority | B | Sept. 4, 2023, 3:18 a.m. | OK | GNU C++14 | TESTS | 34 | 93 | 1638400 | ||
221708790 | gheescoo | B | Sept. 3, 2023, 2:59 p.m. | OK | GNU C++14 | TESTS | 34 | 109 | 3174400 | ||
221771155 | qiuxiaoyudan | B | Sept. 4, 2023, 4:48 a.m. | OK | GNU C++14 | TESTS | 34 | 109 | 3174400 | ||
221701610 | iamsk | B | Sept. 3, 2023, 2:17 p.m. | OK | GNU C++14 | TESTS | 34 | 109 | 8806400 | ||
221771057 | 5-3 | B | Sept. 4, 2023, 4:47 a.m. | OK | GNU C++14 | TESTS | 34 | 109 | 9625600 | ||
221766395 | rfpermen | B | Sept. 4, 2023, 3:26 a.m. | OK | GNU C++14 | TESTS | 34 | 109 | 12083200 | ||
221763448 | jielosc | B | Sept. 4, 2023, 2:29 a.m. | OK | GNU C++14 | TESTS | 34 | 109 | 16793600 | ||
221721227 | Dahy | B | Sept. 3, 2023, 4:25 p.m. | OK | GNU C++14 | TESTS | 34 | 109 | 16896000 | ||
221704120 | xinjianwenben | B | Sept. 3, 2023, 2:31 p.m. | OK | GNU C++14 | TESTS | 34 | 109 | 17100800 | ||
221726986 | TrendBattles | B | Sept. 3, 2023, 5:07 p.m. | OK | GNU C++14 | TESTS | 34 | 109 | 17612800 | ||
221699877 | anonymuspj3.0 | B | Sept. 3, 2023, 2:08 p.m. | OK | GNU C++17 | TESTS | 34 | 78 | 1536000 | ||
221699657 | anonymuspj3.0 | B | Sept. 3, 2023, 2:07 p.m. | OK | GNU C++17 | TESTS | 34 | 78 | 1536000 | ||
221700029 | legend479 mohak3404 itschirag_0203 | B | Sept. 3, 2023, 2:09 p.m. | OK | GNU C++17 | TESTS | 34 | 93 | 4198400 | ||
221755694 | _cereal_killer_ | B | Sept. 3, 2023, 10:54 p.m. | OK | GNU C++17 | TESTS | 34 | 108 | 1638400 | ||
221744107 | onusparta | B | Sept. 3, 2023, 7:38 p.m. | OK | GNU C++17 | TESTS | 34 | 108 | 4710400 | ||
221773621 | shb123 oipotato | B | Sept. 4, 2023, 5:26 a.m. | OK | GNU C++17 | TESTS | 34 | 108 | 13209600 | ||
221698420 | anonymuspj3.0 | B | Sept. 3, 2023, 2 p.m. | OK | GNU C++17 | TESTS | 34 | 109 | 1638400 | ||
221719608 | johnwang58 | B | Sept. 3, 2023, 4:13 p.m. | OK | GNU C++17 | TESTS | 34 | 109 | 1638400 | ||
221706504 | psc233 | B | Sept. 3, 2023, 2:45 p.m. | OK | GNU C++17 | TESTS | 34 | 109 | 1638400 | ||
221698890 | dreamcat | B | Sept. 3, 2023, 2:03 p.m. | OK | GNU C++17 | TESTS | 34 | 109 | 1638400 | ||
221706064 | Hackerzoe | B | Sept. 3, 2023, 2:42 p.m. | OK | GNU C++17 (64) | TESTS | 34 | 77 | 19148800 | ||
221698843 | mssohel_rana Shamim97 Mercersfire | B | Sept. 3, 2023, 2:03 p.m. | OK | GNU C++17 (64) | TESTS | 34 | 77 | 24883200 | ||
221697815 | 0x0000 | B | Sept. 3, 2023, 1:57 p.m. | OK | GNU C++17 (64) | TESTS | 34 | 77 | 48128000 | ||
221696974 | Ptsh_368 | B | Sept. 3, 2023, 1:53 p.m. | OK | GNU C++17 (64) | TESTS | 34 | 78 | 1638400 | ||
221760091 | Capps | B | Sept. 4, 2023, 1:05 a.m. | OK | GNU C++17 (64) | TESTS | 34 | 78 | 16486400 | ||
221762084 | Shamim97 | B | Sept. 4, 2023, 1:57 a.m. | OK | GNU C++17 (64) | TESTS | 34 | 78 | 24883200 | ||
221757878 | hellojim | B | Sept. 4, 2023, 12:03 a.m. | OK | GNU C++17 (64) | TESTS | 34 | 78 | 48128000 | ||
221774202 | Linver | B | Sept. 4, 2023, 5:34 a.m. | OK | GNU C++17 (64) | TESTS | 34 | 93 | 6041600 | ||
221713936 | jahid_hridoy | B | Sept. 3, 2023, 3:33 p.m. | OK | GNU C++17 (64) | TESTS | 34 | 93 | 8396800 | ||
221711251 | __Achilles | B | Sept. 3, 2023, 3:15 p.m. | OK | GNU C++17 (64) | TESTS | 34 | 93 | 8806400 | ||
221699383 | nguyenducthien808 | B | Sept. 3, 2023, 2:05 p.m. | OK | GNU C++20 (64) | TESTS | 34 | 46 | 1638400 | ||
221747232 | 36champ | B | Sept. 3, 2023, 8:13 p.m. | OK | GNU C++20 (64) | TESTS | 34 | 46 | 1638400 | ||
221729574 | _LONE__WOLF_ | B | Sept. 3, 2023, 5:30 p.m. | OK | GNU C++20 (64) | TESTS | 34 | 46 | 3174400 | ||
221715496 | SANYASI_RAJA | B | Sept. 3, 2023, 3:44 p.m. | OK | GNU C++20 (64) | TESTS | 34 | 61 | 3276800 | ||
221697503 | SpryzenValtryek | B | Sept. 3, 2023, 1:56 p.m. | OK | GNU C++20 (64) | TESTS | 34 | 62 | 1638400 | ||
221724968 | 247103 | B | Sept. 3, 2023, 4:53 p.m. | OK | GNU C++20 (64) | TESTS | 34 | 62 | 1638400 | ||
221727314 | Oalmidani7 | B | Sept. 3, 2023, 5:09 p.m. | OK | GNU C++20 (64) | TESTS | 34 | 62 | 1638400 | ||
221727351 | Omar_Al_Midani | B | Sept. 3, 2023, 5:10 p.m. | OK | GNU C++20 (64) | TESTS | 34 | 62 | 1638400 | ||
221732224 | the_hyp0cr1t3 | B | Sept. 3, 2023, 5:55 p.m. | OK | GNU C++20 (64) | TESTS | 34 | 62 | 1638400 | ||
221761442 | Astral0 | B | Sept. 4, 2023, 1:40 a.m. | OK | GNU C++20 (64) | TESTS | 34 | 62 | 1638400 | ||
221747508 | k1rill_fedoseev | B | Sept. 3, 2023, 8:16 p.m. | OK | Go | TESTS | 34 | 62 | 12492800 | ||
221745566 | k1rill_fedoseev | B | Sept. 3, 2023, 7:53 p.m. | OK | Go | TESTS | 34 | 62 | 16179200 | ||
221702753 | theSSS | B | Sept. 3, 2023, 2:23 p.m. | OK | Java 11 | TESTS | 34 | 452 | 18944000 | ||
221770475 | imsaurabhkhare | B | Sept. 4, 2023, 4:36 a.m. | OK | Java 11 | TESTS | 34 | 655 | 0 | ||
221697002 | Saurabh124 | B | Sept. 3, 2023, 1:53 p.m. | OK | Java 11 | TESTS | 34 | 701 | 0 | ||
221701669 | kanna30102004 vighnesh7 goutham4126 | B | Sept. 3, 2023, 2:18 p.m. | OK | Java 11 | TESTS | 34 | 732 | 7577600 | ||
221712154 | Ankush_r PramitKarki girisarthak | B | Sept. 3, 2023, 3:21 p.m. | OK | Java 11 | TESTS | 34 | 811 | 9420800 | ||
221692674 | kamranm | B | Sept. 3, 2023, 1:31 p.m. | OK | Java 17 | TESTS | 34 | 280 | 201830400 | ||
221734288 | vaibhav_1710 | B | Sept. 3, 2023, 6:16 p.m. | OK | Java 17 | TESTS | 34 | 327 | 23756800 | ||
221694124 | American_Eagle | B | Sept. 3, 2023, 1:38 p.m. | OK | Java 17 | TESTS | 34 | 545 | 18534400 | ||
221695822 | not_just_rr divyansh956 Mochu | B | Sept. 3, 2023, 1:47 p.m. | OK | Java 17 | TESTS | 34 | 561 | 27136000 | ||
221731158 | layalShakhashiro | B | Sept. 3, 2023, 5:45 p.m. | OK | Java 17 | TESTS | 34 | 795 | 45465600 | ||
221695487 | divyanshubissa88 | B | Sept. 3, 2023, 1:45 p.m. | OK | Java 17 | TESTS | 34 | 842 | 11059200 | ||
221719232 | zahraahu codo_shinitshi2004 MMM2K3 | B | Sept. 3, 2023, 4:10 p.m. | OK | Java 17 | TESTS | 34 | 950 | 29388800 | ||
221692147 | 1091857051 | B | Sept. 3, 2023, 1:28 p.m. | OK | Java 8 | TESTS | 34 | 202 | 0 | ||
221699475 | MMufinn | B | Sept. 3, 2023, 2:06 p.m. | OK | MS C++ 2017 | TESTS | 34 | 296 | 2048000 | ||
221713741 | garimanjohal | B | Sept. 3, 2023, 3:32 p.m. | OK | MS C++ 2017 | TESTS | 34 | 358 | 5120000 | ||
221692387 | meghaarora2001 | B | Sept. 3, 2023, 1:29 p.m. | OK | PHP | TESTS | 34 | 124 | 42086400 | ||
221692118 | abhishekw836 | B | Sept. 3, 2023, 1:28 p.m. | OK | PHP | TESTS | 34 | 124 | 42086400 | ||
221723124 | Vashi | B | Sept. 3, 2023, 4:39 p.m. | OK | PyPy 3 | TESTS | 34 | 233 | 22425600 | ||
221738769 | tejas558 | B | Sept. 3, 2023, 6:52 p.m. | OK | PyPy 3 | TESTS | 34 | 358 | 17305600 | ||
221694119 | MadrasMacho | B | Sept. 3, 2023, 1:38 p.m. | OK | PyPy 3 | TESTS | 34 | 374 | 17920000 | ||
221711941 | seeforty4040 | B | Sept. 3, 2023, 3:20 p.m. | OK | PyPy 3 | TESTS | 34 | 390 | 22016000 | ||
221724383 | Ruibin dindeuh | B | Sept. 3, 2023, 4:49 p.m. | OK | PyPy 3-64 | TESTS | 34 | 140 | 21913600 | ||
221694828 | CherryCocoa | B | Sept. 3, 2023, 1:42 p.m. | OK | PyPy 3-64 | TESTS | 34 | 140 | 25702400 | ||
221729412 | ALEX_PRO | B | Sept. 3, 2023, 5:29 p.m. | OK | PyPy 3-64 | TESTS | 34 | 156 | 27648000 | ||
221757593 | alpy123 | B | Sept. 3, 2023, 11:55 p.m. | OK | PyPy 3-64 | TESTS | 34 | 170 | 27750400 | ||
221705589 | prakhar2704 sbdkdlalit0112 lomlit | B | Sept. 3, 2023, 2:39 p.m. | OK | PyPy 3-64 | TESTS | 34 | 171 | 27955200 | ||
221694225 | Axeley | B | Sept. 3, 2023, 1:38 p.m. | OK | PyPy 3-64 | TESTS | 34 | 171 | 28774400 | ||
221698691 | TrongHieuHA0507 bkdn23.dotuangv bkdn23.thuonguyenvan | B | Sept. 3, 2023, 2:02 p.m. | OK | PyPy 3-64 | TESTS | 34 | 171 | 31129600 | ||
221746399 | bpdolson | B | Sept. 3, 2023, 8:03 p.m. | OK | PyPy 3-64 | TESTS | 34 | 187 | 25190400 | ||
221706227 | edgerunner oneku16 Tutatuta | B | Sept. 3, 2023, 2:43 p.m. | OK | PyPy 3-64 | TESTS | 34 | 187 | 25702400 | ||
221761466 | RobinFromTheHood | B | Sept. 4, 2023, 1:40 a.m. | OK | PyPy 3-64 | TESTS | 34 | 187 | 27340800 | ||
221722135 | K_a_r_a_s_u | B | Sept. 3, 2023, 4:32 p.m. | OK | Python 3 | TESTS | 34 | 202 | 26521600 | ||
221702915 | GesusM | B | Sept. 3, 2023, 2:24 p.m. | OK | Python 3 | TESTS | 34 | 233 | 27033600 | ||
221696072 | MunirKP | B | Sept. 3, 2023, 1:48 p.m. | OK | Python 3 | TESTS | 34 | 233 | 28364800 | ||
221693385 | ruvxei | B | Sept. 3, 2023, 1:34 p.m. | OK | Python 3 | TESTS | 34 | 233 | 32256000 | ||
221698771 | mamun_cseian | B | Sept. 3, 2023, 2:02 p.m. | OK | Python 3 | TESTS | 34 | 233 | 33996800 | ||
221727623 | godzillaa | B | Sept. 3, 2023, 5:12 p.m. | OK | Python 3 | TESTS | 34 | 234 | 28057600 | ||
221773823 | Sai_Rohit-30021 | B | Sept. 4, 2023, 5:28 a.m. | OK | Python 3 | TESTS | 34 | 248 | 28057600 | ||
221765853 | Umar_SundarSTEM | B | Sept. 4, 2023, 3:17 a.m. | OK | Python 3 | TESTS | 34 | 248 | 28057600 | ||
221765829 | Black_Killer | B | Sept. 4, 2023, 3:17 a.m. | OK | Python 3 | TESTS | 34 | 248 | 28057600 | ||
221770814 | dasarashirisha2004 | B | Sept. 4, 2023, 4:42 a.m. | OK | Python 3 | TESTS | 34 | 249 | 28057600 | ||
221727463 | 0npata | B | Sept. 3, 2023, 5:11 p.m. | OK | Rust 2021 | TESTS | 34 | 31 | 7372800 | ||
221701828 | Rajveer_100 | B | Sept. 3, 2023, 2:18 p.m. | OK | Rust 2021 | TESTS | 34 | 77 | 29491200 |
Back to search problems