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 |
---|---|---|---|---|---|---|
1493 | Codeforces Round 705 (Div. 2) | FINISHED | False | 8100 | 122313311 | March 6, 2021, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 457 ) | F | Enchanted Matrix | PROGRAMMING | bitmasks interactive number theory |
B'This is an interactive problem. There exists a matrix a of size n x m ( n rows and m columns), you know only numbers n and m . The rows of the matrix are numbered from 1 to n from top to bottom, and columns of the matrix are numbered from 1 to m from left to right. The cell on the intersection of the x -th row and the y -th column is denoted as (x, y) . You are asked to find the number of pairs (r, c) ( 1 <= r <= n , 1 <= c <= m , r is a divisor of n , c is a divisor of m ) such that if we split the matrix into rectangles of size r x c (of height r rows and of width c columns, each cell belongs to exactly one rectangle), all those rectangles are pairwise equal. You can use queries of the following type: You can use at most 3 cdot <= ft lfloor{ log_2{(n+m)} } right rfloor queries. All elements of the matrix a are fixed before the start of your program and do not depend on your queries. The first line contains two integers n and m ( 1 <= n, m <= 1000 ) -- the number of rows and columns, respectively. When ready, print a line with an exclamation mark ( '! ') and then the answer -- the number of suitable pairs (r, c) . After that your program should terminate. To make a query, print a line with the format "? h w i_1 j_1 i_2 j_2 ", where the integers are the height and width and the coordinates of upper left corners of non-overlapping rectangles, about which you want to know if they are equal or not. After each query read a single integer t ( t is 0 or 1 ): if the subrectangles are equal, t=1 , otherwise t=0 . In case your query is of incorrect format or you asked more than 3 cdot <= ft lfloor{ log_2{(n+m)} } right rfloor queries, you will receive the Wrong Answer verdict. After printing a query do not '... |
Codeforces Round #705 (Div.2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
109306819 | xyf007 | F | March 7, 2021, 5:15 a.m. | OK | GNU C++11 | TESTS | 146 | 31 | 0 | ||
109299326 | 2018gtyz10 | F | March 7, 2021, 1:52 a.m. | OK | GNU C++11 | TESTS | 146 | 31 | 0 | ||
109267956 | prabowo | F | March 6, 2021, 3:52 p.m. | OK | GNU C++11 | TESTS | 145 | 31 | 0 | ||
109280541 | zjjws | F | March 6, 2021, 5:02 p.m. | OK | GNU C++11 | TESTS | 145 | 31 | 204800 | ||
109284247 | sh1194 | F | March 6, 2021, 5:47 p.m. | OK | GNU C++11 | TESTS | 145 | 31 | 409600 | ||
109298253 | sammochen | F | March 7, 2021, 1:02 a.m. | OK | GNU C++14 | TESTS | 146 | 31 | 0 | ||
109281220 | dlalswp25 | F | March 6, 2021, 5:09 p.m. | OK | GNU C++14 | TESTS | 145 | 31 | 0 | ||
109275040 | lucaperju | F | March 6, 2021, 4:15 p.m. | OK | GNU C++14 | TESTS | 145 | 46 | 0 | ||
109267715 | Nutella3000 | F | March 6, 2021, 3:51 p.m. | OK | GNU C++14 | TESTS | 145 | 46 | 0 | ||
109278727 | Izumi_Chiaki | F | March 6, 2021, 4:48 p.m. | OK | GNU C++17 | TESTS | 145 | 31 | 0 | ||
109272861 | darkkcyan | F | March 6, 2021, 4:09 p.m. | OK | GNU C++17 | TESTS | 145 | 31 | 0 | ||
109272420 | Touubs | F | March 6, 2021, 4:07 p.m. | OK | GNU C++17 | TESTS | 145 | 31 | 0 | ||
109267716 | _overrated_ | F | March 6, 2021, 3:51 p.m. | OK | GNU C++17 | TESTS | 145 | 31 | 0 | ||
109267700 | jeroenodb | F | March 6, 2021, 3:51 p.m. | OK | GNU C++17 | TESTS | 145 | 31 | 0 | ||
109299907 | kmjp | F | March 7, 2021, 2:12 a.m. | OK | GNU C++17 | TESTS | 146 | 31 | 204800 | ||
109295806 | solver777 | F | March 6, 2021, 10:30 p.m. | OK | GNU C++17 | TESTS | 146 | 31 | 204800 | ||
109295760 | lrvideckis | F | March 6, 2021, 10:27 p.m. | OK | GNU C++17 | TESTS | 146 | 31 | 204800 | ||
109308446 | tenkei | F | March 7, 2021, 5:44 a.m. | OK | GNU C++17 | TESTS | 146 | 46 | 0 | ||
109288667 | Bench0310 | F | March 6, 2021, 6:57 p.m. | OK | GNU C++17 | TESTS | 145 | 46 | 0 | ||
109300260 | ykx | F | March 7, 2021, 2:21 a.m. | OK | GNU C++17 (64) | TESTS | 146 | 31 | 0 | ||
109298490 | sumitacchan | F | March 7, 2021, 1:15 a.m. | OK | GNU C++17 (64) | TESTS | 146 | 31 | 0 | ||
109283396 | shanin | F | March 6, 2021, 5:36 p.m. | OK | GNU C++17 (64) | TESTS | 145 | 31 | 0 | ||
109280897 | timmyfeng | F | March 6, 2021, 5:06 p.m. | OK | GNU C++17 (64) | TESTS | 145 | 31 | 0 | ||
109280190 | Marckess | F | March 6, 2021, 4:59 p.m. | OK | GNU C++17 (64) | TESTS | 145 | 31 | 0 | ||
109280137 | Andreasyan | F | March 6, 2021, 4:59 p.m. | OK | GNU C++17 (64) | TESTS | 145 | 31 | 0 | ||
109274471 | Geothermal | F | March 6, 2021, 4:13 p.m. | OK | GNU C++17 (64) | TESTS | 145 | 31 | 0 | ||
109273742 | greencis | F | March 6, 2021, 4:11 p.m. | OK | GNU C++17 (64) | TESTS | 145 | 31 | 0 | ||
109272732 | tute7627 | F | March 6, 2021, 4:08 p.m. | OK | GNU C++17 (64) | TESTS | 145 | 31 | 0 | ||
109272537 | risujiroh | F | March 6, 2021, 4:08 p.m. | OK | GNU C++17 (64) | TESTS | 145 | 31 | 0 | ||
109281073 | godxpunk | F | March 6, 2021, 5:07 p.m. | OK | Kotlin | TESTS | 145 | 156 | 102400 | ||
109279001 | Tlatoani | F | March 6, 2021, 4:50 p.m. | OK | Kotlin | TESTS | 145 | 156 | 102400 | ||
109297822 | r57shell | F | March 7, 2021, 12:36 a.m. | OK | Python 3 | TESTS | 146 | 93 | 307200 |
Back to search problems