Codeforces Round 525 (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
1088 Codeforces Round 525 (Div. 2) FINISHED False 7200 193591523 Dec. 4, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2916 ) D Ehab and another another xor problem PROGRAMMING bitmasks constructive algorithms implementation interactive 2000

B'This is an interactive problem! Ehab plays a game with Laggy. Ehab has 2 hidden integers (a,b) . Laggy can ask a pair of integers (c,d) and Ehab will reply with: Operation a oplus b is the bitwise-xor operation of two numbers a and b . Laggy should guess (a,b) with at most 62 questions. You 'll play this game. You 're Laggy and the interactor is Ehab. It 's guaranteed that 0 <= a,b<2^{30} . See the interaction section. To print the answer, print "! a b" (without quotes). Don 't forget to flush the output after printing the answer. To ask a question, print "? c d" (without quotes). Both c and d must be non-negative integers less than 2^{30} . Don 't forget to flush the output after printing any question. After each question, you should read the answer as mentioned in the legend. If the interactor replies with -2, that means you asked more than 62 queries and your program should terminate. To flush the output, you can use:- Hacking: To hack someone, print the 2 space-separated integers a and b (0 <= a,b<2^{30}) . In the sample: The hidden numbers are a=3 and b=1 . In the first query: 3 oplus 2 = 1 and 1 oplus 1 = 0 , so the answer is 1. In the second query: 3 oplus 1 = 2 and 1 oplus 2 = 3 , so the answer is -1. In the third query: 3 oplus 2 = 1 and 1 oplus 0 = 1 , so the answer is 0. Then, we printed the answer. '...

Tutorials

Codeforces round #525 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
46622821 Obada-AlAbbadi D Dec. 4, 2018, 6:54 p.m. OK Clang++17 Diagnostics TESTS 70 46 102400 2000
46613729 fluffyowl D Dec. 4, 2018, 4:04 p.m. OK D TESTS 70 31 0 2000
46697375 Xylofo D Dec. 6, 2018, 8:57 p.m. OK D TESTS 70 46 0 2000
46620895 freyes D Dec. 4, 2018, 6:14 p.m. OK GNU C11 TESTS 70 31 0 2000
46726680 shreya_2004 D Dec. 7, 2018, 3:22 p.m. OK GNU C11 TESTS 70 31 0 2000
46680587 termanary D Dec. 6, 2018, 11:54 a.m. OK GNU C11 TESTS 70 31 0 2000
46621997 sansen D Dec. 4, 2018, 6:35 p.m. OK GNU C11 TESTS 70 31 0 2000
46925044 RahmatyParsa D Dec. 12, 2018, 8:04 a.m. OK GNU C11 TESTS 70 46 0 2000
46680436 termanary D Dec. 6, 2018, 11:50 a.m. OK GNU C11 TESTS 70 46 0 2000
52307690 vjudge1 D April 4, 2019, 1:05 p.m. OK GNU C11 TESTS 70 46 103628800 2000
46717893 Big_black_jujube D Dec. 7, 2018, 12:09 p.m. OK GNU C++11 TESTS 70 30 0 2000
46657751 Abhi1998 D Dec. 5, 2018, 5:18 p.m. OK GNU C++11 TESTS 70 30 0 2000
46637657 pranjal.ssh D Dec. 5, 2018, 7:45 a.m. OK GNU C++11 TESTS 70 30 0 2000
46626186 Pryanic D Dec. 4, 2018, 9:02 p.m. OK GNU C++11 TESTS 70 30 0 2000
46613380 -Emma194 D Dec. 4, 2018, 4:01 p.m. OK GNU C++11 TESTS 70 30 0 2000
49533979 smilestruggler D Feb. 6, 2019, 3:03 p.m. OK GNU C++11 TESTS 70 30 0 2000
48988340 Hongzy D Jan. 26, 2019, 1:17 p.m. OK GNU C++11 TESTS 70 30 0 2000
48441249 SovietPower D Jan. 16, 2019, 3:41 a.m. OK GNU C++11 TESTS 70 30 0 2000
46853461 stanislav D Dec. 10, 2018, 1:29 p.m. OK GNU C++11 TESTS 70 30 0 2000
69053051 LHQing D Jan. 18, 2020, 1:25 p.m. OK GNU C++11 TESTS 70 31 0 2000
46663047 eu3neuom D Dec. 5, 2018, 9:08 p.m. OK GNU C++14 TESTS 70 30 0 2000
46654567 NoBBok D Dec. 5, 2018, 3:38 p.m. OK GNU C++14 TESTS 70 30 0 2000
46653108 FrozenDiamond D Dec. 5, 2018, 2:57 p.m. OK GNU C++14 TESTS 70 30 0 2000
49561787 am1tbh47 D Feb. 7, 2019, 12:55 p.m. OK GNU C++14 TESTS 70 30 0 2000
53955421 kumarpratyush4 D May 10, 2019, 11:41 a.m. OK GNU C++14 TESTS 70 30 0 2000
47034563 Ravi1961 D Dec. 15, 2018, 11:37 a.m. OK GNU C++14 TESTS 70 30 0 2000
46972960 ToMmyDong D Dec. 13, 2018, 2:53 p.m. OK GNU C++14 TESTS 70 30 0 2000
46960705 rakeshcodeit D Dec. 13, 2018, 7:56 a.m. OK GNU C++14 TESTS 70 30 0 2000
46899127 Dalenator D Dec. 11, 2018, 11:01 a.m. OK GNU C++14 TESTS 70 30 0 2000
46936541 yaksha D Dec. 12, 2018, 2:10 p.m. OK GNU C++14 TESTS 70 30 0 2000
46645829 vjudge2 D Dec. 5, 2018, 11:54 a.m. OK GNU C++17 TESTS 70 30 0 2000
49872203 aviroop123 D Feb. 13, 2019, 2:18 p.m. OK GNU C++17 TESTS 70 30 0 2000
47354558 saketh D Dec. 22, 2018, 5:30 a.m. OK GNU C++17 TESTS 70 30 0 2000
47009795 vjudge4 D Dec. 14, 2018, 3:50 p.m. OK GNU C++17 TESTS 70 30 0 2000
46908865 redotter D Dec. 11, 2018, 3:45 p.m. OK GNU C++17 TESTS 70 30 0 2000
46749814 OMG_wc D Dec. 8, 2018, 8:39 a.m. OK GNU C++17 TESTS 70 30 0 2000
46683183 Veidt D Dec. 6, 2018, 12:56 p.m. OK GNU C++17 TESTS 70 30 0 2000
46646509 cddchen D Dec. 5, 2018, 12:09 p.m. OK GNU C++17 TESTS 70 30 0 2000
46636770 InFiNiTeemo D Dec. 5, 2018, 7:13 a.m. OK GNU C++17 TESTS 70 30 0 2000
46627532 MMidori D Dec. 4, 2018, 10:27 p.m. OK GNU C++17 TESTS 70 30 0 2000
61324150 WangJialei D Sept. 26, 2019, 1:21 p.m. OK Go TESTS 70 31 0 2000
46622952 rhdmstjr D Dec. 4, 2018, 6:58 p.m. OK Go TESTS 70 31 0 2000
61326928 vjudge5 D Sept. 26, 2019, 1:58 p.m. OK Go TESTS 70 46 0 2000
46707417 dasper D Dec. 7, 2018, 8:04 a.m. OK Go TESTS 70 46 0 2000
46610893 Haskell_for_a_pint D Dec. 4, 2018, 3:47 p.m. OK Haskell TESTS 70 31 8396800 2000
46636665 gksato D Dec. 5, 2018, 7:09 a.m. OK Haskell TESTS 70 31 8499200 2000
46630178 gksato D Dec. 5, 2018, 2:08 a.m. OK Haskell TESTS 70 31 8499200 2000
46629912 gksato D Dec. 5, 2018, 1:53 a.m. OK Haskell TESTS 70 31 8499200 2000
48919657 llamaoo7 D Jan. 25, 2019, 7:09 a.m. OK Java 8 TESTS 70 124 0 2000
57304755 jdurie D July 19, 2019, 2:52 a.m. OK Java 8 TESTS 70 124 0 2000
48709097 donli D Jan. 22, 2019, 7:30 a.m. OK Java 8 TESTS 70 124 0 2000
48185596 LeontiBrechko D Jan. 10, 2019, 2:50 p.m. OK Java 8 TESTS 70 124 0 2000
47853177 SpargelTarzan D Jan. 2, 2019, 7:14 p.m. OK Java 8 TESTS 70 124 0 2000
47796818 vjvjain0 D Dec. 31, 2018, 5:46 p.m. OK Java 8 TESTS 70 124 0 2000
47021568 xodiac D Dec. 15, 2018, 2:49 a.m. OK Java 8 TESTS 70 124 0 2000
47019852 sweiss D Dec. 14, 2018, 11:13 p.m. OK Java 8 TESTS 70 124 0 2000
46959538 revanthreddy85 D Dec. 13, 2018, 7:08 a.m. OK Java 8 TESTS 70 124 0 2000
46918572 resendiz D Dec. 12, 2018, 12:52 a.m. OK Java 8 TESTS 70 124 0 2000
46626003 tattosha_aptan D Dec. 4, 2018, 8:54 p.m. OK Mono C# TESTS 70 46 0 2000
46642091 omikad D Dec. 5, 2018, 10:19 a.m. OK Mono C# TESTS 70 46 0 2000
46613191 kuuso D Dec. 4, 2018, 4 p.m. OK Mono C# TESTS 70 62 0 2000
46629163 eki D Dec. 5, 2018, 12:53 a.m. OK Mono C# TESTS 70 62 0 2000
46669654 jainchethan87 D Dec. 6, 2018, 5:42 a.m. OK Mono C# TESTS 70 62 0 2000
65680299 joyguru55 D Nov. 24, 2019, 7:41 p.m. OK MS C++ TESTS 70 31 0 2000
48781573 Houbunsha D Jan. 23, 2019, 7:02 a.m. OK MS C++ TESTS 70 31 0 2000
48680062 dyxx D Jan. 21, 2019, 12:56 p.m. OK MS C++ TESTS 70 31 0 2000
46746121 vjudge4 D Dec. 8, 2018, 6:52 a.m. OK MS C++ TESTS 70 31 0 2000
46611068 BaturaDima D Dec. 4, 2018, 3:48 p.m. OK MS C++ TESTS 70 31 0 2000
46616311 Timonnable D Dec. 4, 2018, 4:20 p.m. OK MS C++ TESTS 70 31 102400 2000
47139046 _mactep D Dec. 16, 2018, 7:11 p.m. OK MS C++ TESTS 70 46 0 2000
48782000 Houbunsha D Jan. 23, 2019, 7:12 a.m. OK MS C++ TESTS 70 46 0 2000
69875780 vjudge2 D Jan. 31, 2020, 3:55 a.m. OK MS C++ TESTS 70 46 0 2000
46646546 katalama D Dec. 5, 2018, 12:10 p.m. OK PHP TESTS 70 46 512000 2000
46653211 YESMAths D Dec. 5, 2018, 2:59 p.m. OK PyPy 2 TESTS 70 124 0 2000
46626408 c1729 D Dec. 4, 2018, 9:16 p.m. OK PyPy 2 TESTS 70 140 0 2000
46638639 sarthakmanna D Dec. 5, 2018, 8:20 a.m. OK PyPy 2 TESTS 70 249 0 2000
46621971 ManasG D Dec. 4, 2018, 6:34 p.m. OK PyPy 2 TESTS 70 265 8192000 2000
46613225 psycho_uranium D Dec. 4, 2018, 4 p.m. OK PyPy 2 TESTS 70 280 8192000 2000
46627514 marX D Dec. 4, 2018, 10:25 p.m. OK PyPy 3 TESTS 70 140 0 2000
46624591 kal013 D Dec. 4, 2018, 7:52 p.m. OK Python 2 TESTS 70 171 0 2000
46621986 sarthakmanna D Dec. 4, 2018, 6:34 p.m. OK Python 2 TESTS 70 171 0 2000
53534199 musayime D April 30, 2019, 12:12 a.m. OK Python 2 TESTS 70 186 0 2000
53534025 musayime D April 29, 2019, 11:59 p.m. OK Python 2 TESTS 70 186 0 2000
48265437 gatsko D Jan. 11, 2019, 7:51 p.m. OK Python 2 TESTS 70 186 0 2000
46622036 sarthakmanna D Dec. 4, 2018, 6:36 p.m. OK Python 2 TESTS 70 186 0 2000
46615131 Jonte_98 D Dec. 4, 2018, 4:13 p.m. OK Python 2 TESTS 70 202 0 2000
46885273 gugek7502 D Dec. 10, 2018, 11:06 p.m. OK Python 3 TESTS 70 109 0 2000
49554017 amirah D Feb. 7, 2019, 8:23 a.m. OK Python 3 TESTS 70 109 307200 2000
64725278 NocturneBflat D Nov. 12, 2019, 6:11 a.m. OK Python 3 TESTS 70 124 0 2000
56660851 jan25 D July 7, 2019, 9:50 a.m. OK Python 3 TESTS 70 124 0 2000
51230576 jeffswt D March 12, 2019, 4:01 p.m. OK Python 3 TESTS 70 124 0 2000
46888382 wangzpeng D Dec. 11, 2018, 3:28 a.m. OK Python 3 TESTS 70 124 0 2000
46843931 Charles_Han D Dec. 10, 2018, 9:41 a.m. OK Python 3 TESTS 70 124 0 2000
46767862 tieros D Dec. 8, 2018, 3:18 p.m. OK Python 3 TESTS 70 124 0 2000
46665585 Stephan D Dec. 6, 2018, 1:21 a.m. OK Python 3 TESTS 70 124 0 2000
46624741 zaber.eng D Dec. 4, 2018, 7:57 p.m. OK Python 3 TESTS 70 124 0 2000
46621446 koikotya D Dec. 4, 2018, 6:23 p.m. OK Ruby TESTS 70 62 102400 2000
46623587 geckods D Dec. 4, 2018, 7:17 p.m. OK Ruby TESTS 70 77 204800 2000
46639224 yakamoto D Dec. 5, 2018, 8:39 a.m. OK Scala TESTS 70 405 0 2000

remove filters

Back to search problems