2022-2023 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Preferably Teams)

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
1765 2022-2023 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Preferably Teams) FINISHED False 18000 67634663 Nov. 27, 2022, 10:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 420 ) G Guess the String PROGRAMMING interactive 2600

B"This is an interactive problem. You have to use flush operation right after printing each line. For example, in C++ you should use the function fflush(stdout), in Java or Kotlin -- System.out.flush(), and in Python -- sys.stdout.flush(). The jury has a string s consisting of characters 0 and/or 1. The first character of this string is 0. The length of this string is n . You have to guess this string. Let's denote s[l..r] as the substring of s from l to r (i. xe2 x80 x89e. s[l..r] is the string s_ls_{l+1} ... s_r ). Let the prefix function of the string s be an array [p_1, p_2, ... , p_n] , where p_i is the greatest integer j in [0, i-1] such that s[1..j] = s[i-j+1..i] . Also, let the antiprefix function of the string s be an array [q_1, q_2, ... , q_n] , where q_i is the greatest integer j in [0, i-1] such that s[1..j] differs from s[i-j+1..i] in every position. For example, for the string 011001, its prefix function is [0, 0, 0, 1, 1, 2] , and its antiprefix function is [0, 1, 1, 2, 3, 4] . You can ask queries of two types to guess the string s : You have to guess the string by asking no more than 789 queries. Note that giving the answer does not count as a query. In every test and in every test case, the string s is fixed beforehand. Initially, the jury program sends one integer t ( 1 <= t <= 100 ) -- the number of test cases. At the start of each test case, the jury program sends one integer n ( 2 <= n <= 1000 ) -- the length of the string. After that, your program can submit queries to the jury program by printing one of the following lines (do not forget to flush the output after printing a line!): For every query, the jury prints one integer on a separate line. It is either: To submit the answer, your program should send a line in the following format (do not forget to flush the output after "...

Tutorials

109642

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
182914491 zmy123456 Langdao_Zhang nidhs G Nov. 27, 2022, 2:08 p.m. OK GNU C++14 TESTS 78 717 0 2600
182923515 Gary2005 platelet LZDQ G Nov. 27, 2022, 3:26 p.m. OK GNU C++14 TESTS 78 732 307200 2600
182929780 aa2985759 G Nov. 27, 2022, 4:24 p.m. OK GNU C++17 TESTS 78 639 1024000 2600
182921289 fanache99 G Nov. 27, 2022, 3:05 p.m. OK GNU C++17 TESTS 78 733 307200 2600
182922506 Kerim.K kobus Mohamed.Sobhy G Nov. 27, 2022, 3:17 p.m. OK GNU C++17 TESTS 78 748 102400 2600
182919734 Zappeko errorgorn rama_pang G Nov. 27, 2022, 2:51 p.m. OK GNU C++17 TESTS 78 780 307200 2600
182956807 CSQ31 G Nov. 27, 2022, 11:32 p.m. OK GNU C++17 TESTS 78 810 0 2600
182906271 gisp_zjz triple__a Roundgod G Nov. 27, 2022, 1:04 p.m. OK GNU C++17 TESTS 78 810 0 2600
182923979 surgutti kamilszymczak1 Rafi22 G Nov. 27, 2022, 3:30 p.m. OK GNU C++17 TESTS 78 811 0 2600
182919992 Zappeko errorgorn rama_pang G Nov. 27, 2022, 2:54 p.m. OK GNU C++17 TESTS 78 842 307200 2600
182771685 Mr_Eight He_Ren Qingyu G Nov. 27, 2022, 11:21 a.m. OK GNU C++17 (64) TESTS 78 468 102400 2600
182903685 Merkurev Um_nik G Nov. 27, 2022, 12:44 p.m. OK GNU C++17 (64) TESTS 78 561 0 2600
182921990 YaoBIG kimoyami G Nov. 27, 2022, 3:12 p.m. OK GNU C++17 (64) TESTS 78 607 102400 2600
182916068 Toxel G Nov. 27, 2022, 2:21 p.m. OK GNU C++17 (64) TESTS 78 623 0 2600
182923369 zech yizr_cnyali EternalAlexander G Nov. 27, 2022, 3:24 p.m. OK GNU C++17 (64) TESTS 78 624 102400 2600
182914088 kotatsugame G Nov. 27, 2022, 2:04 p.m. OK GNU C++17 (64) TESTS 78 701 307200 2600
182960684 TsukasaYuzaki G Nov. 28, 2022, 1:50 a.m. OK GNU C++17 (64) TESTS 78 702 409600 2600
182959531 Benq G Nov. 28, 2022, 1:10 a.m. OK GNU C++17 (64) TESTS 78 795 0 2600
182966748 Igorjan94 G Nov. 28, 2022, 4:17 a.m. OK GNU C++20 (64) TESTS 78 514 307200 2600
182919829 xuanquang1999 6aren chemthan G Nov. 27, 2022, 2:52 p.m. OK GNU C++20 (64) TESTS 78 530 0 2600
182903951 LeoPro fastmath turmax G Nov. 27, 2022, 12:46 p.m. OK GNU C++20 (64) TESTS 78 530 102400 2600
182921613 1_00___10 G Nov. 27, 2022, 3:08 p.m. OK GNU C++20 (64) TESTS 78 545 102400 2600
182903333 huagaohan bilibilitdasc PEIMUDA G Nov. 27, 2022, 12:42 p.m. OK GNU C++20 (64) TESTS 78 577 0 2600
182901856 huagaohan bilibilitdasc PEIMUDA G Nov. 27, 2022, 12:32 p.m. OK GNU C++20 (64) TESTS 78 577 0 2600
182921058 Maripium jefrai nvmdava G Nov. 27, 2022, 3:03 p.m. OK GNU C++20 (64) TESTS 78 623 0 2600
182903469 huagaohan bilibilitdasc PEIMUDA G Nov. 27, 2022, 12:43 p.m. OK GNU C++20 (64) TESTS 78 624 0 2600
182908315 353cerega Batrr G Nov. 27, 2022, 1:20 p.m. OK GNU C++20 (64) TESTS 78 670 0 2600
182901645 GrandSouris sanzen_sekai InternetPerson10 G Nov. 27, 2022, 12:30 p.m. OK GNU C++20 (64) TESTS 78 670 0 2600

remove filters

Back to search problems