EPIC Institute of Technology Round Summer 2024 (Div. 1 + 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
1987 EPIC Institute of Technology Round Summer 2024 (Div. 1 + Div. 2) FINISHED False 10800 17421863 June 30, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 109 ) H Fumo Temple PROGRAMMING interactive

B'This is an interactive problem. You are given two positive integers n and m ( bf{n <= m} ). The jury has hidden from you a rectangular matrix a with n rows and m columns, where a_{i,j} in { -1, 0, 1 } for all 1 <= i <= n and 1 <= j <= m . The jury has also selected a cell (i_0, j_0) . Your goal is to find (i_0,j_0) . In one query, you give a cell (i, j) , then the jury will reply with an integer. Find (i_0, j_0) by making at most n + 225 queries. Note: the grader is not adaptive: a and (i_0,j_0) are fixed before any queries are made. Each test contains multiple test cases. The first line of input contains a single integer t ( 1 <= t <= 50 ) -- the number of test cases. The description of the test cases follows. The only line of each test case contains two integers n and m ( 1 <= n <= m <= 5000 ) -- the numbers of rows and the number of columns of the hidden matrix a respectively. It is guaranteed that the sum of n cdot m over all test cases does not exceed 25 cdot 10^6 . The interaction for each test case begins by reading the integers n and m . To make a query, output "? i j" ( 1 <= i <= n, 1 <= j <= m ) without quotes. Afterwards, you should read one single integer -- the answer to your query. If you receive the integer -1 instead of an answer or a valid value of n or m , it means your program has made an invalid query, has exceeded the limit of queries, or has given an incorrect answer on the previous test case. Your program must terminate immediately to receive a Wrong Answer verdict. Otherwise, you can get an arbitrary verdict because your solution will continue to read from a closed stream. When you are ready to give the final answer, output "! i j" ( 1 <= i <= n, 1 <= j <= m ) without quotes -- the indices of the hidden cell. After solving a test case'...

Tutorials

EPIC Institute of Technology Round Summer 2024 (Div. 1 + Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
268233082 Rewinding H June 30, 2024, 8:04 p.m. OK C++17 (GCC 7-32) TESTS 376 452 200908800
268267699 Sparkle_Twilight H July 1, 2024, 5:41 a.m. OK C++17 (GCC 7-32) TESTS 376 1155 399769600
268233018 Rewinding H June 30, 2024, 8:03 p.m. OK C++17 (GCC 7-32) TESTS 376 1312 200908800
268220941 Rewinding H June 30, 2024, 5:34 p.m. OK C++17 (GCC 7-32) TESTS 375 1608 200908800
268263010 anirudh1418 H July 1, 2024, 4:46 a.m. OK C++20 (GCC 13-64) TESTS 376 843 400896000
268231190 PhoenixRebirth H June 30, 2024, 7:41 p.m. OK C++20 (GCC 13-64) TESTS 376 906 400896000
268226875 Benq H June 30, 2024, 6:49 p.m. OK C++20 (GCC 13-64) TESTS 375 906 400896000
268220031 BoSinn H June 30, 2024, 5:33 p.m. OK C++20 (GCC 13-64) TESTS 375 953 400896000
268220245 BoSinn H June 30, 2024, 5:33 p.m. OK C++20 (GCC 13-64) TESTS 375 1062 400896000
268224926 Pratik__9284 H June 30, 2024, 6:35 p.m. OK C++20 (GCC 13-64) TESTS 375 1077 400896000
268260053 your_submissions_ H July 1, 2024, 4:11 a.m. OK C++20 (GCC 13-64) TESTS 376 1093 0
268220501 Rewinding H June 30, 2024, 5:34 p.m. OK C++20 (GCC 13-64) TESTS 375 1140 200908800
268243575 Benq H June 30, 2024, 11:16 p.m. OK C++20 (GCC 13-64) TESTS 376 1156 0
268239797 Your__Mom H June 30, 2024, 9:50 p.m. OK C++20 (GCC 13-64) TESTS 376 1249 400896000

remove filters

Back to search problems