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 |
---|---|---|---|---|---|---|
1085 | Technocup 2019 - Elimination Round 4 | FINISHED | False | 7200 | 186251099 | Dec. 23, 2018, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 617 ) | F | Rock-Paper-Scissors Champion | PROGRAMMING | 2700 |
B' n players are going to play a rock-paper-scissors tournament. As you probably know, in a one-on-one match of rock-paper-scissors, two players choose their shapes independently. The outcome is then determined depending on the chosen shapes: "paper" beats "rock", "rock" beats "scissors", "scissors" beat "paper", and two equal shapes result in a draw. At the start of the tournament all players will stand in a row, with their numbers increasing from 1 for the leftmost player, to n for the rightmost player. Each player has a pre-chosen shape that they will use in every game throughout the tournament. Here 's how the tournament is conducted: The organizers are informed about all players ' favoured shapes. They wish to find out the total number of players who have a chance of becoming the tournament champion (that is, there is a suitable way to choose the order of the games and manipulate the coin tosses). However, some players are still optimizing their strategy, and can inform the organizers about their new shapes. Can you find the number of possible champions after each such request? The first line contains two integers n and q -- the number of players and requests respectively ( 1 <= q n <= q 2 cdot 10^5 , 0 <= q q <= q 2 cdot 10^5 ). The second line contains a string of n characters. The i -th of these characters is "R", "P", or "S" if the player i was going to play "rock", "paper", or "scissors" before all requests respectively. The following q lines describe the requests. The j -th of these lines contain an integer p_j and a character c_j meaning that the player p_j is going to use the shape described by the character c_j from this moment ( 1 <= q p_j <= q n ). Print q + 1 integers r_0, ldots, r_q , where r_k is the number of possible champions after processing k requests. '... |
Technocup 2019 — Elimination Round 4 + Codeforces Round 528: editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
61395673 | Itst | F | Sept. 28, 2019, 2 a.m. | OK | GNU C++11 | TESTS | 27 | 296 | 9113600 | 2700 | |
47479796 | dummyies | F | Dec. 25, 2018, 3:37 a.m. | OK | GNU C++11 | TESTS | 27 | 296 | 9113600 | 2700 | |
50182496 | luogu_bot3 | F | Feb. 19, 2019, 3:32 p.m. | OK | GNU C++11 | TESTS | 27 | 296 | 9830400 | 2700 | |
48957816 | vjudge3 | F | Jan. 26, 2019, 5:23 a.m. | OK | GNU C++11 | TESTS | 27 | 312 | 9113600 | 2700 | |
50182252 | luogu_bot4 | F | Feb. 19, 2019, 3:31 p.m. | OK | GNU C++11 | TESTS | 27 | 312 | 9830400 | 2700 | |
48954370 | kingofpizza | F | Jan. 26, 2019, 3:32 a.m. | OK | GNU C++11 | TESTS | 27 | 312 | 9830400 | 2700 | |
48167253 | Winniechen | F | Jan. 10, 2019, 2:59 a.m. | OK | GNU C++11 | TESTS | 27 | 327 | 9113600 | 2700 | |
48954367 | vjudge5 | F | Jan. 26, 2019, 3:32 a.m. | OK | GNU C++11 | TESTS | 27 | 373 | 9830400 | 2700 | |
48283674 | LJC00118 | F | Jan. 12, 2019, 9:10 a.m. | OK | GNU C++11 | TESTS | 27 | 826 | 10649600 | 2700 | |
47441191 | GaryStack | F | Dec. 24, 2018, 1:14 a.m. | OK | GNU C++11 | TESTS | 27 | 936 | 13107200 | 2700 | |
48654229 | ReaLNero1 | F | Jan. 21, 2019, 1:24 a.m. | OK | GNU C++14 | TESTS | 27 | 140 | 5427200 | 2700 | |
47814321 | LODB---D | F | Jan. 1, 2019, 1:25 p.m. | OK | GNU C++14 | TESTS | 27 | 311 | 10035200 | 2700 | |
47431848 | tmwilliamlin168 | F | Dec. 23, 2018, 4:32 p.m. | OK | GNU C++14 | TESTS | 27 | 312 | 13414400 | 2700 | |
47814269 | LODB---D | F | Jan. 1, 2019, 1:24 p.m. | OK | GNU C++14 | TESTS | 27 | 327 | 10035200 | 2700 | |
52533284 | Amidethuong27 | F | April 9, 2019, 2:22 p.m. | OK | GNU C++14 | TESTS | 27 | 374 | 10035200 | 2700 | |
47814185 | LODB---D | F | Jan. 1, 2019, 1:21 p.m. | OK | GNU C++14 | TESTS | 27 | 452 | 10035200 | 2700 | |
49283098 | JustasZ | F | Jan. 31, 2019, 5:04 p.m. | OK | GNU C++14 | TESTS | 27 | 514 | 19353600 | 2700 | |
47440607 | JioFell | F | Dec. 24, 2018, 12:10 a.m. | OK | GNU C++14 | TESTS | 27 | 561 | 2969600 | 2700 | |
51928438 | LowR | F | March 28, 2019, 9:01 a.m. | OK | GNU C++14 | TESTS | 27 | 1762 | 109568000 | 2700 | |
47725629 | chengjian | F | Dec. 30, 2018, 2:05 p.m. | OK | GNU C++17 | TESTS | 27 | 327 | 9216000 | 2700 | |
47491598 | nimphy | F | Dec. 25, 2018, 12:28 p.m. | OK | GNU C++17 | TESTS | 27 | 327 | 9216000 | 2700 | |
58885987 | Kuroni | F | Aug. 16, 2019, 2:13 a.m. | OK | GNU C++17 | TESTS | 27 | 327 | 9830400 | 2700 | |
64191605 | hjk1030 | F | Nov. 4, 2019, 7:58 a.m. | OK | GNU C++17 | TESTS | 27 | 343 | 10035200 | 2700 | |
47623915 | karasek | F | Dec. 28, 2018, 2:08 p.m. | OK | GNU C++17 | TESTS | 27 | 358 | 6860800 | 2700 | |
50630042 | MadMax | F | March 1, 2019, 8:35 a.m. | OK | GNU C++17 | TESTS | 27 | 577 | 18841600 | 2700 | |
48490041 | Nakagawa.Kanon | F | Jan. 17, 2019, 10:23 a.m. | OK | GNU C++17 | TESTS | 27 | 1060 | 14233600 | 2700 | |
49638981 | aviroop123 | F | Feb. 8, 2019, 8:19 p.m. | OK | GNU C++17 | TESTS | 27 | 1092 | 12595200 | 2700 | |
48489819 | Nakagawa.Kanon | F | Jan. 17, 2019, 10:15 a.m. | OK | GNU C++17 | TESTS | 27 | 1419 | 14028800 | 2700 | |
47434974 | iakovlev.zakhar | F | Dec. 23, 2018, 6:19 p.m. | OK | Java 8 | TESTS | 27 | 779 | 18739200 | 2700 | |
47445694 | Intrincantation | F | Dec. 24, 2018, 6:02 a.m. | OK | Java 8 | TESTS | 27 | 889 | 22220800 | 2700 | |
67605987 | dalt | F | Dec. 25, 2019, 1:35 p.m. | OK | Java 8 | TESTS | 27 | 1934 | 259481600 | 2700 |
Back to search problems