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 |
|---|---|---|---|---|---|---|
| 788 | Codeforces Round 407 (Div. 1) | FINISHED | False | 7200 | 285688485 | March 29, 2017, 4:05 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 391 ) | E | New task | PROGRAMMING | data structures | 2900 |
On the 228-th international Uzhlyandian Wars strategic game tournament teams from each country are called. The teams should consist of 5 participants. The team of Uzhlyandia will consist of soldiers, because there are no gamers. Masha is a new minister of defense and gaming. The prime duty of the minister is to calculate the efficiency of the Uzhlandian army. The army consists of n soldiers standing in a row, enumerated from 1 to n . For each soldier we know his skill in Uzhlyandian Wars: the i -th soldier's skill is a i . It was decided that the team will consist of three players and two assistants. The skills of players should be same, and the assistants' skills should not be greater than the players' skill. Moreover, it is important for Masha that one of the assistants should stand in the row to the left of the players, and the other one should stand in the row to the right of the players. Formally, a team is five soldiers with indexes i , j , k , l , p , such that 1 ≤ i < j < k < l < p ≤ n and a i ≤ a j = a k = a l ≥ a p . The efficiency of the army is the number of different teams Masha can choose. Two teams are considered different if there is such i such that the i -th soldier is a member of one team, but not a member of the other team. Initially, all players are able to be players. For some reasons, sometimes some soldiers become unable to be players. Sometimes some soldiers, that were unable to be players, become able to be players. At any time any soldier is able to be an assistant. Masha wants to control the efficiency of the army, so she asked you to tell her the number of different possible teams modulo 1000000007 ( 10 9 + 7 ) after each change. The first line contains single integer n ( 1 ≤ n ≤ 10 5 ) — the number of soldiers in Uzhlyandia. The second line contains n integers a 1 , a 2 , ..., a n ( 1 ≤ a i ≤ 10 9 ) — the soldiers' skills. The third line contains single integer m ( 1 ≤ m ≤ 10 5 ) — the number of changes. The next m lines conta |
| Codeforces Round #407(Div.1 + Div.2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 41584272 | Scut82 | E | Aug. 14, 2018, 9:58 a.m. | OK | GNU C++ | TESTS | 81 | 156 | 18432000 | 2900 | |
| 31620321 | vjudge4 | E | Oct. 23, 2017, 5:49 a.m. | OK | GNU C++ | TESTS | 81 | 249 | 68608000 | 2900 | |
| 31626053 | vjudge1 | E | Oct. 23, 2017, 11:03 a.m. | OK | GNU C++ | TESTS | 81 | 280 | 68608000 | 2900 | |
| 27789667 | laofudasuan | E | June 15, 2017, 8:39 a.m. | OK | GNU C++ | TESTS | 81 | 295 | 133120000 | 2900 | |
| 28643772 | Blue233333 | E | July 17, 2017, 3:49 p.m. | OK | GNU C++ | TESTS | 81 | 296 | 71680000 | 2900 | |
| 28643701 | Blue233333 | E | July 17, 2017, 3:34 p.m. | OK | GNU C++ | TESTS | 81 | 296 | 71680000 | 2900 | |
| 28653525 | _Sakits | E | July 18, 2017, 3:13 a.m. | OK | GNU C++ | TESTS | 81 | 312 | 190464000 | 2900 | |
| 27354232 | xzyxzy | E | May 26, 2017, 11:06 a.m. | OK | GNU C++ | TESTS | 81 | 327 | 258867200 | 2900 | |
| 31620628 | vjudge3 | E | Oct. 23, 2017, 6:11 a.m. | OK | GNU C++ | TESTS | 81 | 343 | 100249600 | 2900 | |
| 31618568 | vjudge4 | E | Oct. 23, 2017, 3:21 a.m. | OK | GNU C++ | TESTS | 81 | 358 | 100249600 | 2900 | |
| 58559237 | luogu_bot2 | E | Aug. 11, 2019, 4:40 a.m. | OK | GNU C++11 | TESTS | 81 | 140 | 16486400 | 2900 | |
| 58557014 | MoQianXue | E | Aug. 11, 2019, 2:45 a.m. | OK | GNU C++11 | TESTS | 81 | 140 | 16486400 | 2900 | |
| 58564699 | dyxg | E | Aug. 11, 2019, 7:24 a.m. | OK | GNU C++11 | TESTS | 81 | 171 | 34918400 | 2900 | |
| 25958341 | rajat1603 | E | March 30, 2017, 4:25 p.m. | OK | GNU C++11 | TESTS | 81 | 186 | 19456000 | 2900 | |
| 27273066 | believerg | E | May 21, 2017, 7:52 p.m. | OK | GNU C++11 | TESTS | 81 | 234 | 35635200 | 2900 | |
| 52015875 | vjudge5 | E | March 30, 2019, 10:32 a.m. | OK | GNU C++11 | TESTS | 81 | 234 | 105472000 | 2900 | |
| 26106322 | 0101-1001 | E | April 3, 2017, 6:19 p.m. | OK | GNU C++11 | TESTS | 81 | 249 | 30208000 | 2900 | |
| 26125564 | awc | E | April 4, 2017, 3:34 p.m. | OK | GNU C++11 | TESTS | 81 | 249 | 37785600 | 2900 | |
| 28684584 | zsnuo | E | July 19, 2017, 5:04 a.m. | OK | GNU C++11 | TESTS | 81 | 264 | 41574400 | 2900 | |
| 27199051 | FizzyDavid | E | May 18, 2017, 2:50 p.m. | OK | GNU C++11 | TESTS | 81 | 265 | 22425600 | 2900 | |
| 25978209 | shdut | E | March 31, 2017, 12:21 p.m. | OK | GNU C++14 | TESTS | 81 | 218 | 23756800 | 2900 | |
| 25915904 | MiFaFaOvO | E | March 29, 2017, 5:09 p.m. | OK | GNU C++14 | TESTS | 81 | 234 | 34201600 | 2900 | |
| 25921287 | Errichto | E | March 29, 2017, 5:32 p.m. | OK | GNU C++14 | TESTS | 81 | 249 | 27750400 | 2900 | |
| 25921354 | jcvb | E | March 29, 2017, 5:33 p.m. | OK | GNU C++14 | TESTS | 81 | 249 | 37580800 | 2900 | |
| 26516549 | NiroBC | E | April 20, 2017, 12:56 p.m. | OK | GNU C++14 | TESTS | 81 | 265 | 16896000 | 2900 | |
| 25922582 | YuukaKazami | E | March 29, 2017, 5:38 p.m. | OK | GNU C++14 | TESTS | 81 | 265 | 17510400 | 2900 | |
| 40981948 | ReaLNero1 | E | July 30, 2018, 6:12 p.m. | OK | GNU C++14 | TESTS | 81 | 265 | 21811200 | 2900 | |
| 27272996 | sherlock_holms | E | May 21, 2017, 7:46 p.m. | OK | GNU C++14 | TESTS | 81 | 265 | 35840000 | 2900 | |
| 25977391 | jasonvictoryan | E | March 31, 2017, 11:46 a.m. | OK | GNU C++14 | TESTS | 81 | 280 | 133017600 | 2900 | |
| 33079959 | AprilGrimoire | E | Dec. 10, 2017, 1 p.m. | OK | GNU C++14 | TESTS | 81 | 295 | 23347200 | 2900 | |
| 37527738 | chrisfsj2051 | E | April 22, 2018, 6:13 a.m. | OK | GNU C++17 | TESTS | 81 | 358 | 105472000 | 2900 | |
| 68721313 | kefaa2 | E | Jan. 13, 2020, 4:22 p.m. | OK | GNU C++17 | TESTS | 81 | 592 | 45363200 | 2900 | |
| 52933847 | Shayan.P | E | April 18, 2019, 4:59 a.m. | OK | GNU C++17 | TESTS | 81 | 1138 | 25292800 | 2900 | |
| 57117693 | Benq | E | July 15, 2019, 9:29 p.m. | OK | GNU C++17 | TESTS | 81 | 1481 | 21094400 | 2900 | |
| 58184530 | Abdelrhman_Akram | E | Aug. 2, 2019, 4:34 p.m. | OK | GNU C++17 | TESTS | 81 | 1591 | 59187200 | 2900 | |
| 25969619 | uwi | E | March 31, 2017, 6:48 a.m. | OK | Java 8 | TESTS | 81 | 421 | 50073600 | 2900 | |
| 25948985 | mmaxio | E | March 30, 2017, 10:46 a.m. | OK | Java 8 | TESTS | 81 | 545 | 44748800 | 2900 | |
| 25963835 | uwi | E | March 30, 2017, 8:52 p.m. | OK | Java 8 | TESTS | 81 | 1497 | 88268800 | 2900 |
Back to search problems