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 |
---|---|---|---|---|---|---|
1792 | Educational Codeforces Round 142 (Rated for Div. 2) | FINISHED | False | 7200 | 62695463 | Jan. 24, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1418 ) | E | Divisors and Table | PROGRAMMING | dp number theory shortest paths |
B'You are given an n x n multiplication table and a positive integer m = m_1 cdot m_2 . A n x n multiplication table is a table with n rows and n columns numbered from 1 to n , where a_{i, j} = i cdot j . For each divisor d of m , check: does d occur in the table at least once, and if it does, what is the minimum row that contains d . The first line contains a single integer t ( 1 <= t <= 10 ) -- the number of test cases. The first and only line of each test case contains three integers n , m_1 and m_2 ( 1 <= n <= 10^9 ; 1 <= m_1, m_2 <= 10^9 ) -- the size of the multiplication table and the integer m represented as m_1 cdot m_2 . For each test case, let d_1, d_2, ... , d_k be all divisors of m sorted in the increasing order. And let a_1, a_2, ... , a_k be an array of answers, where a_i is equal to the minimum row index where divisor d_i occurs, or 0 , if there is no such row. Since array a may be large, first, print an integer s -- the number of divisors of m that are present in the n x n table. Next, print a single value X = a_1 oplus a_2 oplus ... oplus a_k , where oplus denotes the bitwise XOR operation. In the first test case, m = 72 cdot 1 = 72 and has 12 divisors [1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72] . The 3 x 3 multiplication table looks like that: For each divisor of m that is present in the table, the position with minimum row index is marked. So the array of answers a is equal to [1, 1, 1, 2, 2, 0, 3, 0, 0, 0, 0, 0] . There are only 6 non-zero values, and xor of a is equal to 2 . In the second test case, m = 10 cdot 15 = 150 and has 12 divisors [1, 2, 3, 5, 6, 10, 15, 25, 30, 50, 75, 150] . All divisors except 75 and 150 are present i'... |
111835 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
190439219 | zltzlt | E | Jan. 25, 2023, 2:12 a.m. | OK | GNU C++14 | TESTS | 48 | 187 | 8192000 | ||
190396687 | _Linglin | E | Jan. 24, 2023, 4:30 p.m. | OK | GNU C++14 | TESTS | 48 | 187 | 41779200 | ||
190408219 | _Andromeda | E | Jan. 24, 2023, 5:18 p.m. | OK | GNU C++14 | TESTS | 48 | 218 | 4710400 | ||
190402393 | ekatsim | E | Jan. 24, 2023, 4:45 p.m. | OK | GNU C++14 | TESTS | 48 | 421 | 8396800 | ||
190440979 | Code937 | E | Jan. 25, 2023, 2:57 a.m. | OK | GNU C++14 | TESTS | 48 | 482 | 19660800 | ||
190441346 | Code937 | E | Jan. 25, 2023, 3:06 a.m. | OK | GNU C++14 | TESTS | 48 | 514 | 19660800 | ||
190449237 | wind_cross | E | Jan. 25, 2023, 5:30 a.m. | OK | GNU C++14 | TESTS | 51 | 576 | 9625600 | ||
190409608 | pacha2880 | E | Jan. 24, 2023, 5:28 p.m. | OK | GNU C++14 | TESTS | 48 | 577 | 35840000 | ||
190396636 | _Andromeda | E | Jan. 24, 2023, 4:30 p.m. | OK | GNU C++14 | TESTS | 48 | 608 | 7987200 | ||
190406242 | CoachDanke | E | Jan. 24, 2023, 5:06 p.m. | OK | GNU C++14 | TESTS | 48 | 1294 | 4300800 | ||
190446999 | Yzm007 | E | Jan. 25, 2023, 4:56 a.m. | OK | GNU C++17 | TESTS | 50 | 62 | 2969600 | ||
190408747 | zlc1114 | E | Jan. 24, 2023, 5:22 p.m. | OK | GNU C++17 | TESTS | 48 | 124 | 19251200 | ||
190398769 | pty6666 | E | Jan. 24, 2023, 4:33 p.m. | OK | GNU C++17 | TESTS | 48 | 171 | 42803200 | ||
190424629 | regain0001 | E | Jan. 24, 2023, 7:50 p.m. | OK | GNU C++17 | TESTS | 48 | 187 | 3174400 | ||
190423727 | regain0001 | E | Jan. 24, 2023, 7:38 p.m. | OK | GNU C++17 | TESTS | 48 | 187 | 3174400 | ||
190402513 | shadow9236 | E | Jan. 24, 2023, 4:46 p.m. | OK | GNU C++17 | TESTS | 48 | 202 | 11161600 | ||
190396707 | sg78276397 | E | Jan. 24, 2023, 4:30 p.m. | OK | GNU C++17 | TESTS | 48 | 234 | 921600 | ||
190432869 | mohamedeltair | E | Jan. 24, 2023, 10:35 p.m. | OK | GNU C++17 | TESTS | 48 | 327 | 1740800 | ||
190433299 | emoreira | E | Jan. 24, 2023, 10:49 p.m. | OK | GNU C++17 | TESTS | 48 | 374 | 2355200 | ||
190420415 | lxyb | E | Jan. 24, 2023, 7 p.m. | OK | GNU C++17 | TESTS | 48 | 374 | 4710400 | ||
190410307 | Semp | E | Jan. 24, 2023, 5:33 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 140 | 2150400 | ||
190439812 | Br1zeEnder | E | Jan. 25, 2023, 2:26 a.m. | OK | GNU C++17 (64) | TESTS | 48 | 140 | 21913600 | ||
190451623 | Pointy | E | Jan. 25, 2023, 6:02 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 156 | 20070400 | ||
190409175 | Semp | E | Jan. 24, 2023, 5:25 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 171 | 2252800 | ||
190408813 | Semp | E | Jan. 24, 2023, 5:22 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 171 | 2252800 | ||
190444276 | CharlesWuQiushi | E | Jan. 25, 2023, 4:10 a.m. | OK | GNU C++17 (64) | TESTS | 48 | 171 | 80179200 | ||
190439873 | CartesianTree | E | Jan. 25, 2023, 2:28 a.m. | OK | GNU C++17 (64) | TESTS | 48 | 218 | 22016000 | ||
190450557 | stan23456 | E | Jan. 25, 2023, 5:48 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 296 | 2969600 | ||
190417355 | Edu175 | E | Jan. 24, 2023, 6:29 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 327 | 1638400 | ||
190449156 | Rosmontispes | E | Jan. 25, 2023, 5:29 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 467 | 64102400 | ||
190396969 | BlueDiamond | E | Jan. 24, 2023, 4:30 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 124 | 409600 | ||
190397103 | areke | E | Jan. 24, 2023, 4:31 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 139 | 2457600 | ||
190428169 | abotaha23 | E | Jan. 24, 2023, 8:48 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 140 | 2150400 | ||
190399927 | joww | E | Jan. 24, 2023, 4:35 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 140 | 2150400 | ||
190408872 | Liberty_gsm | E | Jan. 24, 2023, 5:23 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 140 | 12185600 | ||
190410186 | codicon | E | Jan. 24, 2023, 5:32 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 155 | 2150400 | ||
190430364 | _LeMur_ | E | Jan. 24, 2023, 9:29 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 156 | 2150400 | ||
190404665 | jinmingli | E | Jan. 24, 2023, 4:57 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 156 | 3379200 | ||
190439558 | zltzlt | E | Jan. 25, 2023, 2:20 a.m. | OK | GNU C++20 (64) | TESTS | 48 | 156 | 7987200 | ||
190398221 | fedimser | E | Jan. 24, 2023, 4:32 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 171 | 11673600 | ||
190443391 | profchi | E | Jan. 25, 2023, 3:52 a.m. | OK | Java 11 | TESTS | 48 | 2371 | 4812800 | ||
190447069 | Dinesh_Pandiyan | E | Jan. 25, 2023, 4:57 a.m. | OK | Java 11 | TESTS | 50 | 2402 | 4812800 | ||
190443524 | Sham050 | E | Jan. 25, 2023, 3:55 a.m. | OK | Java 11 | TESTS | 48 | 2402 | 4812800 | ||
190443268 | frey4 | E | Jan. 25, 2023, 3:49 a.m. | OK | Java 17 | TESTS | 48 | 670 | 1740800 | ||
190408030 | Dukkha | E | Jan. 24, 2023, 5:17 p.m. | OK | Java 17 | TESTS | 48 | 2386 | 17408000 | ||
190444186 | cc4414 | E | Jan. 25, 2023, 4:08 a.m. | OK | Java 8 | TESTS | 48 | 748 | 102400 | ||
190445492 | cc4414 | E | Jan. 25, 2023, 4:31 a.m. | OK | Java 8 | TESTS | 48 | 842 | 102400 | ||
190428120 | golions | E | Jan. 24, 2023, 8:47 p.m. | OK | Java 8 | TESTS | 48 | 2401 | 10240000 | ||
190408882 | Yzm007 | E | Jan. 24, 2023, 5:23 p.m. | OK | PyPy 3 | TESTS | 48 | 1918 | 30003200 | ||
190447981 | xxh1999 | E | Jan. 25, 2023, 5:11 a.m. | OK | PyPy 3-64 | TESTS | 51 | 436 | 13824000 | ||
190408986 | Yzm007 | E | Jan. 24, 2023, 5:24 p.m. | OK | PyPy 3-64 | TESTS | 48 | 514 | 26521600 | ||
190403408 | huikang | E | Jan. 24, 2023, 4:50 p.m. | OK | PyPy 3-64 | TESTS | 48 | 592 | 30208000 | ||
190406024 | USYDLDH | E | Jan. 24, 2023, 5:04 p.m. | OK | PyPy 3-64 | TESTS | 48 | 1123 | 14540800 | ||
190408985 | 00zijian | E | Jan. 24, 2023, 5:24 p.m. | OK | PyPy 3-64 | TESTS | 48 | 1200 | 22732800 | ||
190406241 | USYDLDH | E | Jan. 24, 2023, 5:06 p.m. | OK | PyPy 3-64 | TESTS | 48 | 1356 | 15257600 | ||
190422081 | Alex239 | E | Jan. 24, 2023, 7:19 p.m. | OK | PyPy 3-64 | TESTS | 48 | 1637 | 36864000 | ||
190401333 | USYDLDH | E | Jan. 24, 2023, 4:40 p.m. | OK | PyPy 3-64 | TESTS | 48 | 1653 | 17203200 | ||
190434460 | sansen | E | Jan. 24, 2023, 11:30 p.m. | OK | Rust 2021 | TESTS | 48 | 31 | 2969600 | ||
190396856 | titia | E | Jan. 24, 2023, 4:30 p.m. | OK | Rust 2021 | TESTS | 48 | 873 | 26316800 | ||
190396054 | titia | E | Jan. 24, 2023, 4:29 p.m. | OK | Rust 2021 | TESTS | 48 | 904 | 26316800 |
Back to search problems