Codeforces Round 799 (Div. 4)

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
1692 Codeforces Round 799 (Div. 4) FINISHED False 8100 76605899 June 14, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19569 ) D The Clock PROGRAMMING brute force implementation

B'Victor has a 24-hour clock that shows the time in the format "HH:MM" (00 <= HH <= 23, 00 <= MM <= 59). He looks at the clock every x minutes, and the clock is currently showing time s . How many different palindromes will Victor see in total after looking at the clock every x minutes, the first time being at time s ? For example, if the clock starts out as 03:12 and Victor looks at the clock every 360 minutes (i.e. every 6 hours), then he will see the times 03:12, 09:12, 15:12, 21:12, 03:12, and the times will continue to repeat. Here the time 21:12 is the only palindrome he will ever see, so the answer is 1 . A palindrome is a string that reads the same backward as forward. For example, the times 12:21, 05:50, 11:11 are palindromes but 13:13, 22:10, 02:22 are not. The first line of the input contains an integer t ( 1 <= q t <= q 100 ) -- the number of test cases. The description of each test case follows. The only line of each test case contains a string s of length 5 with the format "HH:MM" where "HH" is from "00" to "23" and "MM" is from "00" to "59" (both "HH" and "MM" have exactly two digits) and an integer x ( 1 <= q x <= q 1440 ) -- the number of minutes Victor takes to look again at the clock. For each test case, output a single integer -- the number of different palindromes Victor will see if he looks at the clock every x minutes starting from time s . The first test case is explained in the statement. '...

Tutorials

Codeforces Round #799 (Div. 4) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
160687696 TheILICH D June 15, 2022, 3:55 a.m. OK C# 8 TESTS 11 93 307200
160677865 bluemegane D June 14, 2022, 10:57 p.m. OK C# 8 TESTS 11 124 3686400
160691027 Wii D June 15, 2022, 4:50 a.m. OK FPC TESTS 11 15 102400
160658686 XiaoDou D June 14, 2022, 5:35 p.m. OK GNU C11 TESTS 4 15 0
160659027 Ambh D June 14, 2022, 5:38 p.m. OK GNU C11 TESTS 4 15 0
160663543 MohammadDallash D June 14, 2022, 6:19 p.m. OK GNU C11 TESTS 4 15 0
160667295 SP2003 D June 14, 2022, 7:04 p.m. OK GNU C11 TESTS 4 15 0
160668020 rifxmh D June 14, 2022, 7:13 p.m. OK GNU C11 TESTS 4 15 0
160693579 prosantodass D June 15, 2022, 5:28 a.m. OK GNU C11 TESTS 11 15 0
160693692 prosantodass D June 15, 2022, 5:30 a.m. OK GNU C11 TESTS 11 15 0
160658285 XiaoDou D June 14, 2022, 5:32 p.m. OK GNU C11 TESTS 4 15 0
160665689 SARTHAK_MISHRA D June 14, 2022, 6:44 p.m. OK GNU C++14 TESTS 4 0 0
160694910 mascot2099 D June 15, 2022, 5:48 a.m. OK GNU C++14 TESTS 11 0 0
160689998 vedansh.srivastava6 D June 15, 2022, 4:34 a.m. OK GNU C++14 TESTS 11 0 0
160689690 zhaoxi_zheng D June 15, 2022, 4:29 a.m. OK GNU C++14 TESTS 11 0 0
160688879 chen_zhe_ D June 15, 2022, 4:16 a.m. OK GNU C++14 TESTS 11 0 0
160682408 hsfzLZH1 D June 15, 2022, 2 a.m. OK GNU C++14 TESTS 11 0 0
160667984 BC_Khanh D June 14, 2022, 7:13 p.m. OK GNU C++14 TESTS 4 0 0
160667074 rishijhawar14 D June 14, 2022, 7:01 p.m. OK GNU C++14 TESTS 4 0 0
160666321 jhachirag7 D June 14, 2022, 6:51 p.m. OK GNU C++14 TESTS 4 0 0
160665795 saurabhpatel18216 D June 14, 2022, 6:45 p.m. OK GNU C++14 TESTS 4 0 0
160684587 izano D June 15, 2022, 2:53 a.m. OK GNU C++17 TESTS 11 0 0
160680321 sott D June 15, 2022, 12:54 a.m. OK GNU C++17 TESTS 11 0 0
160684769 Hzumglo D June 15, 2022, 2:57 a.m. OK GNU C++17 TESTS 11 0 0
160687314 TheGods D June 15, 2022, 3:48 a.m. OK GNU C++17 TESTS 11 0 0
160688367 kobeforces D June 15, 2022, 4:07 a.m. OK GNU C++17 TESTS 11 0 0
160688574 fazer02 D June 15, 2022, 4:11 a.m. OK GNU C++17 TESTS 11 0 0
160688882 pandey_2021 D June 15, 2022, 4:16 a.m. OK GNU C++17 TESTS 11 0 0
160689067 Eliaukle D June 15, 2022, 4:19 a.m. OK GNU C++17 TESTS 11 0 0
160692482 Pranav122002 D June 15, 2022, 5:13 a.m. OK GNU C++17 TESTS 11 0 0
160693728 atomicnum29 D June 15, 2022, 5:31 a.m. OK GNU C++17 TESTS 11 0 0
160660416 Neveryours03 D June 14, 2022, 5:50 p.m. OK GNU C++17 (64) TESTS 4 0 0
160657915 aerogel D June 14, 2022, 5:29 p.m. OK GNU C++17 (64) TESTS 4 0 0
160686396 part_timer D June 15, 2022, 3:31 a.m. OK GNU C++17 (64) TESTS 11 0 0
160673275 Kumzericov D June 14, 2022, 8:37 p.m. OK GNU C++17 (64) TESTS 11 0 0
160670957 os-moussao D June 14, 2022, 7:55 p.m. OK GNU C++17 (64) TESTS 11 0 0
160669886 EDITH D June 14, 2022, 7:39 p.m. OK GNU C++17 (64) TESTS 11 0 0
160669429 Mulhamadla D June 14, 2022, 7:32 p.m. OK GNU C++17 (64) TESTS 4 0 0
160668482 Hisham_Hagag D June 14, 2022, 7:20 p.m. OK GNU C++17 (64) TESTS 4 0 0
160666667 kadde D June 14, 2022, 6:56 p.m. OK GNU C++17 (64) TESTS 4 0 0
160660832 alwyn D June 14, 2022, 5:54 p.m. OK GNU C++17 (64) TESTS 4 0 0
160673670 TheRunuwayDino D June 14, 2022, 8:46 p.m. OK GNU C++20 (64) TESTS 11 0 0
160673095 AbDullaCC D June 14, 2022, 8:34 p.m. OK GNU C++20 (64) TESTS 11 0 0
160692378 fishcathu. D June 15, 2022, 5:11 a.m. OK GNU C++20 (64) TESTS 11 0 0
160692290 Mango.Shake D June 15, 2022, 5:10 a.m. OK GNU C++20 (64) TESTS 11 0 0
160688647 Dealth_Knight D June 15, 2022, 4:12 a.m. OK GNU C++20 (64) TESTS 11 0 0
160686216 hghgh D June 15, 2022, 3:27 a.m. OK GNU C++20 (64) TESTS 11 0 0
160685967 __declspec D June 15, 2022, 3:22 a.m. OK GNU C++20 (64) TESTS 11 0 0
160682266 joelau D June 15, 2022, 1:56 a.m. OK GNU C++20 (64) TESTS 11 0 0
160681157 huangjuanjuan D June 15, 2022, 1:24 a.m. OK GNU C++20 (64) TESTS 11 0 0
160674074 AlokKT105 D June 14, 2022, 8:54 p.m. OK GNU C++20 (64) TESTS 11 0 0
160658979 dark_knight_786 D June 14, 2022, 5:37 p.m. OK Java 11 TESTS 4 155 0
160689373 MadDuke D June 15, 2022, 4:24 a.m. OK Java 11 TESTS 11 155 0
160682500 Hitesh_Ahuja D June 15, 2022, 2:03 a.m. OK Java 11 TESTS 11 155 0
160660369 sunaj D June 14, 2022, 5:49 p.m. OK Java 11 TESTS 4 155 0
160658857 MunirKP D June 14, 2022, 5:36 p.m. OK Java 11 TESTS 4 155 0
160657245 Akash151101 D June 14, 2022, 5:24 p.m. OK Java 11 TESTS 4 155 0
160657124 Akash151101 D June 14, 2022, 5:23 p.m. OK Java 11 TESTS 4 155 0
160669145 Ginkgobiloba D June 14, 2022, 7:29 p.m. OK Java 11 TESTS 4 156 0
160659132 koolkartik D June 14, 2022, 5:39 p.m. OK Java 11 TESTS 4 156 0
160658470 goyalronak3 D June 14, 2022, 5:33 p.m. OK Java 11 TESTS 4 156 0
160689904 moyan_01 D June 15, 2022, 4:33 a.m. OK Java 8 TESTS 11 93 0
160682289 ayafayed D June 15, 2022, 1:56 a.m. OK Java 8 TESTS 11 93 0
160662962 Mohamed308 D June 14, 2022, 6:14 p.m. OK Java 8 TESTS 4 93 0
160655512 Eslam_Ahmed D June 14, 2022, 5:12 p.m. OK Java 8 TESTS 4 93 0
160654788 WrongAnswerOnTestCase2 D June 14, 2022, 5:07 p.m. OK Java 8 TESTS 4 93 0
160695494 swaggy_baba D June 15, 2022, 5:56 a.m. OK Java 8 TESTS 11 109 0
160671274 ahmedtawfik D June 14, 2022, 8 p.m. OK Java 8 TESTS 11 109 0
160668532 akshaypatade D June 14, 2022, 7:21 p.m. OK Java 8 TESTS 4 124 0
160663666 kartikdayal29 D June 14, 2022, 6:20 p.m. OK Java 8 TESTS 4 124 0
160661382 4hellboy4 D June 14, 2022, 5:59 p.m. OK Java 8 TESTS 4 124 0
160677733 Hakiobo D June 14, 2022, 10:50 p.m. OK Kotlin 1.4 TESTS 11 108 0
160686341 TemporalBloom D June 15, 2022, 3:29 a.m. OK MS C++ 2017 TESTS 11 15 0
160671444 konni35 D June 14, 2022, 8:03 p.m. OK MS C++ 2017 TESTS 11 30 0
160677269 OriolBG D June 14, 2022, 10:31 p.m. OK Node.js TESTS 11 78 2764800
160660707 otnahs D June 14, 2022, 5:52 p.m. OK Node.js TESTS 4 140 3072000
160656060 Mo.Ah D June 14, 2022, 5:15 p.m. OK PyPy 3 TESTS 4 93 2150400
160655892 Mo.Ah D June 14, 2022, 5:14 p.m. OK PyPy 3 TESTS 4 109 2150400
160670265 hxu10 D June 14, 2022, 7:44 p.m. OK PyPy 3 TESTS 11 139 7987200
160659101 TydTyd D June 14, 2022, 5:39 p.m. OK PyPy 3 TESTS 4 140 3379200
160659020 shlokjakhotia D June 14, 2022, 5:38 p.m. OK PyPy 3 TESTS 4 140 5632000
160695039 lakshay_jain D June 15, 2022, 5:50 a.m. OK PyPy 3 TESTS 11 140 8908800
160693957 ramjeeraghu D June 15, 2022, 5:34 a.m. OK PyPy 3 TESTS 11 155 3072000
160677129 osama_a_rehman D June 14, 2022, 10:26 p.m. OK PyPy 3 TESTS 11 170 9011200
160655704 pranay_32 D June 14, 2022, 5:13 p.m. OK PyPy 3 TESTS 4 202 7065600
160674750 Partho_Debnath D June 14, 2022, 9:12 p.m. OK PyPy 3 TESTS 11 234 9216000
160654374 PaJlaT228PACTBOPOB D June 14, 2022, 5:05 p.m. OK PyPy 3-64 TESTS 4 62 2048000
160675972 crapcode D June 14, 2022, 9:47 p.m. OK PyPy 3-64 TESTS 11 62 2150400
160665257 hith_am D June 14, 2022, 6:38 p.m. OK PyPy 3-64 TESTS 4 62 2252800
160657886 Yaro373 D June 14, 2022, 5:29 p.m. OK PyPy 3-64 TESTS 4 62 2252800
160689763 MistaAsh D June 15, 2022, 4:31 a.m. OK PyPy 3-64 TESTS 11 62 2867200
160663177 Juanm1 D June 14, 2022, 6:16 p.m. OK PyPy 3-64 TESTS 4 77 6144000
160675819 crapcode D June 14, 2022, 9:42 p.m. OK PyPy 3-64 TESTS 11 92 3481600
160665315 HaisTous D June 14, 2022, 6:39 p.m. OK PyPy 3-64 TESTS 4 93 4403200
160661380 Liudas D June 14, 2022, 5:59 p.m. OK PyPy 3-64 TESTS 4 93 4608000
160687980 notxkaran D June 15, 2022, 4 a.m. OK PyPy 3-64 TESTS 11 93 9728000
160665311 Vitaly503 D June 14, 2022, 6:39 p.m. OK Python 3 TESTS 4 46 0
160661490 kumar_devesh D June 14, 2022, 6 p.m. OK Python 3 TESTS 4 61 0
160660013 saini.laxman2002 D June 14, 2022, 5:46 p.m. OK Python 3 TESTS 4 61 0
160689250 Uruguay D June 15, 2022, 4:22 a.m. OK Python 3 TESTS 11 62 0
160678637 NEUTRINO113 D June 14, 2022, 11:36 p.m. OK Python 3 TESTS 11 93 0
160654567 eugalt D June 14, 2022, 5:06 p.m. OK Python 3 TESTS 4 93 0
160682754 quangltfsc0378 D June 15, 2022, 2:09 a.m. OK Python 3 TESTS 11 108 0
160673076 JameelKaisar D June 14, 2022, 8:34 p.m. OK Python 3 TESTS 11 108 0
160666846 QuBitxBG D June 14, 2022, 6:58 p.m. OK Python 3 TESTS 4 109 0
160656960 eugalt D June 14, 2022, 5:21 p.m. OK Python 3 TESTS 4 109 0
160680046 Ayalla D June 15, 2022, 12:43 a.m. OK Ruby 3 TESTS 11 265 1024000
160692204 Sempr D June 15, 2022, 5:09 a.m. OK Rust 2021 TESTS 11 15 409600

remove filters

Back to search problems