Codeforces Round 616 (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
1291 Codeforces Round 616 (Div. 2) FINISHED False 9000 156700511 Feb. 2, 2020, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 673 ) F Coffee Varieties (easy version) PROGRAMMING graphs interactive 2700

B"This is the easy version of the problem. You can find the hard version in the Div. 1 contest. Both versions only differ in the number of times you can ask your friend to taste coffee. This is an interactive problem. You're considering moving to another city, where one of your friends already lives. There are n caf xc3 xa9s in this city, where n is a power of two. The i -th caf xc3 xa9 produces a single variety of coffee a_i . As you're a coffee-lover, before deciding to move or not, you want to know the number d of distinct varieties of coffees produced in this city. You don't know the values a_1, ldots, a_n . Fortunately, your friend has a memory of size k , where k is a power of two. Once per day, you can ask him to taste a cup of coffee produced by the caf xc3 xa9 c , and he will tell you if he tasted a similar coffee during the last k days. You can also ask him to take a medication that will reset his memory. He will forget all previous cups of coffee tasted. You can reset his memory at most 30 000 times. More formally, the memory of your friend is a queue S . Doing a query on caf xc3 xa9 c will: Doing a reset request will pop all elements out of S . Your friend can taste at most dfrac{2n^2}{k} cups of coffee in total. Find the diversity d (number of distinct values in the array a ). Note that asking your friend to reset his memory does not count towards the number of times you ask your friend to taste a cup of coffee. In some test cases the behavior of the interactor is adaptive. It means that the array a may be not fixed before the start of the interaction and may depend on your queries. It is guaranteed that at any moment of the interaction, there is at least one array a consistent with all the answers given so far. The first line contains two integers n and k ( 1 <= k <= n <= 1024 , k and n are powers of two). It is guaranteed that "...

Tutorials

Codeforces Round #616 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
70157547 YangDavid F Feb. 3, 2020, 2:25 p.m. OK GNU C++11 TESTS 79 46 0 2700
70830343 stal_xy23z7b8 F Feb. 12, 2020, 8:10 a.m. OK GNU C++11 TESTS 79 62 0 2700
70120632 spacevortex F Feb. 3, 2020, 8:34 a.m. OK GNU C++11 TESTS 79 62 0 2700
70208136 Binary_Search_Tree F Feb. 4, 2020, 7:12 a.m. OK GNU C++11 TESTS 79 62 1024000 2700
70340743 WZYYN F Feb. 5, 2020, 8:21 a.m. OK GNU C++11 TESTS 79 77 0 2700
70265657 REFLAME_ASH F Feb. 4, 2020, 3:13 p.m. OK GNU C++11 TESTS 79 77 0 2700
70159358 lonely_wind_ F Feb. 3, 2020, 2:50 p.m. OK GNU C++11 TESTS 79 77 0 2700
70148945 wilson_ F Feb. 3, 2020, 12:30 p.m. OK GNU C++11 TESTS 79 77 0 2700
70113339 StarrySky1024 F Feb. 3, 2020, 6:20 a.m. OK GNU C++11 TESTS 79 77 0 2700
70096744 iaNTU F Feb. 2, 2020, 8:35 p.m. OK GNU C++11 TESTS 79 77 0 2700
70492109 achibulup F Feb. 7, 2020, 9:21 a.m. OK GNU C++14 TESTS 79 77 0 2700
70331920 dog_yang F Feb. 5, 2020, 6:13 a.m. OK GNU C++14 TESTS 79 77 0 2700
70093957 nikolapesic2802 F Feb. 2, 2020, 7:26 p.m. OK GNU C++14 TESTS 79 92 204800 2700
70513415 kmjp F Feb. 7, 2020, 3:31 p.m. OK GNU C++14 TESTS 79 93 0 2700
70201551 heyuhhh F Feb. 4, 2020, 4:24 a.m. OK GNU C++14 TESTS 79 124 0 2700
70214180 Trung.Ore F Feb. 4, 2020, 9:12 a.m. OK GNU C++14 TESTS 79 124 1843200 2700
70103411 860579 F Feb. 3, 2020, 1:32 a.m. OK GNU C++14 TESTS 79 140 0 2700
70713020 Yazmau F Feb. 10, 2020, 7:37 a.m. OK GNU C++14 TESTS 79 140 204800 2700
70429634 DerWaschbar F Feb. 6, 2020, 11:05 a.m. OK GNU C++14 TESTS 79 155 0 2700
70492828 goodnight007 F Feb. 7, 2020, 9:35 a.m. OK GNU C++14 TESTS 79 155 102400 2700
70580199 summitwei F Feb. 8, 2020, 4:58 p.m. OK GNU C++17 TESTS 79 77 0 2700
70445179 akaCH F Feb. 6, 2020, 2:58 p.m. OK GNU C++17 TESTS 79 77 0 2700
70788960 Tiramister F Feb. 11, 2020, 1:12 p.m. OK GNU C++17 TESTS 79 78 204800 2700
70088350 hank55663 F Feb. 2, 2020, 5:37 p.m. OK GNU C++17 TESTS 79 92 63692800 2700
70427156 InFiNiTeemo F Feb. 6, 2020, 10:23 a.m. OK GNU C++17 TESTS 79 93 0 2700
70214228 jiangly F Feb. 4, 2020, 9:13 a.m. OK GNU C++17 TESTS 79 93 0 2700
70121591 HNO2 F Feb. 3, 2020, 8:51 a.m. OK GNU C++17 TESTS 79 93 0 2700
70074539 fafafafafa F Feb. 2, 2020, 3:54 p.m. OK GNU C++17 TESTS 79 93 0 2700
70616465 graveyard111 F Feb. 9, 2020, 10:08 a.m. OK GNU C++17 TESTS 79 108 0 2700
70445596 vjudge3 F Feb. 6, 2020, 3:03 p.m. OK GNU C++17 TESTS 79 108 0 2700
70074915 CouponKaka-ChutteNahiHai F Feb. 2, 2020, 3:55 p.m. OK Java 8 TESTS 79 468 0 2700
70357845 KharYusuf F Feb. 5, 2020, 12:38 p.m. OK Java 8 TESTS 79 499 0 2700
70437417 vjudge4 F Feb. 6, 2020, 1:13 p.m. OK Java 8 TESTS 79 763 0 2700
70452122 MT_07 F Feb. 6, 2020, 4:36 p.m. OK MS C++ 2017 TESTS 79 202 0 2700
70451009 pajenegod F Feb. 6, 2020, 4:22 p.m. OK PyPy 2 TESTS 79 545 8089600 2700
70513054 DerWaschbar F Feb. 7, 2020, 3:25 p.m. OK PyPy 3 TESTS 79 873 9216000 2700

remove filters

Back to search problems