Codeforces Round 942 (Div. 1)

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
1967 Codeforces Round 942 (Div. 1) FINISHED False 9000 22692263 April 30, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4046 ) B2 Reverse Card (Hard Version) PROGRAMMING brute force math number theory 2200

B'The two versions are different problems. You may want to read both versions. You can make hacks only if both versions are solved. You are given two positive integers n , m . Calculate the number of ordered pairs (a, b) satisfying the following conditions: Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^4 ). The description of the test cases follows. The first line of each test case contains two integers n , m ( 1 <= n,m <= 2 cdot 10^6 ). It is guaranteed that neither the sum of n nor the sum of m over all test cases exceeds 2 cdot 10^6 . For each test case, print a single integer: the number of valid pairs. In the first test case, no pair satisfies the conditions. In the fourth test case, (2,2),(3,6),(4,4),(6,3),(6,6),(8,8) satisfy the conditions. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
261182755 Vect0r_lemon B2 May 16, 2024, 10:57 a.m. OK C++14 (GCC 6-32) TESTS 11 61 9113600 2200
261644247 2018szb B2 May 19, 2024, 11:27 a.m. OK C++14 (GCC 6-32) TESTS 11 62 2048000 2200
258958056 lishiao3405 B2 May 1, 2024, 3:40 a.m. OK C++14 (GCC 6-32) TESTS 5 62 4096000 2200
260997361 2200170080 B2 May 15, 2024, 3:26 a.m. OK C++14 (GCC 6-32) TESTS 11 62 9113600 2200
261001415 _irakiH B2 May 15, 2024, 4:20 a.m. OK C++14 (GCC 6-32) TESTS 11 77 2252800 2200
259007139 lixx B2 May 1, 2024, 12:36 p.m. OK C++14 (GCC 6-32) TESTS 5 77 32256000 2200
258914269 mzmz001 B2 April 30, 2024, 4:34 p.m. OK C++14 (GCC 6-32) TESTS 5 93 0 2200
259082089 Henry894 B2 May 2, 2024, 5:06 a.m. OK C++14 (GCC 6-32) TESTS 11 93 102400 2200
263419012 zhengqingyuan B2 May 31, 2024, 6:08 a.m. OK C++14 (GCC 6-32) TESTS 11 108 0 2200
262958758 thumbass B2 May 28, 2024, 5:03 a.m. OK C++14 (GCC 6-32) TESTS 11 108 0 2200
260576243 mohammadyamin B2 May 11, 2024, 6:54 p.m. OK C++17 (GCC 7-32) TESTS 11 61 0 2200
258895282 ooaa B2 April 30, 2024, 3:31 p.m. OK C++17 (GCC 7-32) TESTS 5 62 0 2200
259267012 Valera_Grinenko B2 May 2, 2024, 7:34 p.m. OK C++17 (GCC 7-32) TESTS 11 62 2355200 2200
258946687 xiaruize B2 April 30, 2024, 11:31 p.m. OK C++17 (GCC 7-32) TESTS 5 62 4096000 2200
258929938 QAQ.Maple B2 April 30, 2024, 6:21 p.m. OK C++17 (GCC 7-32) TESTS 5 77 0 2200
261922340 tiojuan B2 May 20, 2024, 6:18 p.m. OK C++17 (GCC 7-32) TESTS 11 77 2048000 2200
259670423 DonMichael B2 May 5, 2024, 6:29 p.m. OK C++17 (GCC 7-32) TESTS 11 77 2048000 2200
259013268 _ljh B2 May 1, 2024, 1:36 p.m. OK C++17 (GCC 7-32) TESTS 10 77 2252800 2200
259386458 politecat B2 May 3, 2024, 4:14 p.m. OK C++17 (GCC 7-32) TESTS 11 77 4915200 2200
259703754 dobydoby B2 May 6, 2024, 4:37 a.m. OK C++17 (GCC 7-32) TESTS 11 77 5017600 2200
258962351 EarthMessenger B2 May 1, 2024, 4:47 a.m. OK C++20 (GCC 13-64) TESTS 5 46 3993600 2200
258920220 Aldk B2 April 30, 2024, 4:57 p.m. OK C++20 (GCC 13-64) TESTS 5 61 3993600 2200
263075516 Shiori224 B2 May 29, 2024, 1:33 a.m. OK C++20 (GCC 13-64) TESTS 11 62 0 2200
258990969 ngmh B2 May 1, 2024, 9:40 a.m. OK C++20 (GCC 13-64) TESTS 5 62 0 2200
258907138 HCPS42 B2 April 30, 2024, 4:07 p.m. OK C++20 (GCC 13-64) TESTS 5 62 102400 2200
258942588 ScarletS B2 April 30, 2024, 9:38 p.m. OK C++20 (GCC 13-64) TESTS 5 62 307200 2200
259978831 RernaG B2 May 8, 2024, 9:47 a.m. OK C++20 (GCC 13-64) TESTS 11 62 3993600 2200
261780206 XiaokQAQ B2 May 20, 2024, 12:43 p.m. OK C++20 (GCC 13-64) TESTS 11 77 0 2200
259410791 AzureDawn B2 May 3, 2024, 7:32 p.m. OK C++20 (GCC 13-64) TESTS 11 77 0 2200
258910551 Saquariu B2 April 30, 2024, 4:20 p.m. OK C++20 (GCC 13-64) TESTS 5 77 0 2200
258873830 hos.lyric B2 April 30, 2024, 2:49 p.m. OK D TESTS 5 640 0 2200
258927938 Gassa B2 April 30, 2024, 6:01 p.m. OK D TESTS 5 1061 102400 2200
258920677 Gassa B2 April 30, 2024, 4:59 p.m. OK D TESTS 5 1530 102400 2200
258913107 chro4896 B2 April 30, 2024, 4:29 p.m. OK GNU C11 TESTS 5 124 16076800 2200
258941177 rainboy B2 April 30, 2024, 9:08 p.m. OK GNU C11 TESTS 5 140 102400 2200
258996726 nguyenquocthao00 B2 May 1, 2024, 10:45 a.m. OK Go TESTS 5 140 614400 2200
258978363 nguyenquocthao00 B2 May 1, 2024, 7:31 a.m. OK Go TESTS 5 171 512000 2200
259077157 nguyenquocthao00 B2 May 2, 2024, 3:53 a.m. OK Go TESTS 11 171 716800 2200
260224909 nguyenquocthao00 B2 May 10, 2024, 8:36 a.m. OK Go TESTS 11 187 716800 2200
263087118 nguyenquocthao00 B2 May 29, 2024, 4:54 a.m. OK Go TESTS 11 218 716800 2200
258937585 DarLam B2 April 30, 2024, 8:05 p.m. OK Java 21 TESTS 5 296 512000 2200
258957158 frey4 B2 May 1, 2024, 3:25 a.m. OK Java 21 TESTS 5 312 1536000 2200
258933960 profchi B2 April 30, 2024, 7:12 p.m. OK Java 21 TESTS 5 312 15872000 2200
258995735 Jagnath_Reddy B2 May 1, 2024, 10:33 a.m. OK Java 21 TESTS 5 327 819200 2200
258887476 FierteDeCeylan B2 April 30, 2024, 3:12 p.m. OK Java 21 TESTS 5 343 409600 2200
259718788 sagbis B2 May 6, 2024, 8 a.m. OK Java 21 TESTS 11 421 512000 2200
259006632 Crazypy B2 May 1, 2024, 12:31 p.m. OK Java 21 TESTS 5 437 1331200 2200
258904567 MaxBuzz B2 April 30, 2024, 3:58 p.m. OK Java 21 TESTS 5 780 204800 2200
263052682 anshs10 B2 May 28, 2024, 6:24 p.m. OK Java 21 TESTS 11 1858 1024000 2200
259571328 chinatest B2 May 5, 2024, 12:50 a.m. OK Java 8 TESTS 11 265 0 2200
258893461 cc4414 B2 April 30, 2024, 3:26 p.m. OK Java 8 TESTS 5 343 0 2200
260898931 formidablechief27 B2 May 14, 2024, 8:42 a.m. OK Java 8 TESTS 11 499 39321600 2200
258905669 wangchaohui B2 April 30, 2024, 4:02 p.m. OK Kotlin 1.9 TESTS 5 249 0 2200
258886986 Tlatoani B2 April 30, 2024, 3:11 p.m. OK Kotlin 1.9 TESTS 5 405 102400 2200
258935589 wyjsdpku B2 April 30, 2024, 7:35 p.m. OK PyPy 3-64 TESTS 5 156 19968000 2200
258935548 wyjsdpku B2 April 30, 2024, 7:35 p.m. OK PyPy 3-64 TESTS 5 187 19865600 2200
258897851 chmpro B2 April 30, 2024, 3:38 p.m. OK PyPy 3-64 TESTS 5 202 4096000 2200
259769572 Charming B2 May 6, 2024, 3:06 p.m. OK PyPy 3-64 TESTS 11 218 19968000 2200
258903049 titia B2 April 30, 2024, 3:53 p.m. OK PyPy 3-64 TESTS 5 233 3174400 2200
258907803 strashila B2 April 30, 2024, 4:09 p.m. OK PyPy 3-64 TESTS 5 233 4812800 2200
258943832 cybsbbb B2 April 30, 2024, 10:10 p.m. OK PyPy 3-64 TESTS 5 234 4915200 2200
258910446 blue_ice_yj B2 April 30, 2024, 4:19 p.m. OK PyPy 3-64 TESTS 5 234 5836800 2200
259067372 codicon B2 May 2, 2024, 12:27 a.m. OK PyPy 3-64 TESTS 11 249 2867200 2200
262135530 citrinitas B2 May 22, 2024, 11:24 a.m. OK PyPy 3-64 TESTS 11 265 3072000 2200
258925450 hitonanode B2 April 30, 2024, 5:43 p.m. OK Python 3 TESTS 5 625 0 2200
259095754 lalitha_72 B2 May 2, 2024, 7:43 a.m. OK Python 3 TESTS 11 703 17203200 2200
259072052 Logic_cf B2 May 2, 2024, 2:24 a.m. OK Python 3 TESTS 11 1843 0 2200
259057623 n685 B2 May 1, 2024, 8:45 p.m. OK Rust 2021 TESTS 11 93 0 2200
259056487 n685 B2 May 1, 2024, 8:38 p.m. OK Rust 2021 TESTS 11 93 0 2200
259056283 n685 B2 May 1, 2024, 8:35 p.m. OK Rust 2021 TESTS 11 109 0 2200
260215933 chishtiawais511 B2 May 10, 2024, 7:07 a.m. OK Rust 2021 TESTS 11 124 0 2200
260990807 Svlad_Cjelli B2 May 15, 2024, 1:05 a.m. OK Rust 2021 TESTS 11 155 0 2200
258972599 SeeleVollerei_ B2 May 1, 2024, 6:37 a.m. OK Rust 2021 TESTS 5 156 2457600 2200
259290207 BetterThanNobita B2 May 3, 2024, 2:56 a.m. OK Rust 2021 TESTS 11 171 0 2200

remove filters

Back to search problems