CodeCraft-21 and Codeforces Round 711 (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
1498 CodeCraft-21 and Codeforces Round 711 (Div. 2) FINISHED False 7200 120151463 March 29, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9983 ) C Planar Reflections PROGRAMMING brute force combinatorics data structures dp

B'Gaurang has grown up in a mystical universe. He is faced by n consecutive 2D planes. He shoots a particle of decay age k at the planes. A particle can pass through a plane directly, however, every plane produces an identical copy of the particle going in the opposite direction with a decay age k-1 . If a particle has decay age equal to 1 , it will NOT produce a copy. For example, if there are two planes and a particle is shot with decay age 3 (towards the right), the process is as follows: (here, D(x) refers to a single particle with decay age x ) In total, the final multiset S of particles is {D(3), D(2), D(2), D(1) } . (See notes for visual explanation of this test case.) Gaurang is unable to cope up with the complexity of this situation when the number of planes is too large. Help Gaurang find the size of the multiset S , given n and k . Since the size of the multiset can be very large, you have to output it modulo 10^9+7 . Note: Particles can go back and forth between the planes without colliding with each other. The first line of the input contains the number of test cases t ( 1 <= t <= 100 ). Then, t lines follow, each containing two integers n and k ( 1 <= n, k <= 1000 ). Additionally, the sum of n over all test cases will not exceed 1000 , and the sum of k over all test cases will not exceed 1000 . All test cases in one test are different. Output t integers. The i -th of them should be equal to the answer to the i -th test case. Let us explain the first example with four test cases. Test case 1: ( n = 2 , k = 3 ) is already explained in the problem statement. See the below figure of this simulation. Each straight line with a different color represents the path of a different particle. As you can see, there are four distinct particles in the multiset. Note that the vertical spacing between refl'...

Tutorials

CodeCraft-21 and Codeforces Round #711 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
111431664 rieul C March 30, 2021, 3:29 a.m. OK GNU C11 TESTS 22 46 3993600
111395406 xish C March 29, 2021, 4:03 p.m. OK GNU C++11 TESTS 22 15 0
111436803 XingChenGG C March 30, 2021, 5:18 a.m. OK GNU C++11 TESTS 22 15 4096000
111431630 lifehappiness C March 30, 2021, 3:28 a.m. OK GNU C++11 TESTS 22 15 4096000
111429772 SHHK_test C March 30, 2021, 2:40 a.m. OK GNU C++11 TESTS 22 15 4096000
111426845 moyan1082 C March 30, 2021, 12:54 a.m. OK GNU C++11 TESTS 22 15 4096000
111435958 dlx_c C March 30, 2021, 5:04 a.m. OK GNU C++11 TESTS 22 15 4198400
111434792 2018LZY C March 30, 2021, 4:42 a.m. OK GNU C++11 TESTS 22 30 0
111434534 mcGyver C March 30, 2021, 4:37 a.m. OK GNU C++11 TESTS 22 30 0
111434351 mcGyver C March 30, 2021, 4:34 a.m. OK GNU C++11 TESTS 22 30 0
111426912 sky123 C March 30, 2021, 12:57 a.m. OK GNU C++11 TESTS 22 30 0
111423700 vrobert C March 29, 2021, 10:22 p.m. OK GNU C++14 TESTS 22 15 3993600
111399559 ArminAzimi C March 29, 2021, 4:19 p.m. OK GNU C++14 TESTS 22 15 8806400
111410377 Shivam3007 C March 29, 2021, 5:53 p.m. OK GNU C++14 TESTS 22 30 0
111402926 akhil.arza C March 29, 2021, 4:31 p.m. OK GNU C++14 TESTS 22 30 102400
111420764 Akash_19012 C March 29, 2021, 8:44 p.m. OK GNU C++14 TESTS 22 30 204800
111400364 shivam_09 C March 29, 2021, 4:22 p.m. OK GNU C++14 TESTS 22 30 204800
111397808 t-_-t C March 29, 2021, 4:12 p.m. OK GNU C++14 TESTS 22 30 921600
111409017 hayyee C March 29, 2021, 5:36 p.m. OK GNU C++14 TESTS 22 30 4096000
111416499 MSahil032 C March 29, 2021, 7:20 p.m. OK GNU C++14 TESTS 22 30 4300800
111398113 rishavsinghania C March 29, 2021, 4:13 p.m. OK GNU C++14 TESTS 22 30 4300800
111398081 maybswill C March 29, 2021, 4:13 p.m. OK GNU C++17 TESTS 22 15 0
111439219 201811940162 C March 30, 2021, 5:56 a.m. OK GNU C++17 TESTS 22 15 4096000
111401289 kaustaav C March 29, 2021, 4:25 p.m. OK GNU C++17 TESTS 22 30 0
111396027 SwapnilNirupam C March 29, 2021, 4:05 p.m. OK GNU C++17 TESTS 22 30 102400
111403162 xietianyi C March 29, 2021, 4:32 p.m. OK GNU C++17 TESTS 22 30 204800
111423038 peterr C March 29, 2021, 9:52 p.m. OK GNU C++17 TESTS 22 30 3993600
111430422 Feadil C March 30, 2021, 2:58 a.m. OK GNU C++17 TESTS 22 30 3993600
111402627 kiranmsv C March 29, 2021, 4:30 p.m. OK GNU C++17 TESTS 22 30 7987200
111400200 suneet27 C March 29, 2021, 4:21 p.m. OK GNU C++17 TESTS 22 30 7987200
111396942 anupriya13 C March 29, 2021, 4:09 p.m. OK GNU C++17 TESTS 22 30 7987200
111406609 Ermachkov.Yaroslav C March 29, 2021, 5:13 p.m. OK GNU C++17 (64) TESTS 22 15 0
111400747 mickus C March 29, 2021, 4:23 p.m. OK GNU C++17 (64) TESTS 22 15 0
111399876 mysteri0us7 C March 29, 2021, 4:20 p.m. OK GNU C++17 (64) TESTS 22 15 0
111397442 koderkushy C March 29, 2021, 4:11 p.m. OK GNU C++17 (64) TESTS 22 15 0
111402168 nestedcode C March 29, 2021, 4:28 p.m. OK GNU C++17 (64) TESTS 22 15 9830400
111415263 BERNARB.01 C March 29, 2021, 6:59 p.m. OK GNU C++17 (64) TESTS 22 30 0
111439533 ozaid_15 C March 30, 2021, 6:01 a.m. OK GNU C++17 (64) TESTS 22 30 0
111435381 nomad_heart C March 30, 2021, 4:53 a.m. OK GNU C++17 (64) TESTS 22 30 0
111405304 Nour C March 29, 2021, 5:05 p.m. OK GNU C++17 (64) TESTS 22 30 0
111401989 AkshitDh C March 29, 2021, 4:28 p.m. OK GNU C++17 (64) TESTS 22 30 0
111412989 0x3F C March 29, 2021, 6:26 p.m. OK Go TESTS 22 31 8704000
111433603 Puru299792458 C March 30, 2021, 4:18 a.m. OK Go TESTS 22 171 112947200
111439544 kshitijsuri90 C March 30, 2021, 6:01 a.m. OK Java 11 TESTS 22 187 0
111418551 vishu1999 C March 29, 2021, 7:57 p.m. OK Java 11 TESTS 22 202 6246400
111396501 akman10 C March 29, 2021, 4:07 p.m. OK Java 11 TESTS 22 217 0
111400883 Siddharth2020 C March 29, 2021, 4:24 p.m. OK Java 11 TESTS 22 217 6144000
111405408 tankman890 C March 29, 2021, 5:05 p.m. OK Java 11 TESTS 22 218 6144000
111396918 bever209 C March 29, 2021, 4:09 p.m. OK Java 11 TESTS 22 248 0
111396208 nitesh.dtu C March 29, 2021, 4:06 p.m. OK Java 11 TESTS 22 249 0
111438939 tushar_patil C March 30, 2021, 5:52 a.m. OK Java 11 TESTS 22 264 0
111432461 subhankar.majumdar.752 C March 30, 2021, 3:49 a.m. OK Java 11 TESTS 22 280 0
111400346 kartikeysemwal C March 29, 2021, 4:22 p.m. OK Java 11 TESTS 22 280 0
111427206 aadit.ambadkar C March 30, 2021, 1:11 a.m. OK Java 8 TESTS 22 109 0
111430851 aggarwalanshul01 C March 30, 2021, 3:10 a.m. OK Java 8 TESTS 22 124 4505600
111425007 Restricted C March 29, 2021, 11:29 p.m. OK Java 8 TESTS 22 124 4505600
111399495 honeysingh18 C March 29, 2021, 4:18 p.m. OK Java 8 TESTS 22 124 4710400
111397033 Abdallah_Ragab00 C March 29, 2021, 4:09 p.m. OK Java 8 TESTS 22 139 0
111411211 flydzt C March 29, 2021, 6:03 p.m. OK Java 8 TESTS 22 140 4505600
111407782 Tanmay C March 29, 2021, 5:23 p.m. OK Java 8 TESTS 22 155 0
111398880 Eurus7 C March 29, 2021, 4:16 p.m. OK Java 8 TESTS 22 155 0
111431490 sks_saurav C March 30, 2021, 3:25 a.m. OK Java 8 TESTS 22 155 4608000
111403152 MubtasimShahriar C March 29, 2021, 4:32 p.m. OK Java 8 TESTS 22 155 4608000
111398401 yakamoto C March 29, 2021, 4:14 p.m. OK Kotlin TESTS 22 139 5120000
111401173 areniis C March 29, 2021, 4:25 p.m. OK Kotlin TESTS 22 202 6656000
111396532 PavelChadnov C March 29, 2021, 4:07 p.m. OK Kotlin TESTS 22 202 17408000
111394837 koper C March 29, 2021, 4:01 p.m. OK Kotlin TESTS 22 342 35020800
111413161 DMN C March 29, 2021, 6:28 p.m. OK Mono C# TESTS 22 62 1945600
111403833 DLUTteng C March 29, 2021, 4:34 p.m. OK MS C++ TESTS 22 109 43929600
111438672 FLself C March 30, 2021, 5:48 a.m. OK MS C++ 2017 TESTS 22 31 0
111436511 FLself C March 30, 2021, 5:13 a.m. OK MS C++ 2017 TESTS 22 31 0
111429750 Fy9091 C March 30, 2021, 2:40 a.m. OK MS C++ 2017 TESTS 22 31 4403200
111398690 geon08 C March 29, 2021, 4:15 p.m. OK MS C++ 2017 TESTS 22 46 4096000
111416539 UnHingedFrog C March 29, 2021, 7:21 p.m. OK MS C++ 2017 TESTS 22 46 19660800
111398928 CWJ_123 C March 29, 2021, 4:16 p.m. OK MS C++ 2017 TESTS 22 62 307200
111428800 Albertplus007 C March 30, 2021, 2:11 a.m. OK MS C++ 2017 TESTS 22 77 35942400
111430816 qing_lin C March 30, 2021, 3:09 a.m. OK MS C++ 2017 TESTS 22 155 16384000
111413796 Zhora_.004 C March 29, 2021, 6:36 p.m. OK MS C++ 2017 TESTS 22 155 36864000
111427293 afterzvn C March 30, 2021, 1:14 a.m. OK .NET Core C# TESTS 22 140 8192000
111436028 tennisru C March 30, 2021, 5:05 a.m. OK Node.js TESTS 22 139 24371200
111398476 hedgehog_a C March 29, 2021, 4:14 p.m. OK PyPy 3 TESTS 22 108 1433600
111401899 fel2fram C March 29, 2021, 4:27 p.m. OK PyPy 3 TESTS 22 108 2150400
111397818 not_a_spy C March 29, 2021, 4:12 p.m. OK PyPy 3 TESTS 22 108 2560000
111414493 b99202050 C March 29, 2021, 6:46 p.m. OK PyPy 3 TESTS 22 108 2969600
111416521 _aadiupadhyay_ C March 29, 2021, 7:20 p.m. OK PyPy 3 TESTS 22 109 1843200
111402997 jaglike_makkar C March 29, 2021, 4:31 p.m. OK PyPy 3 TESTS 22 109 1945600
111405592 code_code_code C March 29, 2021, 5:06 p.m. OK PyPy 3 TESTS 22 109 2150400
111407939 silvertint C March 29, 2021, 5:25 p.m. OK PyPy 3 TESTS 22 109 5836800
111418655 magnus.hegdahl C March 29, 2021, 7:59 p.m. OK PyPy 3 TESTS 22 109 6348800
111426780 jisun05 C March 30, 2021, 12:51 a.m. OK PyPy 3 TESTS 22 124 3072000
111396193 Bluefish2 C March 29, 2021, 4:06 p.m. OK Python 2 TESTS 22 202 0
111427641 koogoro C March 30, 2021, 1:27 a.m. OK Python 3 TESTS 22 296 307200
111408450 pratikjain226 C March 29, 2021, 5:30 p.m. OK Python 3 TESTS 22 483 409600
111396130 azurel C March 29, 2021, 4:06 p.m. OK Python 3 TESTS 22 499 307200
111398505 prashanttholia C March 29, 2021, 4:15 p.m. OK Python 3 TESTS 22 514 307200
111396051 fork52 C March 29, 2021, 4:05 p.m. OK Python 3 TESTS 22 530 307200
111400212 h8191 C March 29, 2021, 4:21 p.m. OK Python 3 TESTS 22 545 307200
111413987 anuneetanand C March 29, 2021, 6:39 p.m. OK Python 3 TESTS 22 577 307200
111401346 raajvanshi C March 29, 2021, 4:26 p.m. OK Python 3 TESTS 22 685 819200
111407790 rpashuto C March 29, 2021, 5:23 p.m. OK Python 3 TESTS 22 686 26931200
111394884 Samrat_21 C March 29, 2021, 4:01 p.m. OK Python 3 TESTS 22 826 307200
111403843 v1kasja1swal C March 29, 2021, 4:34 p.m. OK Rust TESTS 22 780 247705600

remove filters

Back to search problems