Codeforces Round 678 (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
1436 Codeforces Round 678 (Div. 2) FINISHED False 7800 133631663 Oct. 24, 2020, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 537 ) F Sum Over Subsets PROGRAMMING combinatorics math number theory

B"You are given a multiset S . Over all pairs of subsets A and B , such that: find the sum of sum_{x in A}{x} cdot sum_{x in B}{x} , modulo 998 ,244 ,353 . The first line contains one integer m ( 1 <= m <= 10^5 ): the number of different values in the multiset S . Each of the next m lines contains two integers a_i , freq_i ( 1 <= a_i <= 10^5, 1 <= freq_i <= 10^9 ). Element a_i appears in the multiset S freq_i times. All a_i are different. Print the required sum, modulo 998 ,244 ,353 . A multiset is a set where elements are allowed to coincide. |X| is the cardinality of a set X , the number of elements in it. A subset B : Set A is a subset of a set B . In the first example B= {1 }, A= {1,2 } and B= {2 }, A= {1, 2 } have a product equal to 1 cdot3 + 2 cdot3=9 . Other pairs of A and B don't satisfy the given constraints. "...

Tutorials

Codeforces Round #678 (Div. 2). Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
96740996 sunzihao F Oct. 26, 2020, 2:40 a.m. OK GNU C++11 TESTS 64 93 1740800
96737273 hyjhyj F Oct. 26, 2020, 12:33 a.m. OK GNU C++11 TESTS 64 109 17715200
96632056 hs-black F Oct. 25, 2020, 7:09 a.m. OK GNU C++11 TESTS 64 124 6451200
96739729 liberShip F Oct. 26, 2020, 1:58 a.m. OK GNU C++11 TESTS 64 140 2457600
96642247 Lu_Anlai F Oct. 25, 2020, 9:37 a.m. OK GNU C++11 TESTS 64 171 1433600
96642091 Lu_Anlai F Oct. 25, 2020, 9:35 a.m. OK GNU C++11 TESTS 64 186 1843200
96748030 Rainbow_sjy F Oct. 26, 2020, 5:37 a.m. OK GNU C++11 TESTS 64 187 12800000
96641841 Lu_Anlai F Oct. 25, 2020, 9:31 a.m. OK GNU C++11 TESTS 64 202 1228800
96687537 vjudge4 F Oct. 25, 2020, 12:33 p.m. OK GNU C++11 TESTS 64 217 6451200
96637619 Acceptedumbrella F Oct. 25, 2020, 8:33 a.m. OK GNU C++11 TESTS 64 218 4812800
96615092 SuperJ6 F Oct. 24, 2020, 9:34 p.m. OK GNU C++14 TESTS 64 155 1638400
96597012 danya090699 F Oct. 24, 2020, 5:45 p.m. OK GNU C++14 TESTS 63 202 1228800
96601407 MaGaroo F Oct. 24, 2020, 6:07 p.m. OK GNU C++14 TESTS 63 202 3993600
96610716 Toxic_Codechef_Admin F Oct. 24, 2020, 7:59 p.m. OK GNU C++14 TESTS 64 233 1228800
96600043 dlalswp25 F Oct. 24, 2020, 6:04 p.m. OK GNU C++14 TESTS 63 233 1228800
96625228 sh1194 F Oct. 25, 2020, 4:32 a.m. OK GNU C++14 TESTS 64 249 1228800
96619088 clyring F Oct. 25, 2020, 12:07 a.m. OK GNU C++14 TESTS 64 265 15974400
96714264 wllw2011 F Oct. 25, 2020, 4:01 p.m. OK GNU C++14 TESTS 64 452 1740800
96726660 WLZ F Oct. 25, 2020, 7:23 p.m. OK GNU C++14 TESTS 64 530 3174400
96608213 jairadheyshyam F Oct. 24, 2020, 7:17 p.m. OK GNU C++14 TESTS 64 655 3584000
96620563 Falcon__ F Oct. 25, 2020, 1:16 a.m. OK GNU C++17 TESTS 64 124 3788800
96598903 sam.rei F Oct. 24, 2020, 5:55 p.m. OK GNU C++17 TESTS 63 140 1331200
96737644 abeker F Oct. 26, 2020, 12:49 a.m. OK GNU C++17 TESTS 64 140 2048000
96644128 rgnerdplayer F Oct. 25, 2020, 10:03 a.m. OK GNU C++17 TESTS 64 171 1331200
96607599 Ra16bit F Oct. 24, 2020, 7:08 p.m. OK GNU C++17 TESTS 64 171 2150400
96599929 Bench0310 F Oct. 24, 2020, 6:03 p.m. OK GNU C++17 TESTS 63 186 4915200
96609885 ErdemKirez F Oct. 24, 2020, 7:44 p.m. OK GNU C++17 TESTS 64 187 819200
96597342 2qbingxuan F Oct. 24, 2020, 5:47 p.m. OK GNU C++17 TESTS 63 202 3993600
96602392 SheepRanger F Oct. 24, 2020, 6:12 p.m. OK GNU C++17 TESTS 63 249 7987200
96620839 timf1089 F Oct. 25, 2020, 1:25 a.m. OK GNU C++17 TESTS 64 264 10956800
96607067 CoderAnshu F Oct. 24, 2020, 6:59 p.m. OK GNU C++17 (64) TESTS 64 62 1228800
96598694 natsugiri F Oct. 24, 2020, 5:53 p.m. OK GNU C++17 (64) TESTS 63 62 1228800
96625769 Marckess F Oct. 25, 2020, 4:56 a.m. OK GNU C++17 (64) TESTS 64 77 2457600
96617767 Eureka17 F Oct. 24, 2020, 11:08 p.m. OK GNU C++17 (64) TESTS 64 93 819200
96597159 woofwoof321 F Oct. 24, 2020, 5:46 p.m. OK GNU C++17 (64) TESTS 63 93 1228800
96602191 wrinx F Oct. 24, 2020, 6:10 p.m. OK GNU C++17 (64) TESTS 63 93 1638400
96599115 rama_pang F Oct. 24, 2020, 5:56 p.m. OK GNU C++17 (64) TESTS 63 93 2867200
96621524 wlzhouzhuan F Oct. 25, 2020, 1:49 a.m. OK GNU C++17 (64) TESTS 64 93 5324800
96596852 Celesta F Oct. 24, 2020, 5:44 p.m. OK GNU C++17 (64) TESTS 63 109 3379200
96718058 haruki_K F Oct. 25, 2020, 4:56 p.m. OK GNU C++17 (64) TESTS 64 109 3686400
96617803 2020akadaver F Oct. 24, 2020, 11:10 p.m. OK Java 8 TESTS 64 873 3788800
96596713 Tlatoani F Oct. 24, 2020, 5:44 p.m. OK Kotlin TESTS 63 716 31436800

remove filters

Back to search problems