Educational Codeforces Round 133 (Rated for 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
1716 Educational Codeforces Round 133 (Rated for Div. 2) FINISHED False 7200 77556263 Aug. 4, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1103 ) F Bags with Balls PROGRAMMING combinatorics math number theory

B'There are n bags, each bag contains m balls with numbers from 1 to m . For every i in [1, m] , there is exactly one ball with number i in each bag. You have to take exactly one ball from each bag (all bags are different, so, for example, taking the ball 1 from the first bag and the ball 2 from the second bag is not the same as taking the ball 2 from the first bag and the ball 1 from the second bag). After that, you calculate the number of balls with odd numbers among the ones you have taken. Let the number of these balls be F . Your task is to calculate the sum of F^k over all possible ways to take n balls, one from each bag. The first line contains one integer t ( 1 <= t <= 5000 ) -- the number of test cases. Each test case consists of one line containing three integers n , m and k ( 1 <= n, m <= 998244352 ; 1 <= k <= 2000 ). For each test case, print one integer -- the sum of F^k over all possible ways to take n balls, one from each bag. Since it can be huge, print it modulo 998244353 . '...

Tutorials

105653

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
167008743 wyzwyz F Aug. 4, 2022, 4:38 p.m. OK GNU C++14 TESTS 49 358 39526400
167050012 peiwenjun F Aug. 5, 2022, 2:48 a.m. OK GNU C++14 TESTS 49 405 16179200
167014954 DeaphetS F Aug. 4, 2022, 5:19 p.m. OK GNU C++14 TESTS 49 405 32768000
167058467 ybw051114 F Aug. 5, 2022, 5:02 a.m. OK GNU C++14 TESTS 49 420 16179200
167018785 Potassium F Aug. 4, 2022, 5:53 p.m. OK GNU C++14 TESTS 49 421 17203200
167044134 Leonador F Aug. 5, 2022, 1:25 a.m. OK GNU C++14 TESTS 49 436 32358400
167049593 Tyyyyyy F Aug. 5, 2022, 2:42 a.m. OK GNU C++14 TESTS 49 452 16179200
167013616 wildfire032 F Aug. 4, 2022, 5:08 p.m. OK GNU C++14 TESTS 49 499 32256000
167045247 Yet_Another_Handle F Aug. 5, 2022, 1:39 a.m. OK GNU C++14 TESTS 49 561 100454400
167061156 Acfboy F Aug. 5, 2022, 5:37 a.m. OK GNU C++14 TESTS 49 577 16179200
167002941 Ant_Man F Aug. 4, 2022, 4:23 p.m. OK GNU C++17 TESTS 49 343 32256000
167048774 ButterCake F Aug. 5, 2022, 2:29 a.m. OK GNU C++17 TESTS 49 405 16076800
167038874 zero4338 F Aug. 4, 2022, 11:16 p.m. OK GNU C++17 TESTS 49 452 16076800
167053808 ahmedasam3000 F Aug. 5, 2022, 3:49 a.m. OK GNU C++17 TESTS 49 467 32358400
167049841 _Tish_system F Aug. 5, 2022, 2:45 a.m. OK GNU C++17 TESTS 49 498 16179200
167003602 magga F Aug. 4, 2022, 4:25 p.m. OK GNU C++17 TESTS 49 498 32460800
167040069 IsaacMoris F Aug. 4, 2022, 11:51 p.m. OK GNU C++17 TESTS 49 499 16076800
167040758 dean.menezes F Aug. 5, 2022, 12:11 a.m. OK GNU C++17 TESTS 49 514 16076800
167009362 Spitfire_F_Mk_IX F Aug. 4, 2022, 4:41 p.m. OK GNU C++17 TESTS 49 545 32358400
167006552 jimmyywang F Aug. 4, 2022, 4:32 p.m. OK GNU C++17 TESTS 49 545 49254400
167011785 A-SOUL_Eileen F Aug. 4, 2022, 4:55 p.m. OK GNU C++17 (64) TESTS 49 78 32358400
167060392 enslaved F Aug. 5, 2022, 5:28 a.m. OK GNU C++17 (64) TESTS 49 93 17305600
167002042 MateoCV F Aug. 4, 2022, 4:20 p.m. OK GNU C++17 (64) TESTS 49 93 32665600
167059652 stan23456 F Aug. 5, 2022, 5:19 a.m. OK GNU C++17 (64) TESTS 49 93 35328000
167048118 lucasxia01 F Aug. 5, 2022, 2:19 a.m. OK GNU C++17 (64) TESTS 49 155 32256000
167047076 judgme_nt F Aug. 5, 2022, 2:04 a.m. OK GNU C++17 (64) TESTS 49 233 32153600
167009502 leaf1415 F Aug. 4, 2022, 4:42 p.m. OK GNU C++17 (64) TESTS 49 234 16179200
167053426 MarkBcc168 F Aug. 5, 2022, 3:43 a.m. OK GNU C++17 (64) TESTS 49 249 35942400
167012909 natsugiri F Aug. 4, 2022, 5:03 p.m. OK GNU C++17 (64) TESTS 49 452 28262400
167050252 zhangshaojia F Aug. 5, 2022, 2:52 a.m. OK GNU C++17 (64) TESTS 49 1169 34201600
167014416 YangDavid F Aug. 4, 2022, 5:14 p.m. OK GNU C++20 (64) TESTS 49 62 16384000
167057301 zn_com F Aug. 5, 2022, 4:44 a.m. OK GNU C++20 (64) TESTS 49 78 16076800
167025752 Golovanov399 F Aug. 4, 2022, 7:15 p.m. OK GNU C++20 (64) TESTS 49 78 16384000
167049391 _Cade_ F Aug. 5, 2022, 2:39 a.m. OK GNU C++20 (64) TESTS 49 93 16076800
167049693 _Cade_ F Aug. 5, 2022, 2:43 a.m. OK GNU C++20 (64) TESTS 49 93 16179200
167049597 liqing F Aug. 5, 2022, 2:42 a.m. OK GNU C++20 (64) TESTS 49 93 16179200
167005700 AsukaK F Aug. 4, 2022, 4:30 p.m. OK GNU C++20 (64) TESTS 49 93 16179200
167059466 Papaver F Aug. 5, 2022, 5:16 a.m. OK GNU C++20 (64) TESTS 49 93 32358400
167004356 fks20011206 F Aug. 4, 2022, 4:28 p.m. OK GNU C++20 (64) TESTS 49 108 32153600
167028644 maspy F Aug. 4, 2022, 7:55 p.m. OK GNU C++20 (64) TESTS 49 109 17305600

remove filters

Back to search problems