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 |
---|---|---|---|---|---|---|
1403 | Central-European Olympiad in Informatics, CEOI 2020, Day 2 (IOI, Unofficial Mirror Contest, Unrated) | FINISHED | False | 18600 | 138563663 | Aug. 28, 2020, 12:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 54 ) | C | Chess Rush | PROGRAMMING | *special combinatorics dp implementation math |
B'The mythic world of Chess Land is a rectangular grid of squares with R rows and C columns, R being greater than or equal to C . Its rows and columns are numbered from 1 to R and 1 to C , respectively. The inhabitants of Chess Land are usually mentioned as pieces in everyday language, and there are 5 specific types of them roaming the land: pawns, rooks, bishops, queens and kings. Contrary to popular belief, chivalry is long dead in Chess Land, so there are no knights to be found. Each piece is unique in the way it moves around from square to square: in one step, Recently, Chess Land has become a dangerous place: pieces that are passing through the land can get captured unexpectedly by unknown forces and simply disappear. As a consequence, they would like to reach their destinations as fast (i.e. in as few moves) as possible, and they are also interested in the number of different ways it is possible for them to reach it, using the minimal number of steps xe2 x80 x93 because more paths being available could mean lower chances of getting captured. Two paths are considered different if they differ in at least one visited square. For this problem, let us assume that pieces are entering Chess Land in a given column of row 1 , and exit the land in a given column of row R . Your task is to answer Q questions: given the type of a piece, the column it enters row 1 and the column it must reach in row R in order to exit, compute the minimal number of moves it has to make in Chess Land, and the number of different ways it is able to do so. The first line contains three space-separated integers R , C , and Q (1 <= q Q <= q 1000 , 2 <= q C <= q 1000 and C <= q R <= q 10^9) xe2 x80 x93 the number of rows and columns of Chess Land, and the number of questions, respectively. Then Q lines follow. Each line consists of You have to print Q lines, the i -th one '... |
CEOI 2020 Online Mirror — Day 2 Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
91455590 | Misaka-Mikoto- | C | Aug. 31, 2020, 4:39 a.m. | OK | GNU C++11 | TESTS | 42 | 530 | 7987200 | ||
91636151 | charlieyan | C | Sept. 2, 2020, 11:34 a.m. | OK | GNU C++11 | TESTS | 42 | 607 | 137625600 | ||
91626950 | dqa2020 | C | Sept. 2, 2020, 9:12 a.m. | OK | GNU C++11 | TESTS | 42 | 810 | 27238400 | ||
91531529 | gongsuidashen | C | Sept. 1, 2020, 2:30 a.m. | OK | GNU C++11 | TESTS | 42 | 826 | 8192000 | ||
91339149 | s_r_f | C | Aug. 30, 2020, 11:47 a.m. | OK | GNU C++11 | TESTS | 42 | 826 | 12083200 | ||
91339310 | s_r_f | C | Aug. 30, 2020, 11:49 a.m. | OK | GNU C++11 | TESTS | 42 | 841 | 12083200 | ||
91338312 | s_r_f | C | Aug. 30, 2020, 11:34 a.m. | OK | GNU C++11 | TESTS | 42 | 857 | 12083200 | ||
91338143 | s_r_f | C | Aug. 30, 2020, 11:32 a.m. | OK | GNU C++11 | TESTS | 42 | 858 | 36352000 | ||
91225133 | WZYYN | C | Aug. 28, 2020, 3:56 p.m. | OK | GNU C++11 | TESTS | 42 | 1263 | 48435200 | ||
91228457 | 142857 | C | Aug. 28, 2020, 4:33 p.m. | OK | GNU C++11 | TESTS | 42 | 1325 | 3891200 | ||
91673093 | tmwilliamlin168 | C | Sept. 2, 2020, 8:25 p.m. | OK | GNU C++14 | TESTS | 42 | 936 | 238796800 | ||
91278751 | rama_pang | C | Aug. 29, 2020, 11:04 a.m. | OK | GNU C++14 | TESTS | 42 | 1014 | 24268800 | ||
91259456 | rama_pang | C | Aug. 29, 2020, 6 a.m. | OK | GNU C++14 | TESTS | 42 | 1169 | 240947200 | ||
91520475 | krijgertje | C | Aug. 31, 2020, 7:31 p.m. | OK | GNU C++17 | TESTS | 42 | 702 | 8908800 | ||
91452807 | KillerX | C | Aug. 31, 2020, 3:52 a.m. | OK | GNU C++17 | TESTS | 42 | 826 | 27955200 | ||
91498851 | IgorI | C | Aug. 31, 2020, 2:18 p.m. | OK | GNU C++17 | TESTS | 42 | 889 | 154931200 | ||
91606070 | QAQAutoMaton | C | Sept. 2, 2020, 2:14 a.m. | OK | GNU C++17 (64) | TESTS | 42 | 93 | 8499200 | ||
91347241 | Benq | C | Aug. 30, 2020, 1:48 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 139 | 11366400 | ||
91248871 | Benq | C | Aug. 29, 2020, 12:29 a.m. | OK | GNU C++17 (64) | TESTS | 42 | 296 | 21196800 | ||
91271717 | mnbvmar | C | Aug. 29, 2020, 9:17 a.m. | OK | GNU C++17 (64) | TESTS | 42 | 311 | 16998400 | ||
91681075 | rqi | C | Sept. 3, 2020, 1:39 a.m. | OK | GNU C++17 (64) | TESTS | 42 | 514 | 48537600 | ||
91229219 | jiangly | C | Aug. 28, 2020, 4:43 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 841 | 8089600 | ||
91565689 | QAQAutoMaton | C | Sept. 1, 2020, 12:44 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 1294 | 12800000 |
Back to search problems