Codeforces Round 592 (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
1244 Codeforces Round 592 (Div. 2) FINISHED False 7200 166481687 Oct. 13, 2019, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7732 ) C The Football Season PROGRAMMING brute force math number theory 1900

B'The football season has just ended in Berland. According to the rules of Berland football, each match is played between two teams. The result of each match is either a draw, or a victory of one of the playing teams. If a team wins the match, it gets w points, and the opposing team gets 0 points. If the game results in a draw, both teams get d points. The manager of the Berland capital team wants to summarize the results of the season, but, unfortunately, all information about the results of each match is lost. The manager only knows that the team has played n games and got p points for them. You have to determine three integers x , y and z -- the number of wins, draws and loses of the team. If there are multiple answers, print any of them. If there is no suitable triple (x, y, z) , report about it. The first line contains four integers n , p , w and d (1 <= n <= 10^{12}, 0 <= p <= 10^{17}, 1 <= d < w <= 10^{5}) -- the number of games, the number of points the team got, the number of points awarded for winning a match, and the number of points awarded for a draw, respectively. Note that w > d , so the number of points awarded for winning is strictly greater than the number of points awarded for draw. If there is no answer, print -1 . Otherwise print three non-negative integers x , y and z -- the number of wins, draws and losses of the team. If there are multiple possible triples (x, y, z) , print any of them. The numbers should meet the following conditions: One of the possible answers in the first example -- 17 wins, 9 draws and 4 losses. Then the team got 17 cdot 3 + 9 cdot 1 = 60 points in 17 + 9 + 4 = 30 games. In the second example the maximum possible score is 10 cdot 5 = 50 . Since p = 51 , there is no answer. In the third example the team got 0 points, so all 20 games were l'...

Tutorials

Codeforces Round #592 (Div. 2) Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
62577416 Sen_cdfo C Oct. 14, 2019, 4:18 p.m. OK Clang++17 Diagnostics TESTS 70 46 0 1900
62520833 Antoine C Oct. 13, 2019, 3:43 p.m. OK Clang++17 Diagnostics TESTS 68 62 0 1900
66156679 quevangel C Dec. 1, 2019, 11:26 p.m. OK D TESTS 70 31 0 1900
66158269 quevangel C Dec. 2, 2019, 1:37 a.m. OK D TESTS 70 31 0 1900
62517546 daut-dlang C Oct. 13, 2019, 2:48 p.m. OK D TESTS 68 31 4198400 1900
62546427 dblark C Oct. 14, 2019, 6:39 a.m. OK FPC TESTS 68 31 0 1900
62532301 melery_kin C Oct. 13, 2019, 7:58 p.m. OK FPC TESTS 68 31 0 1900
62916398 Windy_VN C Oct. 19, 2019, 8:47 a.m. OK FPC TESTS 70 46 0 1900
65339784 torque_459 C Nov. 19, 2019, 10:30 a.m. OK GNU C11 TESTS 70 31 0 1900
64772087 pengin_2000 C Nov. 13, 2019, 12:54 a.m. OK GNU C11 TESTS 70 31 0 1900
63296435 yugao C Oct. 24, 2019, 1:05 p.m. OK GNU C11 TESTS 70 31 0 1900
63158268 Haizzed C Oct. 22, 2019, 3:29 p.m. OK GNU C11 TESTS 70 31 0 1900
62598715 luogu_bot1 C Oct. 15, 2019, 3:58 a.m. OK GNU C11 TESTS 70 31 0 1900
62609583 lzhl C Oct. 15, 2019, 9:12 a.m. OK GNU C11 TESTS 70 31 0 1900
62664494 MOHIR_MBSTU C Oct. 16, 2019, 7:10 a.m. OK GNU C11 TESTS 70 31 0 1900
62761095 usagami C Oct. 17, 2019, 6:53 a.m. OK GNU C11 TESTS 70 31 0 1900
62761115 usagami C Oct. 17, 2019, 6:53 a.m. OK GNU C11 TESTS 70 31 0 1900
62884290 pranaykanjolia C Oct. 18, 2019, 5:49 p.m. OK GNU C11 TESTS 70 31 0 1900
68972491 vjudge5 C Jan. 17, 2020, 7:33 a.m. OK GNU C++11 TESTS 70 31 0 1900
69219145 tvdlhp10tin C Jan. 21, 2020, 3:20 a.m. OK GNU C++11 TESTS 70 31 0 1900
69223749 bagpipe C Jan. 21, 2020, 6:11 a.m. OK GNU C++11 TESTS 70 31 0 1900
69669844 jatinagrawal C Jan. 28, 2020, 12:38 p.m. OK GNU C++11 TESTS 70 31 0 1900
69723479 dragon_eye C Jan. 29, 2020, 11:29 a.m. OK GNU C++11 TESTS 70 31 0 1900
69008320 longxiaokong C Jan. 18, 2020, 1:51 a.m. OK GNU C++11 TESTS 70 31 0 1900
68977557 0qo_oq0 C Jan. 17, 2020, 9:25 a.m. OK GNU C++11 TESTS 70 31 0 1900
68976519 vjudge2 C Jan. 17, 2020, 9:02 a.m. OK GNU C++11 TESTS 70 31 0 1900
68975592 Shuns C Jan. 17, 2020, 8:41 a.m. OK GNU C++11 TESTS 70 31 0 1900
68973690 vjudge2 C Jan. 17, 2020, 8 a.m. OK GNU C++11 TESTS 70 31 0 1900
64798477 mayiyang C Nov. 13, 2019, 1:44 p.m. OK GNU C++14 TESTS 70 15 0 1900
66172966 mad7max C Dec. 2, 2019, 11:16 a.m. OK GNU C++14 TESTS 70 30 0 1900
65821062 coldEr66 C Nov. 27, 2019, 10:33 a.m. OK GNU C++14 TESTS 70 30 0 1900
65733117 daminisherathiya C Nov. 26, 2019, 6:19 a.m. OK GNU C++14 TESTS 70 30 0 1900
65598829 MaRos C Nov. 23, 2019, 5:03 p.m. OK GNU C++14 TESTS 70 30 0 1900
65509365 darknight0409 C Nov. 22, 2019, 2:21 a.m. OK GNU C++14 TESTS 70 30 0 1900
64274937 lcs147 C Nov. 4, 2019, 8:49 p.m. OK GNU C++14 TESTS 70 30 0 1900
64274393 vjudge3 C Nov. 4, 2019, 8:32 p.m. OK GNU C++14 TESTS 70 30 0 1900
64188291 daxpatel11 C Nov. 4, 2019, 6:27 a.m. OK GNU C++14 TESTS 70 30 0 1900
63768339 Zhanzhe_Lee C Oct. 30, 2019, 7:01 a.m. OK GNU C++14 TESTS 70 30 0 1900
64752087 blaction C Nov. 12, 2019, 3:35 p.m. OK GNU C++17 TESTS 70 15 0 1900
63508495 ivandr C Oct. 26, 2019, 7:35 p.m. OK GNU C++17 TESTS 70 15 0 1900
62544943 827852427 C Oct. 14, 2019, 5:57 a.m. OK GNU C++17 TESTS 68 15 0 1900
62515395 Kallaf C Oct. 13, 2019, 2:16 p.m. OK GNU C++17 TESTS 68 15 0 1900
65231864 pengpeng00 C Nov. 17, 2019, 5:28 a.m. OK GNU C++17 TESTS 70 30 0 1900
65347221 caihonghao C Nov. 19, 2019, 1 p.m. OK GNU C++17 TESTS 70 30 0 1900
65883506 xnynzn C Nov. 27, 2019, 8:26 p.m. OK GNU C++17 TESTS 70 30 0 1900
68465359 rpkv C Jan. 9, 2020, 8:02 p.m. OK GNU C++17 TESTS 70 30 0 1900
68974723 vjudge3 C Jan. 17, 2020, 8:23 a.m. OK GNU C++17 TESTS 70 30 0 1900
69093689 vjudge4 C Jan. 19, 2020, 11:10 a.m. OK GNU C++17 TESTS 70 30 0 1900
63129888 reanimatorzon C Oct. 22, 2019, 1:52 p.m. OK Go TESTS 70 46 0 1900
62885892 ZJiaQ C Oct. 18, 2019, 6:22 p.m. OK Go TESTS 70 46 0 1900
62557893 maguroguma C Oct. 14, 2019, 11:09 a.m. OK Go TESTS 70 46 0 1900
62526938 z20124528 C Oct. 13, 2019, 5:43 p.m. OK Go TESTS 68 46 0 1900
62549929 synapse C Oct. 14, 2019, 8:10 a.m. OK Go TESTS 70 46 102400 1900
62526150 apathism C Oct. 13, 2019, 5:25 p.m. OK Haskell TESTS 68 31 102400 1900
65495302 potatmen C Nov. 21, 2019, 4:20 p.m. OK Java 11 TESTS 70 202 0 1900
69853564 TheSawan C Jan. 30, 2020, 4:20 p.m. OK Java 11 TESTS 70 217 0 1900
63863472 serafimkoo C Oct. 30, 2019, 5:09 p.m. OK Java 11 TESTS 70 218 0 1900
63654978 IslamTalipovTop C Oct. 28, 2019, 12:26 p.m. OK Java 11 TESTS 70 218 0 1900
63415442 fishdog C Oct. 26, 2019, 3:50 a.m. OK Java 11 TESTS 70 218 307200 1900
69485770 cribabby C Jan. 24, 2020, 7:29 p.m. OK Java 11 TESTS 70 233 204800 1900
64864780 Boyko_Timofey C Nov. 14, 2019, 5:34 a.m. OK Java 11 TESTS 70 234 204800 1900
64863761 AndreySibrinin C Nov. 14, 2019, 4:54 a.m. OK Java 11 TESTS 70 234 204800 1900
63217317 v0yager C Oct. 23, 2019, 6:36 a.m. OK Java 11 TESTS 70 249 204800 1900
62532172 Whiplash99 C Oct. 13, 2019, 7:54 p.m. OK Java 8 TESTS 68 108 0 1900
64752657 Nutella3000 C Nov. 12, 2019, 3:47 p.m. OK Java 8 TESTS 70 109 0 1900
63195936 Kavi.Prajapati C Oct. 22, 2019, 6:36 p.m. OK Java 8 TESTS 70 109 0 1900
62629712 Vishal_dhanani C Oct. 15, 2019, 3:04 p.m. OK Java 8 TESTS 70 109 0 1900
62611652 sumiteshn C Oct. 15, 2019, 10 a.m. OK Java 8 TESTS 70 109 0 1900
62598398 yaoct C Oct. 15, 2019, 3:42 a.m. OK Java 8 TESTS 70 109 0 1900
62597051 chojh1222 C Oct. 15, 2019, 2:39 a.m. OK Java 8 TESTS 70 109 0 1900
62590448 SlowLoris C Oct. 14, 2019, 8:48 p.m. OK Java 8 TESTS 70 109 0 1900
62588181 jenish9599 C Oct. 14, 2019, 7:43 p.m. OK Java 8 TESTS 70 109 0 1900
62578216 guillermo_sz C Oct. 14, 2019, 4:31 p.m. OK Java 8 TESTS 70 109 0 1900
62745363 walborn C Oct. 16, 2019, 9:21 p.m. OK JavaScript TESTS 70 358 10444800 1900
62539216 Spheniscine C Oct. 14, 2019, 2 a.m. OK Kotlin TESTS 68 124 0 1900
62539135 Spheniscine C Oct. 14, 2019, 1:57 a.m. OK Kotlin TESTS 68 124 0 1900
62521260 Spheniscine C Oct. 13, 2019, 3:50 p.m. OK Kotlin TESTS 68 140 0 1900
62539021 Spheniscine C Oct. 14, 2019, 1:50 a.m. OK Kotlin TESTS 68 140 0 1900
62526611 songsinger C Oct. 13, 2019, 5:36 p.m. OK Kotlin TESTS 68 155 0 1900
62526692 songsinger C Oct. 13, 2019, 5:37 p.m. OK Kotlin TESTS 68 155 0 1900
62975263 pavlo.liapota C Oct. 20, 2019, 8:21 a.m. OK Kotlin TESTS 70 155 102400 1900
62516466 Svyat C Oct. 13, 2019, 2:31 p.m. OK Kotlin TESTS 68 156 1126400 1900
62576329 predator C Oct. 14, 2019, 4 p.m. OK Kotlin TESTS 70 171 102400 1900
62752759 Variag_17 C Oct. 17, 2019, 2:35 a.m. OK Mono C# TESTS 70 46 0 1900
65293746 boookva C Nov. 18, 2019, 10:43 a.m. OK Mono C# TESTS 70 62 3686400 1900
69609304 tomomo2b2 C Jan. 27, 2020, 10:55 a.m. OK Mono C# TESTS 70 62 3788800 1900
62523178 artsin666 C Oct. 13, 2019, 4:24 p.m. OK Mono C# TESTS 68 77 102400 1900
62622657 tomomo2b2 C Oct. 15, 2019, 1:16 p.m. OK Mono C# TESTS 70 77 3584000 1900
65738826 tycyd C Nov. 26, 2019, 9:10 a.m. OK Mono C# TESTS 70 93 9625600 1900
63771884 vjudge5 C Oct. 30, 2019, 8:17 a.m. OK MS C++ TESTS 70 31 0 1900
63538560 vjudge4 C Oct. 27, 2019, 8:52 a.m. OK MS C++ TESTS 70 31 0 1900
65134677 vjudge4 C Nov. 16, 2019, 5:34 a.m. OK MS C++ TESTS 70 31 0 1900
65163674 vjudge3 C Nov. 16, 2019, 12:25 p.m. OK MS C++ TESTS 70 31 0 1900
68970708 vjudge1 C Jan. 17, 2020, 6:52 a.m. OK MS C++ TESTS 70 31 0 1900
64070205 vjudge3 C Nov. 2, 2019, 7:08 a.m. OK MS C++ TESTS 70 31 0 1900
64070098 vjudge4 C Nov. 2, 2019, 7:07 a.m. OK MS C++ TESTS 70 31 0 1900
64063885 vjudge4 C Nov. 2, 2019, 5:02 a.m. OK MS C++ TESTS 70 31 0 1900
63980742 vjudge1 C Nov. 1, 2019, 10:11 a.m. OK MS C++ TESTS 70 31 0 1900
63774276 vjudge4 C Oct. 30, 2019, 8:59 a.m. OK MS C++ TESTS 70 31 0 1900
62898059 YusupB C Oct. 19, 2019, 2:14 a.m. OK MS C++ 2017 TESTS 70 31 0 1900
63909306 suun C Oct. 31, 2019, 7:40 a.m. OK MS C++ 2017 TESTS 70 31 0 1900
62871730 YoshinariYoh C Oct. 18, 2019, 1:59 p.m. OK MS C++ 2017 TESTS 70 31 0 1900
62853501 omerb.zeybek C Oct. 18, 2019, 8:20 a.m. OK MS C++ 2017 TESTS 70 31 0 1900
62839826 Rydolf_sikorski-Baal C Oct. 18, 2019, 1:50 a.m. OK MS C++ 2017 TESTS 70 31 0 1900
62676243 lonely_moon C Oct. 16, 2019, 11:31 a.m. OK MS C++ 2017 TESTS 70 31 0 1900
62659878 Ivan11 C Oct. 16, 2019, 4:57 a.m. OK MS C++ 2017 TESTS 70 31 0 1900
62628939 Karimbz C Oct. 15, 2019, 2:52 p.m. OK MS C++ 2017 TESTS 70 31 0 1900
62597726 Laaahu_ C Oct. 15, 2019, 3:11 a.m. OK MS C++ 2017 TESTS 70 31 0 1900
62589555 Pavel58 C Oct. 14, 2019, 8:20 p.m. OK MS C++ 2017 TESTS 70 31 0 1900
62517090 T_BONE_289 C Oct. 13, 2019, 2:40 p.m. OK PyPy 2 TESTS 68 124 0 1900
62550850 kabeer27 C Oct. 14, 2019, 8:33 a.m. OK PyPy 2 TESTS 70 124 204800 1900
62550186 kabeer27 C Oct. 14, 2019, 8:16 a.m. OK PyPy 2 TESTS 70 139 204800 1900
62566206 vaibhavsarda C Oct. 14, 2019, 1:18 p.m. OK PyPy 2 TESTS 70 139 819200 1900
64016846 yumtam C Nov. 1, 2019, 3:26 p.m. OK PyPy 2 TESTS 70 140 0 1900
62563116 alexwice C Oct. 14, 2019, 12:33 p.m. OK PyPy 2 TESTS 70 140 307200 1900
62596801 sarthakmanna C Oct. 15, 2019, 2:26 a.m. OK PyPy 2 TESTS 70 155 0 1900
62888350 wassim.omais C Oct. 18, 2019, 7:18 p.m. OK PyPy 2 TESTS 70 171 0 1900
63032281 YESMAths C Oct. 20, 2019, 6:58 p.m. OK PyPy 2 TESTS 70 218 7884800 1900
62562758 alexwice C Oct. 14, 2019, 12:28 p.m. OK PyPy 2 TESTS 70 233 7680000 1900
62525041 zhaoyuzhaoyu C Oct. 13, 2019, 5:02 p.m. OK PyPy 3 TESTS 68 124 0 1900
62942151 igorqs C Oct. 19, 2019, 3:59 p.m. OK PyPy 3 TESTS 70 139 0 1900
68939260 Tomx C Jan. 16, 2020, 1:52 p.m. OK PyPy 3 TESTS 70 140 0 1900
68861527 heon C Jan. 15, 2020, 12:13 p.m. OK PyPy 3 TESTS 70 140 0 1900
65313018 arthurconmy C Nov. 18, 2019, 4:06 p.m. OK PyPy 3 TESTS 70 140 0 1900
64126370 bbkrgl1 C Nov. 3, 2019, 4:59 a.m. OK PyPy 3 TESTS 70 140 0 1900
63760836 lamn C Oct. 30, 2019, 3:34 a.m. OK PyPy 3 TESTS 70 140 0 1900
62942069 igorqs C Oct. 19, 2019, 3:57 p.m. OK PyPy 3 TESTS 70 140 0 1900
62850154 typhigh C Oct. 18, 2019, 7 a.m. OK PyPy 3 TESTS 70 140 0 1900
62833478 chaplin C Oct. 17, 2019, 8:54 p.m. OK PyPy 3 TESTS 70 140 0 1900
62915780 vjudge4 C Oct. 19, 2019, 8:38 a.m. OK Python 2 TESTS 70 186 0 1900
63630742 vjudge5 C Oct. 28, 2019, 6:16 a.m. OK Python 2 TESTS 70 187 0 1900
62576917 I_love_Hai_Yen C Oct. 14, 2019, 4:10 p.m. OK Python 2 TESTS 70 202 1638400 1900
62521708 Ignatz C Oct. 13, 2019, 3:58 p.m. OK Python 3 TESTS 68 109 0 1900
62648172 manish_joshi C Oct. 15, 2019, 8:21 p.m. OK Python 3 TESTS 70 109 204800 1900
64137762 xiaok C Nov. 3, 2019, 7:38 a.m. OK Python 3 TESTS 70 109 307200 1900
64126322 xiaok C Nov. 3, 2019, 4:58 a.m. OK Python 3 TESTS 70 109 307200 1900
62656167 BetterThanNobita C Oct. 16, 2019, 1:50 a.m. OK Python 3 TESTS 70 109 307200 1900
62567397 UWPLP C Oct. 14, 2019, 1:34 p.m. OK Python 3 TESTS 70 109 307200 1900
62558885 _DarkDawn_ C Oct. 14, 2019, 11:25 a.m. OK Python 3 TESTS 70 109 307200 1900
62551835 ay2306 C Oct. 14, 2019, 8:57 a.m. OK Python 3 TESTS 70 109 307200 1900
62545398 CWHer C Oct. 14, 2019, 6:11 a.m. OK Python 3 TESTS 68 109 307200 1900
62519940 bouncypi C Oct. 13, 2019, 3:28 p.m. OK Python 3 TESTS 68 109 307200 1900
62680823 Dawer C Oct. 16, 2019, 12:47 p.m. OK Rust TESTS 70 31 0 1900
62516374 BetBit C Oct. 13, 2019, 2:29 p.m. OK Rust TESTS 68 31 0 1900
62532525 limed C Oct. 13, 2019, 8:05 p.m. OK Scala TESTS 68 124 0 1900
62532553 limed C Oct. 13, 2019, 8:06 p.m. OK Scala TESTS 68 343 0 1900
62532839 limed C Oct. 13, 2019, 8:15 p.m. OK Scala TESTS 68 358 0 1900
62537772 gazaan C Oct. 14, 2019, 12:30 a.m. OK Scala TESTS 68 545 0 1900

remove filters

Back to search problems