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 |
---|---|---|---|---|---|---|
1753 | Codeforces Round 829 (Div. 1) | FINISHED | False | 7200 | 65311799 | Oct. 23, 2022, 7:50 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 212 ) | F | Minecraft Series | PROGRAMMING | brute force two pointers | 3500 |
B'Little Misha goes to the programming club and solves nothing there. It may seem strange, but when you find out that Misha is filming a Minecraft series, everything will fall into place... Misha is inspired by Manhattan, so he built a city in Minecraft that can be imagined as a table of size n x m . k students live in a city, the i -th student lives in the house, located at the intersection of the x_i -th row and the y_i -th column. Also, each student has a degree of his aggressiveness w_i . Since the city turned out to be very large, Misha decided to territorially limit the actions of his series to some square s , which sides are parallel to the coordinate axes. The length of the side of the square should be an integer from 1 to min(n, m) cells. According to the plot, the main hero will come to the city and accidentally fall into the square s . Possessing a unique degree of aggressiveness 0 , he will be able to show his leadership qualities and assemble a team of calm, moderate and aggressive students. In order for the assembled team to be versatile and close-knit, degrees of aggressiveness of all students of the team must be pairwise distinct and must form a single segment of consecutive integers. Formally, if there exist students with degrees of aggressiveness l, l+1, ldots, -1, 1, ldots, r-1, r inside the square s , where l <= 0 <= r , the main hero will be able to form a team of r-l+1 people (of course, he is included in this team). Notice, that it is not required to take all students from square s to the team. Misha thinks that the team should consist of at least t people. That is why he is interested, how many squares are there in the table in which the main hero will be able to form a team of at least t people. Help him to calculate this. The first line contains four integers n , m , k and t ( 1 <= n, m <= 40 ,000 ,'... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
177714875 | Iridescent2020 | F | Oct. 24, 2022, 3:45 a.m. | OK | GNU C++14 | TESTS | 38 | 2605 | 40960000 | 3500 | |
177714768 | Iridescent2020 | F | Oct. 24, 2022, 3:43 a.m. | OK | GNU C++14 | TESTS | 38 | 2635 | 40960000 | 3500 | |
177683127 | Benq | F | Oct. 23, 2022, 6:05 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 2589 | 19148800 | 3500 | |
177682984 | Benq | F | Oct. 23, 2022, 6:04 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 3197 | 19148800 | 3500 | |
177706241 | BeyondHeaven | F | Oct. 24, 2022, 12:52 a.m. | OK | GNU C++17 (64) | TESTS | 38 | 3307 | 20275200 | 3500 | |
177669988 | zihouzhong | F | Oct. 23, 2022, 4:03 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 3556 | 20275200 | 3500 | |
177657470 | Radewoosh | F | Oct. 23, 2022, 2:23 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 3556 | 57344000 | 3500 | |
177682930 | Benq | F | Oct. 23, 2022, 6:03 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 3572 | 19148800 | 3500 | |
177713660 | orzdevinwang | F | Oct. 24, 2022, 3:23 a.m. | OK | GNU C++17 (64) | TESTS | 38 | 5412 | 42086400 | 3500 | |
177708412 | Kubic | F | Oct. 24, 2022, 1:47 a.m. | OK | GNU C++17 (64) | TESTS | 38 | 5881 | 51712000 | 3500 | |
177692024 | pakhomovee | F | Oct. 23, 2022, 7:22 p.m. | OK | GNU C++20 (64) | TESTS | 38 | 3182 | 27955200 | 3500 | |
177684380 | Allvik06 | F | Oct. 23, 2022, 6:18 p.m. | OK | GNU C++20 (64) | TESTS | 38 | 3369 | 19763200 | 3500 | |
177710517 | A_G | F | Oct. 24, 2022, 2:29 a.m. | OK | GNU C++20 (64) | TESTS | 38 | 3446 | 20172800 | 3500 | |
177651080 | jiangly | F | Oct. 23, 2022, 1:40 p.m. | OK | GNU C++20 (64) | TESTS | 38 | 3790 | 17817600 | 3500 | |
177703678 | Chenyu_Qiu | F | Oct. 23, 2022, 11:32 p.m. | OK | GNU C++20 (64) | TESTS | 38 | 4414 | 21606400 | 3500 | |
177647555 | heno239 | F | Oct. 23, 2022, 1:14 p.m. | OK | GNU C++20 (64) | TESTS | 38 | 4975 | 36147200 | 3500 |
Back to search problems