Codeforces Round 913 (Div. 3)

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
1907 Codeforces Round 913 (Div. 3) FINISHED False 8100 35392463 Dec. 5, 2023, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11000 ) E Good Triples PROGRAMMING brute force combinatorics number theory

B"Given a non-negative integer number n ( n ge 0 ). Let's say a triple of non-negative integers (a, b, c) is good if a + b + c = n , and digsum(a) + digsum(b) + digsum(c) = digsum(n) , where digsum(x) is the sum of digits of number x . For example, if n = 26 , then the pair (4, 12, 10) is good, because 4 + 12 + 10 = 26 , and (4) + (1 + 2) + (1 + 0) = (2 + 6) . Your task is to find the number of good triples for the given number n . The order of the numbers in a triple matters. For example, the triples (4, 12, 10) and (10, 12, 4) are two different triples. The first line of input contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Descriptions of test cases follow. The first and only line of the test case contains one integer n ( 0 <= n <= 10^7 ). For each test case output one integer, the number of good triples for the given integer n . Order of integers in a triple matters. In the first example, the good triples are (0, 0, 11) , (0, 1, 10) , (0, 10, 1) , (0, 11, 0) , (1, 0, 10) , (1, 10, 0) , (10, 0, 1) , (10, 1, 0) , (11, 0, 0) . In the second example, there is only one good triple (0, 0, 0) . "...

Tutorials

Codeforces Round 913 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
235995906 Tech44 E Dec. 6, 2023, 4:49 a.m. OK Clang++20 Diagnostics TESTS 8 93 0
235968134 Master_Knight E Dec. 5, 2023, 7:29 p.m. OK GNU C11 TESTS 7 62 0
235948204 sharprang E Dec. 5, 2023, 4:56 p.m. OK GNU C11 TESTS 7 62 0
235959919 toshit3q34 E Dec. 5, 2023, 6:02 p.m. OK GNU C11 TESTS 7 77 0
235950924 N.tsengeg E Dec. 5, 2023, 5:02 p.m. OK GNU C++14 TESTS 7 15 0
235949613 Ironman25 E Dec. 5, 2023, 4:58 p.m. OK GNU C++14 TESTS 7 15 0
235947022 redquasar E Dec. 5, 2023, 4:53 p.m. OK GNU C++14 TESTS 7 15 0
235946214 lonelyness E Dec. 5, 2023, 4:51 p.m. OK GNU C++14 TESTS 7 15 0
235962170 bb_16 E Dec. 5, 2023, 6:24 p.m. OK GNU C++14 TESTS 7 15 0
235959684 l_returns E Dec. 5, 2023, 6 p.m. OK GNU C++14 TESTS 7 15 0
235954013 m.arush E Dec. 5, 2023, 5:18 p.m. OK GNU C++14 TESTS 7 15 0
235953437 piyush_beegala E Dec. 5, 2023, 5:14 p.m. OK GNU C++14 TESTS 7 15 0
235979715 DeeGeeDow E Dec. 5, 2023, 10:58 p.m. OK GNU C++14 TESTS 8 15 0
235971312 Ksenobait E Dec. 5, 2023, 8:09 p.m. OK GNU C++14 TESTS 8 15 0
235994730 himanshu13162 E Dec. 6, 2023, 4:31 a.m. OK GNU C++17 TESTS 8 15 0
235994327 RadimirK E Dec. 6, 2023, 4:25 a.m. OK GNU C++17 TESTS 8 15 0
235994137 _37_ E Dec. 6, 2023, 4:22 a.m. OK GNU C++17 TESTS 8 15 0
235992529 kavascg E Dec. 6, 2023, 3:53 a.m. OK GNU C++17 TESTS 8 15 0
235992223 Ibrahim_Mohamed1 E Dec. 6, 2023, 3:48 a.m. OK GNU C++17 TESTS 8 15 0
235991287 Hungry_cheetah E Dec. 6, 2023, 3:30 a.m. OK GNU C++17 TESTS 8 15 0
235987727 1_Hypex_ E Dec. 6, 2023, 2:35 a.m. OK GNU C++17 TESTS 8 15 0
236000062 siiiuuuuuuu_007 E Dec. 6, 2023, 5:44 a.m. OK GNU C++17 TESTS 8 15 0
235998867 MAlexxiT E Dec. 6, 2023, 5:28 a.m. OK GNU C++17 TESTS 8 15 0
235994828 ntxyl E Dec. 6, 2023, 4:33 a.m. OK GNU C++17 TESTS 8 15 0
235949196 Wasi_Ur E Dec. 5, 2023, 4:58 p.m. OK GNU C++17 (64) TESTS 7 0 0
235991790 linjiangli E Dec. 6, 2023, 3:39 a.m. OK GNU C++17 (64) TESTS 8 0 0
235988124 xiangji E Dec. 6, 2023, 2:40 a.m. OK GNU C++17 (64) TESTS 8 0 0
235977546 PC_E1052 E Dec. 5, 2023, 9:55 p.m. OK GNU C++17 (64) TESTS 8 0 0
235995162 hatsuyufei E Dec. 6, 2023, 4:38 a.m. OK GNU C++17 (64) TESTS 8 15 0
236000278 Cosysl E Dec. 6, 2023, 5:47 a.m. OK GNU C++17 (64) TESTS 8 15 0
235993727 zime_www E Dec. 6, 2023, 4:15 a.m. OK GNU C++17 (64) TESTS 8 15 0
235992309 susanzhishen1234 E Dec. 6, 2023, 3:49 a.m. OK GNU C++17 (64) TESTS 8 15 0
235991618 sxsygz E Dec. 6, 2023, 3:36 a.m. OK GNU C++17 (64) TESTS 8 15 0
235990853 yyyyyd E Dec. 6, 2023, 3:22 a.m. OK GNU C++17 (64) TESTS 8 15 0
235997028 n1cknamezz E Dec. 6, 2023, 5:04 a.m. OK GNU C++20 (64) TESTS 8 0 0
235996690 jainsujan031 E Dec. 6, 2023, 5 a.m. OK GNU C++20 (64) TESTS 8 0 0
235994527 sh._.n E Dec. 6, 2023, 4:28 a.m. OK GNU C++20 (64) TESTS 8 0 0
235994483 Sk21_code E Dec. 6, 2023, 4:27 a.m. OK GNU C++20 (64) TESTS 8 0 0
235990033 Fan. E Dec. 6, 2023, 3:08 a.m. OK GNU C++20 (64) TESTS 8 0 0
235989292 zzq123 E Dec. 6, 2023, 2:57 a.m. OK GNU C++20 (64) TESTS 8 0 0
235988881 HM220809 E Dec. 6, 2023, 2:52 a.m. OK GNU C++20 (64) TESTS 8 0 0
235998049 202107010228 E Dec. 6, 2023, 5:17 a.m. OK GNU C++20 (64) TESTS 8 0 0
236000959 practice_kar_lavdya E Dec. 6, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 8 0 0
236001483 5720226849 E Dec. 6, 2023, 5:59 a.m. OK GNU C++20 (64) TESTS 8 0 0
235981678 0x3F E Dec. 6, 2023, 12:04 a.m. OK Go TESTS 8 30 204800
235978710 Yousef_Badr E Dec. 5, 2023, 10:27 p.m. OK Java 11 TESTS 8 186 0
235959692 druti6 E Dec. 5, 2023, 6 p.m. OK Java 11 TESTS 7 234 0
235957843 kasiru_69 E Dec. 5, 2023, 5:45 p.m. OK Java 11 TESTS 7 249 0
235970123 PlayDate E Dec. 5, 2023, 7:53 p.m. OK Java 11 TESTS 8 296 0
235955712 kribri E Dec. 5, 2023, 5:29 p.m. OK Java 11 TESTS 7 327 0
235949983 arwa_khattab E Dec. 5, 2023, 4:59 p.m. OK Java 17 TESTS 7 171 614400
235946736 r3hab.rs E Dec. 5, 2023, 4:53 p.m. OK Java 17 TESTS 7 187 716800
235968816 tiger3768 E Dec. 5, 2023, 7:37 p.m. OK Java 17 TESTS 7 234 512000
235950604 999ms_Clutch E Dec. 5, 2023, 5:01 p.m. OK Java 17 TESTS 7 249 42700800
235947928 Vengeance24032003 E Dec. 5, 2023, 4:55 p.m. OK Java 17 TESTS 7 265 409600
235951254 ManasR_2003 E Dec. 5, 2023, 5:03 p.m. OK Java 17 TESTS 7 296 512000
235986057 mapleKing E Dec. 6, 2023, 2:01 a.m. OK Java 17 TESTS 8 327 307200
235961897 java_noob69 E Dec. 5, 2023, 6:21 p.m. OK Java 21 TESTS 7 265 16179200
235945934 ifajka E Dec. 5, 2023, 4:51 p.m. OK Java 21 TESTS 7 311 307200
235999610 kaushalyad321 E Dec. 6, 2023, 5:38 a.m. OK Java 21 TESTS 8 343 819200
235945014 man-ray E Dec. 5, 2023, 4:48 p.m. OK Java 21 TESTS 7 358 307200
235989589 RatanK E Dec. 6, 2023, 3:02 a.m. OK Java 21 TESTS 8 389 716800
235950244 EliudGarcia2004 E Dec. 5, 2023, 4:59 p.m. OK Java 8 TESTS 7 108 0
235955222 priyaroy3370 E Dec. 5, 2023, 5:25 p.m. OK Java 8 TESTS 7 109 0
235949017 formidablechief_27 E Dec. 5, 2023, 4:57 p.m. OK Java 8 TESTS 7 124 0
235956385 sumitlaura101 E Dec. 5, 2023, 5:34 p.m. OK Java 8 TESTS 7 186 7475200
235956061 Sumitsingh7 E Dec. 5, 2023, 5:31 p.m. OK Java 8 TESTS 7 186 7475200
235991376 ashraybharambe E Dec. 6, 2023, 3:32 a.m. OK Java 8 TESTS 8 217 0
235949901 yvbf E Dec. 5, 2023, 4:59 p.m. OK Java 8 TESTS 7 358 150630400
235961556 _a253 E Dec. 5, 2023, 6:18 p.m. OK Kotlin 1.7 TESTS 7 389 5427200
235985640 bzgu E Dec. 6, 2023, 1:53 a.m. OK MS C++ 2017 TESTS 8 31 0
235977635 ElBarbados E Dec. 5, 2023, 9:57 p.m. OK MS C++ 2017 TESTS 8 31 0
235977198 ElBarbados E Dec. 5, 2023, 9:47 p.m. OK MS C++ 2017 TESTS 8 31 0
235990316 WXL. E Dec. 6, 2023, 3:13 a.m. OK MS C++ 2017 TESTS 8 46 0
235969509 ElBarbados E Dec. 5, 2023, 7:45 p.m. OK MS C++ 2017 TESTS 8 46 0
235956506 IL1on1090 E Dec. 5, 2023, 5:35 p.m. OK MS C++ 2017 TESTS 7 46 0
235976733 maikh07 E Dec. 5, 2023, 9:38 p.m. OK MS C++ 2017 TESTS 8 61 0
235955038 IL1on1090 E Dec. 5, 2023, 5:24 p.m. OK MS C++ 2017 TESTS 7 61 0
235956950 Kleaves E Dec. 5, 2023, 5:38 p.m. OK MS C++ 2017 TESTS 7 62 0
235993228 ahtoh_ E Dec. 6, 2023, 4:06 a.m. OK Node.js TESTS 8 108 6758400
235957336 vibhu_k2003 E Dec. 5, 2023, 5:41 p.m. OK PyPy 3 TESTS 7 248 4915200
235944807 codeblade98 E Dec. 5, 2023, 4:48 p.m. OK PyPy 3 TESTS 7 265 4505600
235949939 Jimmily E Dec. 5, 2023, 4:59 p.m. OK PyPy 3 TESTS 7 280 5632000
235943973 abraccadabra E Dec. 5, 2023, 4:46 p.m. OK PyPy 3 TESTS 7 311 6963200
235984355 durbur123 E Dec. 6, 2023, 1:22 a.m. OK PyPy 3 TESTS 8 326 7987200
235954073 lebron87 E Dec. 5, 2023, 5:18 p.m. OK PyPy 3 TESTS 7 545 9625600
235953336 lebron87 E Dec. 5, 2023, 5:14 p.m. OK PyPy 3 TESTS 7 795 10649600
235952083 aviral311 E Dec. 5, 2023, 5:07 p.m. OK PyPy 3-64 TESTS 7 77 3174400
235974467 gardengnome E Dec. 5, 2023, 8:55 p.m. OK PyPy 3-64 TESTS 8 77 3481600
235978483 SoleProprietor E Dec. 5, 2023, 10:21 p.m. OK PyPy 3-64 TESTS 8 77 4300800
235950759 rope_and_snake E Dec. 5, 2023, 5:02 p.m. OK PyPy 3-64 TESTS 7 93 4403200
235946172 Deecey01 E Dec. 5, 2023, 4:51 p.m. OK PyPy 3-64 TESTS 7 93 4403200
235965291 DP_FORMULA E Dec. 5, 2023, 6:55 p.m. OK PyPy 3-64 TESTS 7 93 4505600
235953363 peb E Dec. 5, 2023, 5:14 p.m. OK PyPy 3-64 TESTS 7 93 4710400
235957683 groundtruth E Dec. 5, 2023, 5:44 p.m. OK PyPy 3-64 TESTS 7 93 5427200
235986484 fvghjlkm E Dec. 6, 2023, 2:10 a.m. OK PyPy 3-64 TESTS 8 108 4198400
235944109 relixer E Dec. 5, 2023, 4:46 p.m. OK PyPy 3-64 TESTS 7 108 5017600
235944262 whereiswhen E Dec. 5, 2023, 4:47 p.m. OK Python 3 TESTS 7 62 512000
235954286 Yorik123 E Dec. 5, 2023, 5:19 p.m. OK Python 3 TESTS 7 109 102400
235951212 zhdanovich E Dec. 5, 2023, 5:03 p.m. OK Python 3 TESTS 7 109 102400
235946481 2100039099cse E Dec. 5, 2023, 4:52 p.m. OK Python 3 TESTS 7 109 102400
235946434 munim_programmer E Dec. 5, 2023, 4:52 p.m. OK Python 3 TESTS 7 109 102400
235964439 samriddhisharma14 E Dec. 5, 2023, 6:46 p.m. OK Python 3 TESTS 7 124 102400
235957090 Niki_fx E Dec. 5, 2023, 5:39 p.m. OK Python 3 TESTS 7 124 102400

remove filters

Back to search problems