Codeforces Round 785 (Div. 2)

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
1673 Codeforces Round 785 (Div. 2) FINISHED False 7200 85850663 April 30, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13388 ) C Palindrome Basis PROGRAMMING dp math number theory

B"You are given a positive integer n . Let's call some positive integer a without leading zeroes palindromic if it remains the same after reversing the order of its digits. Find the number of distinct ways to express n as a sum of positive palindromic integers. Two ways are considered different if the frequency of at least one palindromic integer is different in them. For example, 5=4+1 and 5=3+1+1 are considered different but 5=3+1+1 and 5=1+3+1 are considered the same. Formally, you need to find the number of distinct multisets of positive palindromic integers the sum of which is equal to n . Since the answer can be quite large, print it modulo 10^9+7 . The first line of input contains a single integer t ( 1 <= q t <= q 10^4 ) denoting the number of testcases. Each testcase contains a single line of input containing a single integer n ( 1 <= q n <= q 4 cdot 10^4 ) -- the required sum of palindromic integers. For each testcase, print a single integer denoting the required answer modulo 10^9+7 . For the first testcase, there are 7 ways to partition 5 as a sum of positive palindromic integers: For the second testcase, there are total 77 ways to partition 12 as a sum of positive integers but among them, the partitions 12=2+10 , 12=1+1+10 and 12=12 are not valid partitions of 12 as a sum of positive palindromic integers because 10 and 12 are not palindromic. So, there are 74 ways to partition 12 as a sum of positive palindromic integers. "...

Tutorials

Codeforces Round #785 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
155466700 allegrogiken C May 1, 2022, 1:10 a.m. OK D TESTS 10 218 6144000
155447064 tejava C April 30, 2022, 5:30 p.m. OK GNU C11 TESTS 10 109 512000
155435023 YOK C April 30, 2022, 4:08 p.m. OK GNU C11 TESTS 10 140 614400
155455842 jdown C April 30, 2022, 7:46 p.m. OK GNU C11 TESTS 10 1512 159334400
155470890 starcat C May 1, 2022, 3:09 a.m. OK GNU C++14 TESTS 10 15 204800
155464692 lonely_lovely_ckj C May 1, 2022, 12:03 a.m. OK GNU C++14 TESTS 10 31 204800
155458916 Mihir_Aswal C April 30, 2022, 8:58 p.m. OK GNU C++14 TESTS 10 31 204800
155456177 Marwan_MohiEldeen C April 30, 2022, 7:54 p.m. OK GNU C++14 TESTS 10 31 204800
155446815 amunduzbaev C April 30, 2022, 5:27 p.m. OK GNU C++14 TESTS 10 31 204800
155473365 Vgt_Dog C May 1, 2022, 4:04 a.m. OK GNU C++14 TESTS 10 31 204800
155471255 minsiqi C May 1, 2022, 3:17 a.m. OK GNU C++14 TESTS 10 31 204800
155470547 spoonjunxi C May 1, 2022, 3 a.m. OK GNU C++14 TESTS 10 31 204800
155469692 Kowen_XAT C May 1, 2022, 2:38 a.m. OK GNU C++14 TESTS 10 31 204800
155466850 CodeBugZero C May 1, 2022, 1:15 a.m. OK GNU C++14 TESTS 10 31 204800
155443689 Monarchuwu C April 30, 2022, 4:58 p.m. OK GNU C++17 TESTS 10 15 204800
155462765 LeoRiether C April 30, 2022, 10:47 p.m. OK GNU C++17 TESTS 10 30 204800
155432979 zstu21huangzh C April 30, 2022, 4 p.m. OK GNU C++17 TESTS 10 30 307200
155474811 real_akhil C May 1, 2022, 4:32 a.m. OK GNU C++17 TESTS 10 31 102400
155468969 JoseDavid C May 1, 2022, 2:20 a.m. OK GNU C++17 TESTS 10 31 204800
155467584 lniiwuw_y C May 1, 2022, 1:40 a.m. OK GNU C++17 TESTS 10 31 204800
155465493 RenaMoe C May 1, 2022, 12:29 a.m. OK GNU C++17 TESTS 10 31 204800
155477903 sourav1201 C May 1, 2022, 5:25 a.m. OK GNU C++17 TESTS 10 31 204800
155465321 Mostafa_Moharram C May 1, 2022, 12:24 a.m. OK GNU C++17 TESTS 10 31 204800
155479136 winner6426 C May 1, 2022, 5:43 a.m. OK GNU C++17 TESTS 10 31 204800
155469327 tomato_potato C May 1, 2022, 2:29 a.m. OK GNU C++17 (64) TESTS 10 15 2867200
155469556 XHYU61 C May 1, 2022, 2:35 a.m. OK GNU C++17 (64) TESTS 10 30 1228800
155431789 colazcy C April 30, 2022, 3:56 p.m. OK GNU C++17 (64) TESTS 10 31 204800
155472351 Retired_Isaunoya C May 1, 2022, 3:43 a.m. OK GNU C++17 (64) TESTS 10 31 204800
155471943 _Pioneer C May 1, 2022, 3:34 a.m. OK GNU C++17 (64) TESTS 10 31 204800
155459486 tsukiko_tsutsukakushi C April 30, 2022, 9:12 p.m. OK GNU C++17 (64) TESTS 10 31 204800
155459271 akwa_blue C April 30, 2022, 9:07 p.m. OK GNU C++17 (64) TESTS 10 31 204800
155457800 camc C April 30, 2022, 8:30 p.m. OK GNU C++17 (64) TESTS 10 31 204800
155444187 youtsuha C April 30, 2022, 5:01 p.m. OK GNU C++17 (64) TESTS 10 31 204800
155440264 PurpleCrayon C April 30, 2022, 4:28 p.m. OK GNU C++17 (64) TESTS 10 31 204800
155451311 kirek C April 30, 2022, 6:25 p.m. OK GNU C++20 (64) TESTS 10 15 204800
155448882 korombobombo C April 30, 2022, 5:49 p.m. OK GNU C++20 (64) TESTS 10 15 204800
155446079 pseong C April 30, 2022, 5:20 p.m. OK GNU C++20 (64) TESTS 10 15 204800
155444053 imtiyazrasool92 C April 30, 2022, 5 p.m. OK GNU C++20 (64) TESTS 10 15 204800
155443684 rgnerdplayer C April 30, 2022, 4:58 p.m. OK GNU C++20 (64) TESTS 10 15 204800
155439255 Thallium54 C April 30, 2022, 4:24 p.m. OK GNU C++20 (64) TESTS 10 15 204800
155454475 Thallium54 C April 30, 2022, 7:20 p.m. OK GNU C++20 (64) TESTS 10 15 204800
155470972 zzh2001 C May 1, 2022, 3:10 a.m. OK GNU C++20 (64) TESTS 10 15 204800
155444826 ColtenOuO C April 30, 2022, 5:07 p.m. OK GNU C++20 (64) TESTS 10 15 307200
155445491 rkrupeshkumar345 C April 30, 2022, 5:13 p.m. OK GNU C++20 (64) TESTS 10 15 307200
155446695 koqo C April 30, 2022, 5:26 p.m. OK Go TESTS 10 140 1126400
155461957 spadiff C April 30, 2022, 10:22 p.m. OK Go TESTS 10 233 94208000
155454908 YadunandanAhuja C April 30, 2022, 7:28 p.m. OK Java 11 TESTS 10 202 0
155452346 smlj C April 30, 2022, 6:43 p.m. OK Java 11 TESTS 10 280 0
155457731 jdown C April 30, 2022, 8:28 p.m. OK Java 11 TESTS 10 280 0
155430775 DOOMJUICE C April 30, 2022, 3:52 p.m. OK Java 11 TESTS 10 296 0
155470538 aditya2024 C May 1, 2022, 3 a.m. OK Java 11 TESTS 10 327 0
155437598 enviornment C April 30, 2022, 4:18 p.m. OK Java 11 TESTS 10 342 0
155452290 smlj C April 30, 2022, 6:42 p.m. OK Java 11 TESTS 10 343 0
155433939 shojin_pro C April 30, 2022, 4:04 p.m. OK Java 11 TESTS 10 343 0
155476862 gunner7 C May 1, 2022, 5:09 a.m. OK Java 11 TESTS 10 358 0
155472925 cdap2003 C May 1, 2022, 3:56 a.m. OK Java 11 TESTS 10 358 0
155478412 vaibhav_1710 C May 1, 2022, 5:33 a.m. OK Java 8 TESTS 10 155 0
155431795 akshaykumar200042 C April 30, 2022, 3:56 p.m. OK Java 8 TESTS 10 264 0
155438341 DWSHR C April 30, 2022, 4:21 p.m. OK Java 8 TESTS 10 296 0
155449423 todzh C April 30, 2022, 5:56 p.m. OK Java 8 TESTS 10 296 0
155447747 sanjayram21 C April 30, 2022, 5:36 p.m. OK Java 8 TESTS 10 296 0
155432803 adi_7861 C April 30, 2022, 3:59 p.m. OK Java 8 TESTS 10 312 0
155440685 pranayrana14 C April 30, 2022, 4:30 p.m. OK Java 8 TESTS 10 327 0
155433585 harshsingla06 C April 30, 2022, 4:02 p.m. OK Java 8 TESTS 10 343 0
155475823 ikillmyself C May 1, 2022, 4:51 a.m. OK Java 8 TESTS 10 530 243200000
155458431 sachinjaiswal C April 30, 2022, 8:46 p.m. OK Java 8 TESTS 10 560 241971200
155433134 chika10 C April 30, 2022, 4:01 p.m. OK MS C++ 2017 TESTS 10 78 204800
155455311 ivanlarin C April 30, 2022, 7:35 p.m. OK MS C++ 2017 TESTS 10 93 409600
155439828 hcp C April 30, 2022, 4:26 p.m. OK MS C++ 2017 TESTS 10 109 307200
155468348 xuancx C May 1, 2022, 2:03 a.m. OK MS C++ 2017 TESTS 10 124 409600
155451826 Viktor36 C April 30, 2022, 6:33 p.m. OK MS C++ 2017 TESTS 10 202 409600
155455617 IlyinAD C April 30, 2022, 7:42 p.m. OK MS C++ 2017 TESTS 10 265 79872000
155444821 azure_dragon C April 30, 2022, 5:07 p.m. OK MS C++ 2017 TESTS 10 296 161894400
155443464 dan.kormilin C April 30, 2022, 4:57 p.m. OK MS C++ 2017 TESTS 10 358 195276800
155448050 De_nis C April 30, 2022, 5:39 p.m. OK MS C++ 2017 TESTS 10 467 167424000
155438121 BusIgor C April 30, 2022, 4:20 p.m. OK MS C++ 2017 TESTS 10 608 160358400
155430903 Tdyx C April 30, 2022, 3:52 p.m. OK .NET Core C# TESTS 10 389 86118400
155440259 chinesedfan C April 30, 2022, 4:28 p.m. OK Node.js TESTS 10 249 105779200
155443793 1_2_3_4_5_9 C April 30, 2022, 4:58 p.m. OK PyPy 2 TESTS 10 577 86732800
155434572 14_15_16 C April 30, 2022, 4:06 p.m. OK PyPy 2 TESTS 10 577 86732800
155443563 acorn11 C April 30, 2022, 4:57 p.m. OK PyPy 2 TESTS 10 592 81203200
155446593 lemiao12 C April 30, 2022, 5:25 p.m. OK PyPy 3 TESTS 10 155 4300800
155469786 rainap C May 1, 2022, 2:41 a.m. OK PyPy 3 TESTS 10 170 2764800
155468454 Aragorn8037 C May 1, 2022, 2:06 a.m. OK PyPy 3 TESTS 10 171 4096000
155445212 wyxfwxh250821 C April 30, 2022, 5:10 p.m. OK PyPy 3 TESTS 10 249 5120000
155435001 shehebe C April 30, 2022, 4:08 p.m. OK PyPy 3 TESTS 10 358 9932800
155436799 BigNerd24 C April 30, 2022, 4:15 p.m. OK PyPy 3 TESTS 10 358 82841600
155460128 nishigake C April 30, 2022, 9:29 p.m. OK PyPy 3 TESTS 10 499 10547200
155474004 bukunu C May 1, 2022, 4:16 a.m. OK PyPy 3 TESTS 10 780 88576000
155455548 iliakakurin C April 30, 2022, 7:40 p.m. OK PyPy 3 TESTS 10 826 88064000
155432271 katonyonko C April 30, 2022, 3:57 p.m. OK PyPy 3 TESTS 10 1388 174387200
155474045 siganai C May 1, 2022, 4:17 a.m. OK PyPy 3-64 TESTS 10 140 6656000
155445226 tyzzi C April 30, 2022, 5:10 p.m. OK PyPy 3-64 TESTS 10 140 6758400
155440054 hritik3878 C April 30, 2022, 4:27 p.m. OK PyPy 3-64 TESTS 10 155 6246400
155456730 sr3gm2 C April 30, 2022, 8:06 p.m. OK PyPy 3-64 TESTS 10 155 6963200
155445746 mina2000gt C April 30, 2022, 5:16 p.m. OK PyPy 3-64 TESTS 10 155 7065600
155443503 Rajveer_100 C April 30, 2022, 4:57 p.m. OK PyPy 3-64 TESTS 10 155 7065600
155445183 cofonewbie C April 30, 2022, 5:10 p.m. OK PyPy 3-64 TESTS 10 155 7168000
155443488 hvbird C April 30, 2022, 4:57 p.m. OK PyPy 3-64 TESTS 10 155 7577600
155448791 Mashin_larner C April 30, 2022, 5:48 p.m. OK PyPy 3-64 TESTS 10 171 6656000
155435748 Skillful_Wanderer C April 30, 2022, 4:10 p.m. OK PyPy 3-64 TESTS 10 171 7270400
155432386 LittleFall C April 30, 2022, 3:58 p.m. OK Rust 2021 TESTS 10 46 204800
155474636 bqn C May 1, 2022, 4:28 a.m. OK Rust 2021 TESTS 10 343 84684800
155437494 clause C April 30, 2022, 4:18 p.m. OK Rust 2021 TESTS 10 482 168038400

remove filters

Back to search problems