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 |
---|---|---|---|---|---|---|
1519 | Educational Codeforces Round 108 (Rated for Div. 2) | FINISHED | False | 7200 | 117645911 | April 29, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 31286 ) | B | The Cake Is a Lie | PROGRAMMING | dp math |
B"There is a n x m grid. You are standing at cell (1, 1) and your goal is to finish at cell (n, m) . You can move to the neighboring cells to the right or down. In other words, suppose you are standing at cell (x, y) . You can: Can you reach cell (n, m) spending exactly k burles? The first line contains the single integer t ( 1 <= t <= 100 ) -- the number of test cases. The first and only line of each test case contains three integers n , m , and k ( 1 <= n, m <= 100 ; 0 <= k <= 10^4 ) -- the sizes of grid and the exact amount of money you need to spend. For each test case, if you can reach cell (n, m) spending exactly k burles, print YES. Otherwise, print NO. You may print every letter in any case you want (so, for example, the strings yEs, yes, Yes and YES are all recognized as positive answer). In the first test case, you are already in the final cell, so you spend 0 burles. In the second, third and fourth test cases, there are two paths from (1, 1) to (2, 2) : (1, 1) rightarrow (1, 2) rightarrow (2, 2) or (1, 1) rightarrow (2, 1) rightarrow (2, 2) . Both costs 1 + 2 = 3 burles, so it's the only amount of money you can spend. In the fifth test case, there is the only way from (1, 1) to (1, 4) and it costs 1 + 1 + 1 = 3 burles. "... |
Educational Codeforces Round 108 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
114614541 | Rafiqul_islam_robin | B | April 29, 2021, 4:39 p.m. | OK | .NET Core C# | TESTS | 8 | 92 | 40960 | ||
114610502 | LostSpectrum | B | April 29, 2021, 4:28 p.m. | OK | .NET Core C# | TESTS | 8 | 93 | 24576 |
Back to search problems