Codeforces Round 392 (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
758 Codeforces Round 392 (Div. 2) FINISHED False 7200 252341663 Jan. 19, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3899 ) C Unfair Poll PROGRAMMING binary search constructive algorithms implementation math 1700

B'On the Literature lesson Sergei noticed an awful injustice, it seems that some students are asked more often than others. Seating in the class looks like a rectangle, where n rows with m pupils in each. The teacher asks pupils in the following order: at first, she asks all pupils from the first row in the order of their seating, then she continues to ask pupils from the next row. If the teacher asked the last row, then the direction of the poll changes, it means that she asks the previous row. The order of asking the rows looks as follows: the 1-st row, the 2-nd row, ..., the n xe2 x80 x89- xe2 x80 x891-st row, the n-th row, the n xe2 x80 x89- xe2 x80 x891-st row, ..., the 2-nd row, the 1-st row, the 2-nd row, ... The order of asking of pupils on the same row is always the same: the 1-st pupil, the 2-nd pupil, ..., the m-th pupil. During the lesson the teacher managed to ask exactly k questions from pupils in order described above. Sergei seats on the x-th row, on the y-th place in the row. Sergei decided to prove to the teacher that pupils are asked irregularly, help him count three values: If there is only one row in the class, then the teacher always asks children from this row. The first and the only line contains five integers n, m, k, x and y (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m). Print three integers: The order of asking pupils in the first test: The order of asking pupils in the second test: '...

Tutorials

Codeforces Round #392 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
23968918 ruban C Jan. 19, 2017, 6:19 p.m. OK Delphi TESTS 111 30 34918400 1700
24049478 MonGOL C Jan. 22, 2017, 7:47 p.m. OK FPC TESTS 111 15 1638400 1700
24003290 Zeron C Jan. 21, 2017, 5:55 a.m. OK FPC TESTS 111 15 1740800 1700
25330160 chb19 C March 7, 2017, 9:31 p.m. OK FPC TESTS 111 15 1740800 1700
26492619 vjudge2 C April 19, 2017, 9:56 a.m. OK FPC TESTS 111 15 1740800 1700
23971778 Daryusz C Jan. 19, 2017, 7:13 p.m. OK FPC TESTS 111 15 1740800 1700
25727895 simoncatcity C March 23, 2017, 7:30 a.m. OK FPC TESTS 111 15 1740800 1700
27982766 TShT C June 23, 2017, 10:43 a.m. OK FPC TESTS 111 15 1740800 1700
23995063 andrew C Jan. 20, 2017, 5:44 p.m. OK FPC TESTS 111 30 1740800 1700
45698955 chaorenhaha C Nov. 14, 2018, 6:38 a.m. OK FPC TESTS 111 31 102400 1700
24186891 StarScreamOwl C Jan. 27, 2017, 12:32 p.m. OK FPC TESTS 111 31 1740800 1700
24100226 srijansingh C Jan. 24, 2017, 8:54 p.m. OK GNU C TESTS 111 15 1843200 1700
24098105 darshanprabhune3105 C Jan. 24, 2017, 6:47 p.m. OK GNU C TESTS 111 15 1843200 1700
23982930 KinKong1 C Jan. 20, 2017, 7:53 a.m. OK GNU C TESTS 111 15 1843200 1700
23972327 Hacker0127 C Jan. 19, 2017, 7:30 p.m. OK GNU C TESTS 111 15 1843200 1700
23979716 jlz C Jan. 20, 2017, 4:51 a.m. OK GNU C TESTS 111 15 1945600 1700
25307216 Kaneki_04 C March 7, 2017, 4:08 a.m. OK GNU C TESTS 111 15 1945600 1700
24490386 the_skinny_one C Feb. 7, 2017, 2:51 p.m. OK GNU C TESTS 111 15 1945600 1700
24244794 Tebak_Siapa_Aku C Jan. 29, 2017, 10:35 a.m. OK GNU C TESTS 111 15 1945600 1700
24022622 naiqing C Jan. 22, 2017, 4:23 a.m. OK GNU C TESTS 111 15 1945600 1700
23987220 _shanky C Jan. 20, 2017, 11:35 a.m. OK GNU C TESTS 111 15 1945600 1700
30964684 nhatkhanhhuyetlong1996 C Oct. 3, 2017, 10:38 a.m. OK GNU C++ TESTS 111 15 0 1700
30738260 fy166 C Sept. 26, 2017, 2:07 a.m. OK GNU C++ TESTS 111 15 0 1700
29844042 vjudge4 C Aug. 28, 2017, 11:24 a.m. OK GNU C++ TESTS 111 15 0 1700
29822334 vjudge1 C Aug. 27, 2017, 8:51 a.m. OK GNU C++ TESTS 111 15 0 1700
31157830 maihien42th2006 C Oct. 9, 2017, 2:35 a.m. OK GNU C++ TESTS 111 15 0 1700
31735542 Hfomla C Oct. 26, 2017, 10:50 a.m. OK GNU C++ TESTS 111 15 102400 1700
32568397 vjudge3 C Nov. 23, 2017, 7:19 a.m. OK GNU C++ TESTS 111 15 102400 1700
30697432 vjudge3 C Sept. 25, 2017, 7:18 a.m. OK GNU C++ TESTS 111 15 102400 1700
30421503 vjudge1 C Sept. 17, 2017, 12:40 p.m. OK GNU C++ TESTS 111 15 102400 1700
29845067 vjudge3 C Aug. 28, 2017, 12:21 p.m. OK GNU C++ TESTS 111 15 102400 1700
24415161 hexisyztem C Feb. 3, 2017, 4:21 p.m. OK GNU C11 TESTS 111 15 1843200 1700
24092337 dnmehta C Jan. 24, 2017, 1:37 p.m. OK GNU C11 TESTS 111 30 1945600 1700
68025710 utsab560 C Jan. 1, 2020, 5:31 a.m. OK GNU C11 TESTS 111 31 0 1700
30914057 miaomiao_yali C Oct. 1, 2017, 4:34 p.m. OK GNU C++11 TESTS 111 15 0 1700
30580232 DrSwad C Sept. 21, 2017, 2:11 p.m. OK GNU C++11 TESTS 111 15 0 1700
30564557 rankalee C Sept. 21, 2017, 12:42 a.m. OK GNU C++11 TESTS 111 15 0 1700
30375562 Jayzhang C Sept. 16, 2017, 3:30 a.m. OK GNU C++11 TESTS 111 15 0 1700
30308923 ac_fun C Sept. 13, 2017, 2:06 p.m. OK GNU C++11 TESTS 111 15 0 1700
29844024 Chunchao C Aug. 28, 2017, 11:23 a.m. OK GNU C++11 TESTS 111 15 0 1700
27367829 jebouin C May 27, 2017, 6:01 a.m. OK GNU C++11 TESTS 111 15 0 1700
27817725 lauer C June 16, 2017, 5:39 a.m. OK GNU C++11 TESTS 111 15 0 1700
27215701 XieNaoban C May 19, 2017, 1:44 p.m. OK GNU C++11 TESTS 111 15 0 1700
32431290 Bengal_Tiger C Nov. 18, 2017, 12:51 p.m. OK GNU C++11 TESTS 111 15 0 1700
27700601 _Plague_ _LzY_ C June 10, 2017, 5:53 a.m. OK GNU C++14 TESTS 111 15 0 1700
29623450 ImagineDragons C Aug. 20, 2017, 2:31 p.m. OK GNU C++14 TESTS 111 15 0 1700
32133689 hairybaalsac C Nov. 8, 2017, 4:13 a.m. OK GNU C++14 TESTS 111 15 0 1700
32062855 Viktor_Terziev C Nov. 4, 2017, 8:06 p.m. OK GNU C++14 TESTS 111 15 0 1700
32009039 Gapro06 C Nov. 3, 2017, 1:53 p.m. OK GNU C++14 TESTS 111 15 0 1700
30978966 The_Learners C Oct. 3, 2017, 9:22 p.m. OK GNU C++14 TESTS 111 15 0 1700
29670358 rxakinetics C Aug. 22, 2017, 12:07 a.m. OK GNU C++14 TESTS 111 15 0 1700
27215562 CookiC C May 19, 2017, 1:36 p.m. OK GNU C++14 TESTS 111 15 0 1700
27331021 -wolfie- C May 25, 2017, 7:13 a.m. OK GNU C++14 TESTS 111 15 0 1700
27441139 _Mr_Fab C May 30, 2017, 6:26 a.m. OK GNU C++14 TESTS 111 15 0 1700
48412351 vjudge3 C Jan. 15, 2019, 8:29 a.m. OK GNU C++17 TESTS 111 15 307200 1700
36447868 HuiBing C March 21, 2018, 7:27 a.m. OK GNU C++17 TESTS 111 15 3788800 1700
39228715 anjalinauhwar C June 14, 2018, 12:33 a.m. OK GNU C++17 TESTS 111 30 0 1700
64619096 ReReRERE C Nov. 10, 2019, 6:12 a.m. OK GNU C++17 TESTS 111 30 716800 1700
69566806 asklvd C Jan. 26, 2020, 12:44 p.m. OK GNU C++17 TESTS 111 31 0 1700
63266035 yuhta C Oct. 24, 2019, 12:10 a.m. OK GNU C++17 TESTS 111 31 0 1700
61682786 k24 C Oct. 2, 2019, 2:14 a.m. OK GNU C++17 TESTS 111 31 0 1700
64561609 sandeep_kumar_e C Nov. 9, 2019, 6:14 a.m. OK GNU C++17 TESTS 111 31 0 1700
66998076 KareemMohsen C Dec. 16, 2019, 3:44 a.m. OK GNU C++17 TESTS 111 31 0 1700
69538811 GrimReaper42 C Jan. 25, 2020, 8:11 p.m. OK GNU C++17 TESTS 111 31 0 1700
27275140 megaspazz C May 22, 2017, 12:42 a.m. OK Go TESTS 111 15 307200 1700
27274960 megaspazz C May 22, 2017, 12:07 a.m. OK Go TESTS 111 31 204800 1700
27275177 megaspazz C May 22, 2017, 12:48 a.m. OK Go TESTS 111 31 307200 1700
35223273 askoki C Feb. 14, 2018, 5:29 a.m. OK Go TESTS 111 31 23040000 1700
25975272 Menschenkindlein C March 31, 2017, 10:06 a.m. OK Haskell TESTS 111 15 44851200 1700
27664077 lm010 C June 8, 2017, 6:04 a.m. OK Java 8 TESTS 111 109 0 1700
26220180 spar5h C April 8, 2017, 1:37 p.m. OK Java 8 TESTS 111 109 20787200 1700
64609847 less_than_gray C Nov. 10, 2019, 12:13 a.m. OK Java 8 TESTS 111 124 0 1700
64538093 GiantTornado C Nov. 8, 2019, 5:38 p.m. OK Java 8 TESTS 111 124 0 1700
64152060 its_aks_ulure C Nov. 3, 2019, 11:44 a.m. OK Java 8 TESTS 111 124 0 1700
54073841 vaibhavpulastya C May 13, 2019, 6:14 p.m. OK Java 8 TESTS 111 124 0 1700
54072511 sameep17264 C May 13, 2019, 5:14 p.m. OK Java 8 TESTS 111 124 0 1700
24434070 VerticesEdge C Feb. 4, 2017, 2:30 p.m. OK Java 8 TESTS 111 124 20172800 1700
26628001 theskiver C April 23, 2017, 8:47 p.m. OK Java 8 TESTS 111 124 20480000 1700
24988378 SaiL1020 C Feb. 24, 2017, 4:23 p.m. OK Java 8 TESTS 111 124 20480000 1700
23967345 dyukha C Jan. 19, 2017, 5:03 p.m. OK Kotlin TESTS 111 187 20684800 1700
24328392 South12309 C Jan. 31, 2017, 10:02 p.m. OK MS C# TESTS 111 61 9113600 1700
24237944 alextop C Jan. 28, 2017, 11:38 p.m. OK MS C# TESTS 111 62 9216000 1700
24012149 artsin666 C Jan. 21, 2017, 1:27 p.m. OK MS C# TESTS 111 77 9113600 1700
23970968 og.kostya C Jan. 19, 2017, 6:51 p.m. OK MS C# TESTS 111 77 9216000 1700
23975346 renadeen C Jan. 19, 2017, 10:30 p.m. OK MS C# TESTS 111 78 9420800 1700
23974274 Euphrasie C Jan. 19, 2017, 8:57 p.m. OK MS C# TESTS 111 92 11571200 1700
27877160 vjudge5 C June 18, 2017, 5:34 a.m. OK MS C++ TESTS 111 15 204800 1700
27794409 mshcherba C June 15, 2017, 1:20 p.m. OK MS C++ TESTS 111 15 204800 1700
24014918 RubyStone C Jan. 21, 2017, 3:57 p.m. OK MS C++ TESTS 111 15 2048000 1700
34269936 vjudge3 C Jan. 18, 2018, 7:48 a.m. OK MS C++ TESTS 111 15 2150400 1700
26510291 ovProphet C April 20, 2017, 7:50 a.m. OK MS C++ TESTS 111 15 2150400 1700
26325418 RCG C April 12, 2017, 8:15 p.m. OK MS C++ TESTS 111 15 2150400 1700
25818225 vjudge5 C March 26, 2017, 11:59 a.m. OK MS C++ TESTS 111 15 2150400 1700
25308901 Ally0729 C March 7, 2017, 6:47 a.m. OK MS C++ TESTS 111 15 2150400 1700
24525990 398101822 C Feb. 8, 2017, 12:21 p.m. OK MS C++ TESTS 111 15 2150400 1700
24331145 vjudge3 C Feb. 1, 2017, 2:17 a.m. OK MS C++ TESTS 111 15 2150400 1700
24288219 abhigupta4 C Jan. 31, 2017, 11:20 a.m. OK PyPy 2 TESTS 111 77 22630400 1700
23969049 rajuknit C Jan. 19, 2017, 6:20 p.m. OK PyPy 2 TESTS 111 93 22835200 1700
23976814 NicolasK C Jan. 20, 2017, 1:13 a.m. OK PyPy 2 TESTS 111 108 22016000 1700
23973412 poikniok C Jan. 19, 2017, 8:15 p.m. OK PyPy 2 TESTS 111 108 23449600 1700
24024949 pedrosorio C Jan. 22, 2017, 7:08 a.m. OK PyPy 2 TESTS 111 109 22016000 1700
23975059 masonsbro C Jan. 19, 2017, 10 p.m. OK PyPy 2 TESTS 111 109 23244800 1700
23970244 old_boo C Jan. 19, 2017, 6:37 p.m. OK PyPy 2 TESTS 111 124 22016000 1700
45139078 Onesh0t C Oct. 31, 2018, 1:41 p.m. OK PyPy 2 TESTS 111 139 1331200 1700
23983520 Yash_ C Jan. 20, 2017, 8:23 a.m. OK PyPy 2 TESTS 111 155 24166400 1700
24030833 har_vi C Jan. 22, 2017, 1 p.m. OK PyPy 2 TESTS 111 217 29696000 1700
24033230 cugel C Jan. 22, 2017, 3:31 p.m. OK PyPy 3 TESTS 111 109 23347200 1700
61566351 Sevlll C Sept. 30, 2019, 5:12 p.m. OK PyPy 3 TESTS 111 140 1945600 1700
41461944 petiteteaparty C Aug. 11, 2018, 8:59 a.m. OK PyPy 3 TESTS 111 155 1126400 1700
43752640 homoeconomicus C Oct. 4, 2018, 3:57 a.m. OK PyPy 3 TESTS 111 217 512000 1700
26347312 Ali.Pi C April 13, 2017, 8:52 p.m. OK Python 2 TESTS 111 46 4915200 1700
25076078 whn6325689 C Feb. 27, 2017, 11:54 a.m. OK Python 2 TESTS 111 61 4915200 1700
30044705 Hildegrin C Sept. 3, 2017, 11:58 p.m. OK Python 2 TESTS 111 62 307200 1700
24028715 vinay_999 C Jan. 22, 2017, 10:57 a.m. OK Python 2 TESTS 111 62 4608000 1700
24001647 arman.t C Jan. 21, 2017, 3:34 a.m. OK Python 2 TESTS 111 62 4608000 1700
28878279 handsome_89244 C July 25, 2017, 2:19 p.m. OK Python 2 TESTS 111 62 4710400 1700
24019553 jajazhang C Jan. 21, 2017, 9:14 p.m. OK Python 2 TESTS 111 62 4710400 1700
24283482 maitony C Jan. 31, 2017, 6:56 a.m. OK Python 2 TESTS 111 62 4915200 1700
24529490 songzy12 C Feb. 8, 2017, 2:45 p.m. OK Python 2 TESTS 111 77 4710400 1700
24335672 nealzane C Feb. 1, 2017, 7:39 a.m. OK Python 2 TESTS 111 77 4915200 1700
31223641 yugle7 C Oct. 11, 2017, 5:22 p.m. OK Python 3 TESTS 111 62 0 1700
27462569 henryhuypham C May 31, 2017, 8:58 a.m. OK Python 3 TESTS 111 62 0 1700
30272025 platypus179 C Sept. 11, 2017, 6:25 p.m. OK Python 3 TESTS 111 62 307200 1700
26979941 sushantgupta4 C May 9, 2017, 5:17 p.m. OK Python 3 TESTS 111 62 307200 1700
25134004 sina-ss sepanta C March 1, 2017, 7:03 p.m. OK Python 3 TESTS 111 62 4915200 1700
24268890 zerolin C Jan. 30, 2017, 2:03 p.m. OK Python 3 TESTS 111 62 4915200 1700
24103162 bradyzhou C Jan. 25, 2017, 2:46 a.m. OK Python 3 TESTS 111 62 4915200 1700
24098680 valeriy227 C Jan. 24, 2017, 7:20 p.m. OK Python 3 TESTS 111 62 4915200 1700
24033629 PEDY4000 C Jan. 22, 2017, 3:58 p.m. OK Python 3 TESTS 111 62 4915200 1700
24233563 ninoa C Jan. 28, 2017, 7:30 p.m. OK Python 3 TESTS 111 77 4915200 1700
24102394 smas C Jan. 25, 2017, 1:13 a.m. OK Scala TESTS 111 311 23756800 1700

remove filters

Back to search problems