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 |
---|---|---|---|---|---|---|
1982 | Codeforces Round 955 (Div. 2, with prizes from NEAR!) | FINISHED | False | 7200 | 17853863 | June 25, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 17456 ) | B | Collatz Conjecture | PROGRAMMING | brute force implementation math number theory |
B"Recently, the first-year student Maxim learned about the Collatz conjecture, but he didn't pay much attention during the lecture, so he believes that the following process is mentioned in the conjecture: There is a variable x and a constant y . The following operation is performed k times: For example, if the number x = 16 , y = 3 , and k = 2 , then after one operation x becomes 17 , and after another operation x becomes 2 , because after adding one, x = 18 is divisible by 3 twice. Given the initial values of x , y , and k , Maxim wants to know what is the final value of x . Each test consists of multiple test cases. The first line contains an integer t ( 1 <= t <= 10^{4} ) -- the number of test cases. Then follows the description of the test cases. The only line of each test case contains three integers x , y , and k ( 1 <= x, k <= 10^{9} , 2 <= y <= 10^{9} ) -- the initial variable, constant and the number of operations. For each test case, output a single integer -- the number obtained after applying k operations. In the first test case, there is only one operation applied to x = 1 , resulting in x becoming 2 . In the second test case, for x = 2 , within one operation, one is added to x and it's divided by y = 3 , resulting in x becoming 1 . In the third test case, x changes as follows: "... |
130839 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
267410273 | A1ternate | B | June 25, 2024, 5:24 p.m. | OK | C# 10 | TESTS | 9 | 155 | 4198400 | ||
267462420 | NoOb_MASTER07 | B | June 26, 2024, 5:13 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
267460530 | ayushk1234 | B | June 26, 2024, 4:53 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
267460030 | lazysapien | B | June 26, 2024, 4:47 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
267447837 | Sanyueyetu | B | June 26, 2024, 1:54 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
267445752 | wsqibking | B | June 26, 2024, 1:08 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
267445455 | F3R618 | B | June 26, 2024, 1:03 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
267417595 | jcai972 | B | June 25, 2024, 6:11 p.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
267442180 | Junz_LJL | B | June 25, 2024, 11:43 p.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 9011200 | ||
267462580 | xie_0518 | B | June 26, 2024, 5:15 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 16076800 | ||
267449639 | SonYeuNuoc | B | June 26, 2024, 2:27 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 16076800 | ||
267460537 | vectordevraj | B | June 26, 2024, 4:53 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267465696 | dhushyanthan | B | June 26, 2024, 5:44 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267465547 | Moonfr4ction | B | June 26, 2024, 5:42 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267463468 | vedanshkadre2 | B | June 26, 2024, 5:24 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267462904 | Ackv111 | B | June 26, 2024, 5:18 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267462900 | Ynoj | B | June 26, 2024, 5:18 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267462885 | testsubject10 | B | June 26, 2024, 5:18 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267462258 | Eshan_12 | B | June 26, 2024, 5:11 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267461872 | dhawal9z | B | June 26, 2024, 5:08 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267459774 | Eswar_Gupta | B | June 26, 2024, 4:44 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
267464402 | ashish_yadav23 | B | June 26, 2024, 5:33 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267468118 | mdali17 | B | June 26, 2024, 6:05 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267467100 | _Kushi_ | B | June 26, 2024, 5:57 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267466853 | uyt777 | B | June 26, 2024, 5:55 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267466832 | dev.m.dodiya | B | June 26, 2024, 5:55 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267466471 | AsadulloAbduev | B | June 26, 2024, 5:51 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267466427 | GOURAB | B | June 26, 2024, 5:51 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267465847 | GojoOfSixEyes | B | June 26, 2024, 5:46 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267464745 | 23-8liumingyang | B | June 26, 2024, 5:36 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267464022 | kunorz | B | June 26, 2024, 5:29 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
267458937 | bluemegane | B | June 26, 2024, 4:35 a.m. | OK | C# 8 | TESTS | 9 | 171 | 2969600 | ||
267457533 | Brackets12 | B | June 26, 2024, 4:20 a.m. | OK | FPC | TESTS | 9 | 77 | 0 | ||
267464170 | thenameoflife | B | June 26, 2024, 5:30 a.m. | OK | GNU C11 | TESTS | 9 | 46 | 102400 | ||
267454169 | graceemlin | B | June 26, 2024, 3:38 a.m. | OK | GNU C11 | TESTS | 9 | 46 | 102400 | ||
267451283 | Itzvikas | B | June 26, 2024, 2:54 a.m. | OK | GNU C11 | TESTS | 9 | 77 | 102400 | ||
267427285 | 2205103 | B | June 25, 2024, 7:39 p.m. | OK | GNU C11 | TESTS | 9 | 92 | 102400 | ||
267452109 | Szzzp | B | June 26, 2024, 3:07 a.m. | OK | GNU C11 | TESTS | 9 | 93 | 102400 | ||
267462635 | Regenerate | B | June 26, 2024, 5:15 a.m. | OK | GNU C11 | TESTS | 9 | 93 | 102400 | ||
267459664 | jayanth26 | B | June 26, 2024, 4:43 a.m. | OK | GNU C11 | TESTS | 9 | 93 | 102400 | ||
267453230 | Szzzp | B | June 26, 2024, 3:24 a.m. | OK | GNU C11 | TESTS | 9 | 93 | 102400 | ||
267427207 | 2205103 | B | June 25, 2024, 7:39 p.m. | OK | GNU C11 | TESTS | 9 | 93 | 102400 | ||
267426993 | 2205103 | B | June 25, 2024, 7:36 p.m. | OK | GNU C11 | TESTS | 9 | 93 | 102400 | ||
267459627 | SNX03 | B | June 26, 2024, 4:42 a.m. | OK | Go | TESTS | 9 | 77 | 921600 | ||
267451739 | nguyenquocthao00 | B | June 26, 2024, 3:01 a.m. | OK | Go | TESTS | 9 | 202 | 17408000 | ||
267402729 | md.noor.hassnain.01 | B | June 25, 2024, 4:31 p.m. | OK | Java 21 | TESTS | 9 | 249 | 409600 | ||
267448637 | -Jarvis- | B | June 26, 2024, 2:08 a.m. | OK | Java 21 | TESTS | 9 | 249 | 614400 | ||
267455739 | ritwik-kapoor | B | June 26, 2024, 3:59 a.m. | OK | Java 21 | TESTS | 9 | 264 | 716800 | ||
267449172 | Sanat0412 | B | June 26, 2024, 2:18 a.m. | OK | Java 21 | TESTS | 9 | 265 | 102400 | ||
267421393 | Sagy13 | B | June 25, 2024, 6:42 p.m. | OK | Java 21 | TESTS | 9 | 265 | 921600 | ||
267444994 | cccClash | B | June 26, 2024, 12:53 a.m. | OK | Java 21 | TESTS | 9 | 265 | 1433600 | ||
267410648 | cry | B | June 25, 2024, 5:26 p.m. | OK | Java 21 | TESTS | 9 | 265 | 42291200 | ||
267453239 | madhanirahul92 | B | June 26, 2024, 3:24 a.m. | OK | Java 21 | TESTS | 9 | 280 | 614400 | ||
267455800 | minibin | B | June 26, 2024, 4 a.m. | OK | Java 21 | TESTS | 9 | 281 | 716800 | ||
267466460 | codeWithDarshan | B | June 26, 2024, 5:51 a.m. | OK | Java 21 | TESTS | 9 | 296 | 204800 | ||
267443546 | nis1234 | B | June 26, 2024, 12:18 a.m. | OK | Java 8 | TESTS | 9 | 140 | 0 | ||
267462948 | SweetAsCocaine | B | June 26, 2024, 5:19 a.m. | OK | Java 8 | TESTS | 9 | 155 | 0 | ||
267432353 | etian6795 | B | June 25, 2024, 8:42 p.m. | OK | Java 8 | TESTS | 9 | 156 | 0 | ||
267464262 | SweetAsCocaine | B | June 26, 2024, 5:31 a.m. | OK | Java 8 | TESTS | 9 | 186 | 0 | ||
267425870 | Sumitsingh7 | B | June 25, 2024, 7:24 p.m. | OK | Java 8 | TESTS | 9 | 187 | 6656000 | ||
267422938 | darkstars_stars | B | June 25, 2024, 6:56 p.m. | OK | Java 8 | TESTS | 9 | 187 | 6656000 | ||
267411710 | ramanimayur836 | B | June 25, 2024, 5:32 p.m. | OK | Java 8 | TESTS | 9 | 218 | 0 | ||
267452926 | user_beans | B | June 26, 2024, 3:20 a.m. | OK | Java 8 | TESTS | 9 | 234 | 0 | ||
267427696 | ankeshgupta | B | June 25, 2024, 7:44 p.m. | OK | Java 8 | TESTS | 9 | 234 | 0 | ||
267413826 | nobita1803 | B | June 25, 2024, 5:45 p.m. | OK | Java 8 | TESTS | 9 | 234 | 0 | ||
267449708 | nesco | B | June 26, 2024, 2:28 a.m. | OK | Kotlin 1.9 | TESTS | 9 | 218 | 102400 | ||
267449840 | nesco | B | June 26, 2024, 2:31 a.m. | OK | Kotlin 1.9 | TESTS | 9 | 233 | 204800 | ||
267401721 | aditya_codes_iitp_2 | B | June 25, 2024, 4:29 p.m. | OK | Kotlin 1.9 | TESTS | 9 | 296 | 0 | ||
267403308 | abhinavnayak21 | B | June 25, 2024, 4:32 p.m. | OK | PyPy 3 | TESTS | 9 | 187 | 5836800 | ||
267411021 | Art10em | B | June 25, 2024, 5:28 p.m. | OK | PyPy 3 | TESTS | 9 | 280 | 6963200 | ||
267461410 | prafulkatare7 | B | June 26, 2024, 5:03 a.m. | OK | PyPy 3 | TESTS | 9 | 311 | 9728000 | ||
267413782 | logankeede | B | June 25, 2024, 5:45 p.m. | OK | PyPy 3 | TESTS | 9 | 328 | 9932800 | ||
267403988 | ArjunPatel | B | June 25, 2024, 4:33 p.m. | OK | PyPy 3 | TESTS | 9 | 359 | 9625600 | ||
267420082 | bergus | B | June 25, 2024, 6:31 p.m. | OK | PyPy 3-64 | TESTS | 9 | 108 | 3891200 | ||
267441500 | YhuanDebeste | B | June 25, 2024, 11:26 p.m. | OK | PyPy 3-64 | TESTS | 9 | 108 | 4608000 | ||
267437744 | YhuanDebeste | B | June 25, 2024, 10:05 p.m. | OK | PyPy 3-64 | TESTS | 9 | 108 | 4608000 | ||
267435627 | YhuanDebeste | B | June 25, 2024, 9:29 p.m. | OK | PyPy 3-64 | TESTS | 9 | 108 | 5529600 | ||
267460462 | gardengnome | B | June 26, 2024, 4:52 a.m. | OK | PyPy 3-64 | TESTS | 9 | 109 | 3686400 | ||
267447805 | RobinFromTheHood | B | June 26, 2024, 1:53 a.m. | OK | PyPy 3-64 | TESTS | 9 | 109 | 3788800 | ||
267445636 | InHng_ | B | June 26, 2024, 1:06 a.m. | OK | PyPy 3-64 | TESTS | 9 | 109 | 3993600 | ||
267419708 | bergus | B | June 25, 2024, 6:28 p.m. | OK | PyPy 3-64 | TESTS | 9 | 109 | 4096000 | ||
267436162 | YhuanDebeste | B | June 25, 2024, 9:38 p.m. | OK | PyPy 3-64 | TESTS | 9 | 109 | 4505600 | ||
267435771 | YhuanDebeste | B | June 25, 2024, 9:31 p.m. | OK | PyPy 3-64 | TESTS | 9 | 109 | 4505600 | ||
267440834 | eugalt | B | June 25, 2024, 11:11 p.m. | OK | Python 3 | TESTS | 9 | 108 | 512000 | ||
267404208 | Ayush_Kumar_Dwivedi | B | June 25, 2024, 4:33 p.m. | OK | Python 3 | TESTS | 9 | 108 | 2560000 | ||
267447387 | S3cr3t_C0d3r | B | June 26, 2024, 1:44 a.m. | OK | Python 3 | TESTS | 9 | 109 | 0 | ||
267439911 | bbjohn834 | B | June 25, 2024, 10:51 p.m. | OK | Python 3 | TESTS | 9 | 109 | 0 | ||
267404053 | Vaibhav_Gupta_22 | B | June 25, 2024, 4:33 p.m. | OK | Python 3 | TESTS | 9 | 109 | 0 | ||
267402187 | shubhi23517 | B | June 25, 2024, 4:30 p.m. | OK | Python 3 | TESTS | 9 | 109 | 0 | ||
267462887 | snowythecat | B | June 26, 2024, 5:18 a.m. | OK | Python 3 | TESTS | 9 | 109 | 512000 | ||
267462824 | snowythecat | B | June 26, 2024, 5:17 a.m. | OK | Python 3 | TESTS | 9 | 109 | 512000 | ||
267441239 | eugalt | B | June 25, 2024, 11:20 p.m. | OK | Python 3 | TESTS | 9 | 109 | 512000 | ||
267464229 | MuhammadAhmad_27 | B | June 26, 2024, 5:31 a.m. | OK | Python 3 | TESTS | 9 | 124 | 0 | ||
267403212 | Siddhant_2021100 | B | June 25, 2024, 4:32 p.m. | OK | Ruby 3 | TESTS | 9 | 327 | 5324800 | ||
267442838 | 0x81 | B | June 26, 2024, 12:01 a.m. | OK | Ruby 3 | TESTS | 9 | 374 | 1536000 | ||
267416252 | atamakahere | B | June 25, 2024, 6:02 p.m. | OK | Rust 2021 | TESTS | 9 | 77 | 0 | ||
267403128 | Archief117 | B | June 25, 2024, 4:31 p.m. | OK | Rust 2021 | TESTS | 9 | 77 | 0 | ||
267402160 | DreadedHippy | B | June 25, 2024, 4:30 p.m. | OK | Rust 2021 | TESTS | 9 | 93 | 0 |
Back to search problems