Codeforces Round 574 (Div. 2)

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
1195 Codeforces Round 574 (Div. 2) FINISHED False 7200 168449099 July 17, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4674 ) D2 Submarine in the Rybinsk Sea (hard edition) PROGRAMMING combinatorics math number theory 1700

B"This problem differs from the previous one only in the absence of the constraint on the equal length of all numbers a_1, a_2, ... , a_n . A team of SIS students is going to make a trip on a submarine. Their target is an ancient treasure in a sunken ship lying on the bottom of the Great Rybinsk sea. Unfortunately, the students don't know the coordinates of the ship, so they asked Meshanya (who is a hereditary mage) to help them. He agreed to help them, but only if they solve his problem. Let's denote a function that alternates digits of two numbers f(a_1 a_2 ... a_{p - 1} a_p, b_1 b_2 ... b_{q - 1} b_q) , where a_1 ... a_p and b_1 ... b_q are digits of two integers written in the decimal notation without leading zeros. In other words, the function f(x, y) alternately shuffles the digits of the numbers x and y by writing them from the lowest digits to the older ones, starting with the number y . The result of the function is also built from right to left (that is, from the lower digits to the older ones). If the digits of one of the arguments have ended, then the remaining digits of the other argument are written out. Familiarize with examples and formal definitions of the function below. For example: f(1111, 2222) = 12121212 f(7777, 888) = 7787878 f(33, 44444) = 4443434 f(555, 6) = 5556 f(111, 2222) = 2121212 Formally, Mishanya gives you an array consisting of n integers a_i , your task is to help students to calculate sum_{i = 1}^{n} sum_{j = 1}^{n} f(a_i, a_j) modulo 998 ,244 ,353 . The first line of the input contains a single integer n ( 1 <= n <= 100 ,000 ) -- the number of elements in the array. The second line of the input contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- the elements of the array. Print the answer modulo 998 ,244 ,353 . "...

Tutorials

Разбор Codeforces Round #574 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57504456 Elisey_Muxin D2 July 22, 2019, 11:30 a.m. OK Clang++17 Diagnostics TESTS 33 1996 3481600 1700
58201602 hatsuyuki15 D2 Aug. 3, 2019, 4:41 a.m. OK D TESTS 33 187 512000 1700
57238332 fishybestgirl D2 July 17, 2019, 4:32 p.m. OK GNU C11 TESTS 33 296 819200 1700
57236980 4c5948 D2 July 17, 2019, 4:27 p.m. OK GNU C11 TESTS 33 467 1740800 1700
57642329 MRoy D2 July 24, 2019, 1:03 p.m. OK GNU C11 TESTS 33 670 2457600 1700
58529075 eighthundred D2 Aug. 10, 2019, 8:36 a.m. OK GNU C++11 TESTS 33 46 0 1700
57854252 chibaheit D2 July 27, 2019, 2:23 p.m. OK GNU C++11 TESTS 33 46 0 1700
57304548 HXYerror D2 July 19, 2019, 2:44 a.m. OK GNU C++11 TESTS 33 46 0 1700
57276288 _ShadowSong D2 July 18, 2019, 10:59 a.m. OK GNU C++11 TESTS 33 46 0 1700
57263627 xay5421 D2 July 18, 2019, 6:17 a.m. OK GNU C++11 TESTS 33 46 0 1700
57234725 Lohehong D2 July 17, 2019, 4:17 p.m. OK GNU C++11 TESTS 33 46 0 1700
59092506 luogu_bot3 D2 Aug. 19, 2019, 1:10 p.m. OK GNU C++11 TESTS 33 46 0 1700
60065311 HW_TXL D2 Sept. 5, 2019, 8:52 a.m. OK GNU C++11 TESTS 33 46 0 1700
60065617 HW_TXL D2 Sept. 5, 2019, 8:59 a.m. OK GNU C++11 TESTS 33 46 0 1700
57354272 yang12138 D2 July 20, 2019, 5:30 a.m. OK GNU C++11 TESTS 33 46 409600 1700
69178374 MegaOwIer D2 Jan. 20, 2020, 9:02 a.m. OK GNU C++14 TESTS 33 31 0 1700
57430308 Sait2000 D2 July 21, 2019, 12:32 a.m. OK GNU C++14 TESTS 33 46 0 1700
57261001 nandonathaniel D2 July 18, 2019, 5:08 a.m. OK GNU C++14 TESTS 33 46 0 1700
58868882 rhrnald D2 Aug. 15, 2019, 2:30 p.m. OK GNU C++14 TESTS 33 46 0 1700
57509217 GJC_xj D2 July 22, 2019, 1:07 p.m. OK GNU C++14 TESTS 33 46 0 1700
59905649 Jeffrey D2 Sept. 2, 2019, 3:15 p.m. OK GNU C++14 TESTS 33 46 0 1700
58127066 cuom1999 D2 Aug. 1, 2019, 12:57 p.m. OK GNU C++14 TESTS 33 46 7577600 1700
60634461 imathi D2 Sept. 15, 2019, 12:54 p.m. OK GNU C++14 TESTS 33 61 0 1700
57832373 Z3L5M D2 July 27, 2019, 6:28 a.m. OK GNU C++14 TESTS 33 61 0 1700
64348527 LJFan D2 Nov. 6, 2019, 7:24 a.m. OK GNU C++14 TESTS 33 62 0 1700
57833889 neal D2 July 27, 2019, 6:55 a.m. OK GNU C++17 TESTS 33 31 0 1700
57241261 ivan100sic D2 July 17, 2019, 5:42 p.m. OK GNU C++17 TESTS 33 31 0 1700
57436431 dpkun D2 July 21, 2019, 5:02 a.m. OK GNU C++17 TESTS 33 46 0 1700
57350003 forgottencsc D2 July 20, 2019, 2:50 a.m. OK GNU C++17 TESTS 33 46 0 1700
57266348 fly_073 D2 July 18, 2019, 7:18 a.m. OK GNU C++17 TESTS 33 46 0 1700
57232476 Keven D2 July 17, 2019, 4:07 p.m. OK GNU C++17 TESTS 33 46 0 1700
59092630 vjudge4 D2 Aug. 19, 2019, 1:12 p.m. OK GNU C++17 TESTS 33 46 0 1700
57965489 Azrael_420 D2 July 30, 2019, 2:29 a.m. OK GNU C++17 TESTS 33 46 0 1700
57707227 oskarfiuk1 D2 July 24, 2019, 8:48 p.m. OK GNU C++17 TESTS 33 46 0 1700
58155846 andyseve D2 Aug. 2, 2019, 5:34 a.m. OK GNU C++17 TESTS 33 46 409600 1700
59752091 reanimatorzon D2 Aug. 30, 2019, 4:16 p.m. OK Go TESTS 33 420 0 1700
57300299 Daario D2 July 18, 2019, 10:39 p.m. OK Go TESTS 33 639 0 1700
57869204 predicate D2 July 28, 2019, 12:03 a.m. OK Go TESTS 33 670 1638400 1700
57345434 old_boo D2 July 19, 2019, 10:16 p.m. OK Haskell TESTS 33 1231 27340800 1700
69865693 GiantTornado D2 Jan. 30, 2020, 8:18 p.m. OK Java 11 TESTS 33 1653 0 1700
57244249 jdurie D2 July 17, 2019, 6:38 p.m. OK Java 8 TESTS 33 156 0 1700
61446690 TaGGy D2 Sept. 28, 2019, 9:37 p.m. OK Java 8 TESTS 33 186 0 1700
57236821 balazsbukva D2 July 17, 2019, 4:27 p.m. OK Java 8 TESTS 33 202 2355200 1700
57238064 vaibhavpulastya D2 July 17, 2019, 4:32 p.m. OK Java 8 TESTS 33 233 0 1700
62400390 optimaniax D2 Oct. 12, 2019, 7:10 a.m. OK Java 8 TESTS 33 265 0 1700
57481661 SpargelTarzan D2 July 22, 2019, 2:43 a.m. OK Java 8 TESTS 33 265 5939200 1700
57241197 Dukkha D2 July 17, 2019, 5:41 p.m. OK Java 8 TESTS 33 280 0 1700
57238087 Garett D2 July 17, 2019, 4:32 p.m. OK Java 8 TESTS 33 311 0 1700
57259518 eng_hardik D2 July 18, 2019, 4:17 a.m. OK Java 8 TESTS 33 327 0 1700
57233669 real.emerald D2 July 17, 2019, 4:13 p.m. OK Java 8 TESTS 33 327 0 1700
57261090 Spheniscine D2 July 18, 2019, 5:11 a.m. OK Kotlin TESTS 33 374 5324800 1700
57261287 Spheniscine D2 July 18, 2019, 5:18 a.m. OK Kotlin TESTS 33 390 5324800 1700
57342479 old_boo D2 July 19, 2019, 7:44 p.m. OK Kotlin TESTS 33 405 5427200 1700
57268261 Spheniscine D2 July 18, 2019, 7:58 a.m. OK Kotlin TESTS 33 421 5324800 1700
57267432 Spheniscine D2 July 18, 2019, 7:40 a.m. OK Kotlin TESTS 33 436 5324800 1700
57269010 Spheniscine D2 July 18, 2019, 8:14 a.m. OK Kotlin TESTS 33 436 5324800 1700
57250473 Tlatoani D2 July 17, 2019, 10:26 p.m. OK Kotlin TESTS 33 732 0 1700
57825153 kotter D2 July 27, 2019, 2:36 a.m. OK Kotlin TESTS 33 733 6758400 1700
57237679 IamLev D2 July 17, 2019, 4:30 p.m. OK Kotlin TESTS 33 967 6144000 1700
57271729 og.kostya D2 July 18, 2019, 9:08 a.m. OK Mono C# TESTS 33 77 10035200 1700
57238606 aliaksei.smaliuk D2 July 17, 2019, 4:33 p.m. OK Mono C# TESTS 33 139 16588800 1700
57299955 omikad D2 July 18, 2019, 10:17 p.m. OK Mono C# TESTS 33 218 28979200 1700
58622769 Salatik231166 D2 Aug. 11, 2019, 4:22 p.m. OK Mono C# TESTS 33 233 20582400 1700
58622842 Salatik231166 D2 Aug. 11, 2019, 4:23 p.m. OK Mono C# TESTS 33 249 20582400 1700
57232649 eki D2 July 17, 2019, 4:08 p.m. OK Mono C# TESTS 33 530 11673600 1700
57285324 Yupiteru D2 July 18, 2019, 2:23 p.m. OK Mono C# TESTS 33 670 159027200 1700
57238553 Yupiteru D2 July 17, 2019, 4:33 p.m. OK Mono C# TESTS 33 717 159027200 1700
57240898 qcwlmqy D2 July 17, 2019, 5:37 p.m. OK MS C++ TESTS 33 46 1536000 1700
57976684 vjudge3 D2 July 30, 2019, 7:56 a.m. OK MS C++ TESTS 33 109 819200 1700
57640888 vjudge3 D2 July 24, 2019, 12:35 p.m. OK MS C++ TESTS 33 124 819200 1700
59082770 vjudge2 D2 Aug. 19, 2019, 9:50 a.m. OK MS C++ TESTS 33 124 1228800 1700
57797389 vjudge3 D2 July 26, 2019, 11:57 a.m. OK MS C++ TESTS 33 124 1638400 1700
59091935 vjudge4 D2 Aug. 19, 2019, 1 p.m. OK MS C++ TESTS 33 139 409600 1700
59087739 vjudge4 D2 Aug. 19, 2019, 11:39 a.m. OK MS C++ TESTS 33 140 1228800 1700
59087893 vjudge4 D2 Aug. 19, 2019, 11:42 a.m. OK MS C++ TESTS 33 140 1228800 1700
64157447 vjudge4 D2 Nov. 3, 2019, 1:17 p.m. OK MS C++ TESTS 33 187 1638400 1700
59599992 vjudge2 D2 Aug. 28, 2019, 5:19 a.m. OK MS C++ TESTS 33 218 819200 1700
57243409 youx D2 July 17, 2019, 6:19 p.m. OK MS C++ 2017 TESTS 33 78 2662400 1700
57317820 succ1815406055 D2 July 19, 2019, 8:50 a.m. OK MS C++ 2017 TESTS 33 93 1228800 1700
57299534 omerb.zeybek D2 July 18, 2019, 9:48 p.m. OK MS C++ 2017 TESTS 33 139 0 1700
57236621 Hiedo D2 July 17, 2019, 4:26 p.m. OK MS C++ 2017 TESTS 33 186 409600 1700
58500664 Yanhui D2 Aug. 9, 2019, 2:08 p.m. OK MS C++ 2017 TESTS 33 202 2457600 1700
57490286 shijieshu D2 July 22, 2019, 6:51 a.m. OK MS C++ 2017 TESTS 33 218 9625600 1700
57237597 q3540555 D2 July 17, 2019, 4:30 p.m. OK MS C++ 2017 TESTS 33 249 32870400 1700
57272997 hwangganzi D2 July 18, 2019, 9:37 a.m. OK MS C++ 2017 TESTS 33 264 2457600 1700
57956634 dimasidorenko D2 July 29, 2019, 7:05 p.m. OK MS C++ 2017 TESTS 33 280 2457600 1700
57955925 dimasidorenko D2 July 29, 2019, 6:43 p.m. OK MS C++ 2017 TESTS 33 280 2457600 1700
58938074 yumtam D2 Aug. 17, 2019, 5:36 a.m. OK PyPy 2 TESTS 33 202 9011200 1700
57242135 c1729 D2 July 17, 2019, 5:55 p.m. OK PyPy 2 TESTS 33 467 8396800 1700
57240790 c1729 D2 July 17, 2019, 5:36 p.m. OK PyPy 2 TESTS 33 483 8499200 1700
57238616 c1729 D2 July 17, 2019, 4:33 p.m. OK PyPy 2 TESTS 33 592 8499200 1700
57243489 ketankr9 D2 July 17, 2019, 6:21 p.m. OK PyPy 2 TESTS 33 608 8396800 1700
57422071 Helli.code D2 July 20, 2019, 6:55 p.m. OK PyPy 2 TESTS 33 717 8396800 1700
57241034 hyta4982 D2 July 17, 2019, 5:39 p.m. OK PyPy 2 TESTS 33 779 8192000 1700
57258085 Zeyu D2 July 18, 2019, 3:25 a.m. OK PyPy 2 TESTS 33 1184 7168000 1700
57257735 thuutin D2 July 18, 2019, 3:13 a.m. OK PyPy 2 TESTS 33 1185 11878400 1700
58380231 _MIT D2 Aug. 6, 2019, 9:39 a.m. OK PyPy 2 TESTS 33 1263 7987200 1700
64681768 O_Ramanujan D2 Nov. 11, 2019, 10:19 a.m. OK PyPy 3 TESTS 33 249 10649600 1700
57246809 aberent D2 July 17, 2019, 7:49 p.m. OK PyPy 3 TESTS 33 327 18841600 1700
57360485 HybridSkills D2 July 20, 2019, 7:34 a.m. OK PyPy 3 TESTS 33 358 25292800 1700
57240609 tanon710 D2 July 17, 2019, 5:34 p.m. OK PyPy 3 TESTS 33 561 11468800 1700
57278382 souradeep.99 D2 July 18, 2019, 11:48 a.m. OK PyPy 3 TESTS 33 561 12288000 1700
68427037 nealzane D2 Jan. 9, 2020, 4:21 a.m. OK PyPy 3 TESTS 33 561 15564800 1700
57262934 kalmykov D2 July 18, 2019, 6:02 a.m. OK PyPy 3 TESTS 33 592 12390400 1700
57320507 lawyerphx D2 July 19, 2019, 9:48 a.m. OK PyPy 3 TESTS 33 623 12492800 1700
58369684 tai45236 D2 Aug. 6, 2019, 6:02 a.m. OK PyPy 3 TESTS 33 733 10547200 1700
57895308 jokkebk D2 July 28, 2019, 1:19 p.m. OK PyPy 3 TESTS 33 733 12185600 1700
57234435 pkuderov D2 July 17, 2019, 4:16 p.m. OK Python 3 TESTS 33 1185 8601600 1700
57342239 rinzu D2 July 19, 2019, 7:32 p.m. OK Ruby TESTS 33 1512 17100800 1700
57242888 Leonardone D2 July 17, 2019, 6:08 p.m. OK Rust TESTS 33 124 2662400 1700
57338605 kobae964 D2 July 19, 2019, 5:20 p.m. OK Rust TESTS 33 218 1536000 1700

remove filters

Back to search problems