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. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 13783 ) | B1 | Reverse Card (Easy Version) | PROGRAMMING | brute force math number theory | 1400 |
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, only (1,1) satisfies the conditions. In the fourth test case, (1,1),(2,1),(2,2),(3,1),(4,1),(5,1),(6,1),(6,2),(6,3),(7,1),(8,1),(9,1),(10,1),(10,2) satisfy the conditions. '... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
258884427 | mban259 | B1 | April 30, 2024, 3:06 p.m. | OK | C# 10 | TESTS | 5 | 109 | 1536000 | 1400 | |
263395372 | darshitmittal777 | B1 | May 31, 2024, 12:41 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
263395324 | darshitmittal777 | B1 | May 31, 2024, 12:40 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
263259346 | linweiyu1 | B1 | May 30, 2024, 1:56 p.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
262338205 | vishvas07 | B1 | May 24, 2024, 5:41 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
262201976 | HhAoRkSuHs_DD | B1 | May 22, 2024, 11:41 p.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
262000269 | kkksc998 | B1 | May 21, 2024, 10:43 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
261202935 | luogu_bot2 | B1 | May 16, 2024, 1:27 p.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
261050798 | mathur.harshit96 | B1 | May 15, 2024, 12:13 p.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
260884931 | WSD33 | B1 | May 14, 2024, 6:25 a.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
260796768 | dddddadaplllllane | B1 | May 13, 2024, 12:35 p.m. | OK | C++14 (GCC 6-32) | TESTS | 8 | 46 | 0 | 1400 | |
258884829 | Jeuti | B1 | April 30, 2024, 3:07 p.m. | OK | C++17 (GCC 7-32) | TESTS | 5 | 31 | 0 | 1400 | |
263624868 | abhishek_bisht | B1 | June 1, 2024, 11:55 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | 1400 | |
263414233 | justin_zed | B1 | May 31, 2024, 5:24 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | 1400 | |
263158012 | janhavi_verma_c2 | B1 | May 29, 2024, 2:46 p.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | 1400 | |
263095588 | ankursingh101022 | B1 | May 29, 2024, 6:28 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | 1400 | |
262967472 | himanshudhingra | B1 | May 28, 2024, 6:29 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | 1400 | |
262418291 | Si1ent_C0der | B1 | May 24, 2024, 5:13 p.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | 1400 | |
262380136 | Suryansh_Dey | B1 | May 24, 2024, 11:55 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | 1400 | |
262348730 | pipipipipi43 | B1 | May 24, 2024, 7:28 a.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | 1400 | |
262309572 | l_a_l_u123 | B1 | May 23, 2024, 8:13 p.m. | OK | C++17 (GCC 7-32) | TESTS | 8 | 46 | 0 | 1400 | |
260228944 | GaoYusong | B1 | May 10, 2024, 9:11 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 31 | 0 | 1400 | |
258925938 | AP04 | B1 | April 30, 2024, 5:46 p.m. | OK | C++20 (GCC 13-64) | TESTS | 5 | 31 | 0 | 1400 | |
263382032 | kaichisaki | B1 | May 30, 2024, 7:44 p.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | 1400 | |
263231362 | radit | B1 | May 30, 2024, 11:37 a.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | 1400 | |
263180796 | Jatin_prime | B1 | May 29, 2024, 8:03 p.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | 1400 | |
262886280 | Akilie7 | B1 | May 27, 2024, 1:20 p.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | 1400 | |
262882265 | luogu_bot1 | B1 | May 27, 2024, 12:50 p.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | 1400 | |
262431703 | nathan_luiz | B1 | May 24, 2024, 7:34 p.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | 1400 | |
262429060 | vjudge.4 | B1 | May 24, 2024, 7:04 p.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | 1400 | |
262429033 | Naman_g17 | B1 | May 24, 2024, 7:04 p.m. | OK | C++20 (GCC 13-64) | TESTS | 8 | 46 | 0 | 1400 | |
258910621 | Gassa | B1 | April 30, 2024, 4:20 p.m. | OK | D | TESTS | 5 | 93 | 102400 | 1400 | |
258865153 | hos.lyric | B1 | April 30, 2024, 2:39 p.m. | OK | D | TESTS | 5 | 437 | 0 | 1400 | |
261730493 | AbNv069 | B1 | May 20, 2024, 6:33 a.m. | OK | GNU C11 | TESTS | 8 | 61 | 102400 | 1400 | |
258941465 | rainboy | B1 | April 30, 2024, 9:14 p.m. | OK | GNU C11 | TESTS | 5 | 61 | 102400 | 1400 | |
260762043 | sharanyabaidya2020 | B1 | May 13, 2024, 7:51 a.m. | OK | GNU C11 | TESTS | 8 | 92 | 102400 | 1400 | |
258889880 | pengin_2000 | B1 | April 30, 2024, 3:18 p.m. | OK | GNU C11 | TESTS | 5 | 93 | 0 | 1400 | |
258879907 | chro4896 | B1 | April 30, 2024, 2:58 p.m. | OK | GNU C11 | TESTS | 5 | 93 | 0 | 1400 | |
260773514 | nguyenquocthao00 | B1 | May 13, 2024, 9:43 a.m. | OK | Go | TESTS | 8 | 46 | 512000 | 1400 | |
259289223 | nguyenquocthao00 | B1 | May 3, 2024, 2:41 a.m. | OK | Go | TESTS | 8 | 62 | 614400 | 1400 | |
258996210 | nguyenquocthao00 | B1 | May 1, 2024, 10:39 a.m. | OK | Go | TESTS | 5 | 62 | 614400 | 1400 | |
258880477 | FierteDeCeylan | B1 | April 30, 2024, 2:59 p.m. | OK | Java 21 | TESTS | 5 | 233 | 921600 | 1400 | |
258880485 | ffaann | B1 | April 30, 2024, 2:59 p.m. | OK | Java 21 | TESTS | 5 | 234 | 0 | 1400 | |
262005399 | BishtCoder | B1 | May 21, 2024, 11:20 a.m. | OK | Java 21 | TESTS | 8 | 249 | 512000 | 1400 | |
261791007 | mohit1510 | B1 | May 20, 2024, 2:07 p.m. | OK | Java 21 | TESTS | 8 | 264 | 102400 | 1400 | |
258889730 | MaxBuzz | B1 | April 30, 2024, 3:17 p.m. | OK | Java 21 | TESTS | 5 | 265 | 204800 | 1400 | |
259556269 | wibi | B1 | May 4, 2024, 8:06 p.m. | OK | Java 21 | TESTS | 8 | 265 | 512000 | 1400 | |
262385515 | rishit164 | B1 | May 24, 2024, 12:38 p.m. | OK | Java 21 | TESTS | 8 | 280 | 307200 | 1400 | |
258900291 | DarLam | B1 | April 30, 2024, 3:45 p.m. | OK | Java 21 | TESTS | 5 | 280 | 819200 | 1400 | |
259491813 | sagbis | B1 | May 4, 2024, 10:20 a.m. | OK | Java 21 | TESTS | 8 | 296 | 307200 | 1400 | |
260936519 | 2210030072 | B1 | May 14, 2024, 1:54 p.m. | OK | Java 21 | TESTS | 8 | 296 | 614400 | 1400 | |
260866625 | nis1234 | B1 | May 14, 2024, 1:46 a.m. | OK | Java 8 | TESTS | 8 | 140 | 0 | 1400 | |
260794498 | .shinchan_ | B1 | May 13, 2024, 12:20 p.m. | OK | Java 8 | TESTS | 8 | 155 | 0 | 1400 | |
258884228 | cc4414 | B1 | April 30, 2024, 3:06 p.m. | OK | Java 8 | TESTS | 5 | 155 | 0 | 1400 | |
260183803 | arajeev210 | B1 | May 9, 2024, 10:44 p.m. | OK | Java 8 | TESTS | 8 | 156 | 0 | 1400 | |
259127576 | kasiru_69 | B1 | May 2, 2024, 1:36 p.m. | OK | Java 8 | TESTS | 8 | 186 | 0 | 1400 | |
260898909 | formidablechief27 | B1 | May 14, 2024, 8:41 a.m. | OK | Java 8 | TESTS | 8 | 186 | 39424000 | 1400 | |
259569498 | chinatest | B1 | May 5, 2024, 12:02 a.m. | OK | Java 8 | TESTS | 8 | 202 | 0 | 1400 | |
258880327 | MagentaCobra | B1 | April 30, 2024, 2:59 p.m. | OK | Java 8 | TESTS | 5 | 218 | 0 | 1400 | |
260639892 | HardikG12 | B1 | May 12, 2024, 9:18 a.m. | OK | Java 8 | TESTS | 8 | 265 | 0 | 1400 | |
258885179 | KarL05 | B1 | April 30, 2024, 3:08 p.m. | OK | Java 8 | TESTS | 5 | 765 | 0 | 1400 | |
258882481 | wangchaohui | B1 | April 30, 2024, 3:03 p.m. | OK | Kotlin 1.9 | TESTS | 5 | 187 | 0 | 1400 | |
258872089 | bruhopen | B1 | April 30, 2024, 2:47 p.m. | OK | Kotlin 1.9 | TESTS | 5 | 202 | 0 | 1400 | |
258874191 | Tlatoani | B1 | April 30, 2024, 2:49 p.m. | OK | Kotlin 1.9 | TESTS | 5 | 217 | 102400 | 1400 | |
258949562 | yonsweng | B1 | May 1, 2024, 12:52 a.m. | OK | PyPy 3 | TESTS | 5 | 124 | 3276800 | 1400 | |
260231413 | AmineMezghani | B1 | May 10, 2024, 9:34 a.m. | OK | PyPy 3 | TESTS | 8 | 249 | 3481600 | 1400 | |
259531110 | Soshka | B1 | May 4, 2024, 3:54 p.m. | OK | PyPy 3 | TESTS | 8 | 1077 | 3174400 | 1400 | |
263365054 | Dominater069 | B1 | May 30, 2024, 5:01 p.m. | OK | PyPy 3 | TESTS | 8 | 1890 | 8601600 | 1400 | |
258987380 | __rose | B1 | May 1, 2024, 9:04 a.m. | OK | PyPy 3 | TESTS | 5 | 1936 | 4403200 | 1400 | |
260896690 | DrCoder9146 | B1 | May 14, 2024, 8:22 a.m. | OK | PyPy 3-64 | TESTS | 8 | 108 | 2150400 | 1400 | |
258884116 | titia | B1 | April 30, 2024, 3:06 p.m. | OK | PyPy 3-64 | TESTS | 5 | 108 | 2969600 | 1400 | |
258933918 | wyjsdpku | B1 | April 30, 2024, 7:11 p.m. | OK | PyPy 3-64 | TESTS | 5 | 108 | 3276800 | 1400 | |
258879268 | chmpro | B1 | April 30, 2024, 2:57 p.m. | OK | PyPy 3-64 | TESTS | 5 | 109 | 2969600 | 1400 | |
259092486 | siic | B1 | May 2, 2024, 7:10 a.m. | OK | PyPy 3-64 | TESTS | 8 | 109 | 3686400 | 1400 | |
258903653 | strashila | B1 | April 30, 2024, 3:55 p.m. | OK | PyPy 3-64 | TESTS | 5 | 124 | 2867200 | 1400 | |
258884430 | petamingks | B1 | April 30, 2024, 3:06 p.m. | OK | PyPy 3-64 | TESTS | 5 | 124 | 2867200 | 1400 | |
259359170 | N_z__ | B1 | May 3, 2024, 12:56 p.m. | OK | PyPy 3-64 | TESTS | 8 | 124 | 2969600 | 1400 | |
259113350 | younesg | B1 | May 2, 2024, 11:30 a.m. | OK | PyPy 3-64 | TESTS | 8 | 124 | 3481600 | 1400 | |
258955980 | McPqndq | B1 | May 1, 2024, 3:04 a.m. | OK | PyPy 3-64 | TESTS | 5 | 139 | 2150400 | 1400 | |
259991426 | pulidindim | B1 | May 8, 2024, 11:40 a.m. | OK | Python 3 | TESTS | 8 | 155 | 0 | 1400 | |
259095640 | lalitha_72 | B1 | May 2, 2024, 7:41 a.m. | OK | Python 3 | TESTS | 8 | 296 | 0 | 1400 | |
259069573 | Logic_cf | B1 | May 2, 2024, 1:26 a.m. | OK | Python 3 | TESTS | 6 | 390 | 0 | 1400 | |
261317648 | __Dk007_____ | B1 | May 17, 2024, 11:04 a.m. | OK | Python 3 | TESTS | 8 | 405 | 0 | 1400 | |
259119814 | julia.gorbacheva | B1 | May 2, 2024, 12:30 p.m. | OK | Python 3 | TESTS | 8 | 406 | 0 | 1400 | |
260154085 | sky_raider | B1 | May 9, 2024, 4:41 p.m. | OK | Python 3 | TESTS | 8 | 421 | 0 | 1400 | |
258984310 | Eeshwar143 | B1 | May 1, 2024, 8:32 a.m. | OK | Python 3 | TESTS | 5 | 452 | 0 | 1400 | |
259360230 | logic_destroyer | B1 | May 3, 2024, 1:04 p.m. | OK | Python 3 | TESTS | 8 | 483 | 0 | 1400 | |
261317481 | __Dk007_____ | B1 | May 17, 2024, 11:03 a.m. | OK | Python 3 | TESTS | 8 | 593 | 0 | 1400 | |
258931520 | --z | B1 | April 30, 2024, 6:39 p.m. | OK | Python 3 | TESTS | 5 | 608 | 2867200 | 1400 | |
259021452 | niyaznigmatul | B1 | May 1, 2024, 2:54 p.m. | OK | Rust 2021 | TESTS | 6 | 46 | 0 | 1400 | |
258939900 | n685 | B1 | April 30, 2024, 8:44 p.m. | OK | Rust 2021 | TESTS | 5 | 46 | 0 | 1400 | |
260991508 | Svlad_Cjelli | B1 | May 15, 2024, 1:24 a.m. | OK | Rust 2021 | TESTS | 8 | 62 | 0 | 1400 | |
258877652 | qwerty787788 | B1 | April 30, 2024, 2:54 p.m. | OK | Rust 2021 | TESTS | 5 | 62 | 0 | 1400 | |
258960225 | BetterThanNobita | B1 | May 1, 2024, 4:14 a.m. | OK | Rust 2021 | TESTS | 5 | 77 | 0 | 1400 |
Back to search problems