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 |
---|---|---|---|---|---|---|
131 | Codeforces Beta Round 95 (Div. 2) | FINISHED | False | 7200 | 415724351 | Nov. 25, 2011, 3 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1871 ) | E | Yet Another Task with Queens | PROGRAMMING | sortings | 1800 |
B"A queen is the strongest chess piece. In modern chess the queen can move any number of squares in any horizontal, vertical or diagonal direction (considering that there're no other pieces on its way). The queen combines the options given to the rook and the bishop. There are m queens on a square n xe2 x80 x89 xc3 x97 xe2 x80 x89n chessboard. You know each queen's positions, the i-th queen is positioned in the square (ri, xe2 x80 x89ci), where ri is the board row number (numbered from the top to the bottom from 1 to n), and ci is the board's column number (numbered from the left to the right from 1 to n). No two queens share the same position. For each queen one can count w -- the number of other queens that the given queen threatens (attacks). For a fixed attack direction only the first queen in this direction is under attack if there are many queens are on the ray of the attack. Obviously, for any queen w is between 0 and 8, inclusive. Print the sequence t0, xe2 x80 x89t1, xe2 x80 x89..., xe2 x80 x89t8, where ti is the number of queens that threaten exactly i other queens, i.e. the number of queens that their w equals i. The first line of the input contains a pair of integers n, xe2 x80 x89m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), where n is the size of the board and m is the number of queens on the board. Then m following lines contain positions of the queens, one per line. Each line contains a pair of integers ri, xe2 x80 x89ci (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri, xe2 x80 x89ci xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- the queen's position. No two queens stand on the same square. Print the required sequence t0, xe2 x80 x89t1, xe2 x80 x89..., xe2 x80 x89t8, separating the numbers with spaces."... |
Разбор Codeforces Beta Round #95 (Div.2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
54977735 | rr_ | E | June 2, 2019, 11:37 a.m. | OK | D | TESTS | 30 | 498 | 22835200 | 1800 | |
54977877 | rr_ | E | June 2, 2019, 11:41 a.m. | OK | D | TESTS | 30 | 560 | 23244800 | 1800 | |
40992107 | ReaLNero1 | E | July 31, 2018, 1:05 a.m. | OK | Delphi | TESTS | 30 | 122 | 13619200 | 1800 | |
42412080 | zhhx | E | Sept. 3, 2018, 2:28 a.m. | OK | GNU C++ | TESTS | 30 | 124 | 5836800 | 1800 | |
59098382 | rainboy | E | Aug. 19, 2019, 3:04 p.m. | OK | GNU C11 | TESTS | 30 | 278 | 1228800 | 1800 | |
45444512 | NRK7 | E | Nov. 8, 2018, 12:43 p.m. | OK | GNU C++11 | TESTS | 30 | 92 | 5632000 | 1800 | |
50673282 | vjudge5 | E | March 2, 2019, 8:07 a.m. | OK | GNU C++11 | TESTS | 30 | 92 | 12800000 | 1800 | |
50735137 | vjudge1 | E | March 3, 2019, 12:34 p.m. | OK | GNU C++11 | TESTS | 30 | 124 | 5632000 | 1800 | |
50670760 | vjudge1 | E | March 2, 2019, 6:52 a.m. | OK | GNU C++11 | TESTS | 30 | 156 | 3584000 | 1800 | |
38049752 | kataki | E | May 8, 2018, 5:18 p.m. | OK | GNU C++11 | TESTS | 30 | 156 | 5939200 | 1800 | |
63784887 | bei_li | E | Oct. 30, 2019, 12:02 p.m. | OK | GNU C++11 | TESTS | 30 | 156 | 10035200 | 1800 | |
50687543 | vjudge3 | E | March 2, 2019, 2:17 p.m. | OK | GNU C++11 | TESTS | 30 | 186 | 1638400 | 1800 | |
53805571 | LudwigVanBeethoven | E | May 6, 2019, 12:07 a.m. | OK | GNU C++11 | TESTS | 30 | 186 | 8806400 | 1800 | |
50703318 | hananawi | E | March 3, 2019, 12:59 a.m. | OK | GNU C++11 | TESTS | 30 | 216 | 2048000 | 1800 | |
50703325 | vjudge5 | E | March 3, 2019, 12:59 a.m. | OK | GNU C++11 | TESTS | 30 | 218 | 2048000 | 1800 | |
50676626 | vjudge3 | E | March 2, 2019, 9:32 a.m. | OK | GNU C++14 | TESTS | 30 | 122 | 7987200 | 1800 | |
55956568 | dragonfire100 | E | June 23, 2019, 7:22 a.m. | OK | GNU C++14 | TESTS | 30 | 124 | 7987200 | 1800 | |
50677422 | vjudge3 | E | March 2, 2019, 9:51 a.m. | OK | GNU C++14 | TESTS | 30 | 124 | 9113600 | 1800 | |
46854706 | Simon7426 | E | Dec. 10, 2018, 2:08 p.m. | OK | GNU C++14 | TESTS | 30 | 124 | 10444800 | 1800 | |
46294313 | hugcc | E | Nov. 27, 2018, 11:29 p.m. | OK | GNU C++14 | TESTS | 30 | 124 | 13312000 | 1800 | |
54004007 | arshia_119 | E | May 11, 2019, 6:24 p.m. | OK | GNU C++14 | TESTS | 30 | 124 | 30105600 | 1800 | |
64275737 | DeepThought42 | E | Nov. 4, 2019, 9:16 p.m. | OK | GNU C++14 | TESTS | 30 | 154 | 6963200 | 1800 | |
50691438 | vjudge1 | E | March 2, 2019, 3:52 p.m. | OK | GNU C++14 | TESTS | 30 | 154 | 9113600 | 1800 | |
66804394 | 90qvB | E | Dec. 13, 2019, 8:10 p.m. | OK | GNU C++14 | TESTS | 30 | 154 | 9625600 | 1800 | |
50677506 | vjudge4 | E | March 2, 2019, 9:53 a.m. | OK | GNU C++14 | TESTS | 30 | 154 | 11264000 | 1800 | |
54391085 | trungvthe130284 | E | May 19, 2019, 4:21 p.m. | OK | GNU C++17 | TESTS | 30 | 92 | 5632000 | 1800 | |
50687534 | vjudge5 | E | March 2, 2019, 2:17 p.m. | OK | GNU C++17 | TESTS | 30 | 124 | 3584000 | 1800 | |
50680429 | scaupig | E | March 2, 2019, 11:13 a.m. | OK | GNU C++17 | TESTS | 30 | 124 | 5222400 | 1800 | |
50690356 | vjudge4 | E | March 2, 2019, 3:24 p.m. | OK | GNU C++17 | TESTS | 30 | 124 | 5222400 | 1800 | |
54391228 | trungvthe130284 | E | May 19, 2019, 4:27 p.m. | OK | GNU C++17 | TESTS | 30 | 124 | 5632000 | 1800 | |
54391120 | trungvthe130284 | E | May 19, 2019, 4:22 p.m. | OK | GNU C++17 | TESTS | 30 | 124 | 5632000 | 1800 | |
54390639 | trungvthe130284 | E | May 19, 2019, 4:03 p.m. | OK | GNU C++17 | TESTS | 30 | 124 | 5632000 | 1800 | |
54391300 | trungvthe130284 | E | May 19, 2019, 4:30 p.m. | OK | GNU C++17 | TESTS | 30 | 124 | 5632000 | 1800 | |
50687897 | vjudge2 | E | March 2, 2019, 2:25 p.m. | OK | GNU C++17 | TESTS | 30 | 124 | 40140800 | 1800 | |
45232887 | terminator | E | Nov. 3, 2018, 7:57 a.m. | OK | GNU C++17 | TESTS | 30 | 154 | 4403200 | 1800 | |
57126078 | santoo1234 | E | July 16, 2019, 4:29 a.m. | OK | Java 8 | TESTS | 30 | 310 | 0 | 1800 | |
39245466 | amnesiac_dusk | E | June 14, 2018, 1:27 p.m. | OK | Java 8 | TESTS | 30 | 592 | 16896000 | 1800 | |
46506826 | ankurdua15 | E | Dec. 2, 2018, 11:34 a.m. | OK | Java 8 | TESTS | 30 | 622 | 0 | 1800 | |
67872611 | KamelSamara | E | Dec. 29, 2019, 12:05 p.m. | OK | Java 8 | TESTS | 30 | 684 | 19046400 | 1800 | |
42485691 | aabdelzaher | E | Sept. 5, 2018, 8:54 a.m. | OK | Java 8 | TESTS | 30 | 716 | 0 | 1800 | |
61234781 | somecat | E | Sept. 24, 2019, 5:41 p.m. | OK | Java 8 | TESTS | 30 | 872 | 0 | 1800 | |
56171430 | agent_0 | E | June 27, 2019, 4:48 p.m. | OK | Java 8 | TESTS | 30 | 904 | 2457600 | 1800 | |
59098383 | Dukkha | E | Aug. 19, 2019, 3:04 p.m. | OK | Java 8 | TESTS | 30 | 998 | 0 | 1800 | |
47861100 | xodiac | E | Jan. 3, 2019, 6:04 a.m. | OK | Java 8 | TESTS | 30 | 1122 | 73318400 | 1800 | |
45528037 | spar5h | E | Nov. 10, 2018, 3:50 p.m. | OK | Java 8 | TESTS | 30 | 1558 | 83353600 | 1800 | |
52765686 | hongquanntct | E | April 15, 2019, 3:09 a.m. | OK | Mono C# | TESTS | 30 | 716 | 29081600 | 1800 | |
52765607 | hongquanntct | E | April 15, 2019, 3:02 a.m. | OK | Mono C# | TESTS | 30 | 1152 | 39321600 | 1800 | |
50690352 | vjudge5 | E | March 2, 2019, 3:24 p.m. | OK | MS C++ | TESTS | 30 | 122 | 5222400 | 1800 | |
50687531 | vjudge3 | E | March 2, 2019, 2:17 p.m. | OK | MS C++ | TESTS | 30 | 124 | 3584000 | 1800 | |
50705439 | vjudge5 | E | March 3, 2019, 3:24 a.m. | OK | MS C++ | TESTS | 30 | 218 | 1638400 | 1800 | |
50873620 | vjudge4 | E | March 6, 2019, 4:27 a.m. | OK | MS C++ | TESTS | 30 | 218 | 5017600 | 1800 | |
50781905 | vjudge2 | E | March 4, 2019, 11:46 a.m. | OK | MS C++ | TESTS | 30 | 342 | 11161600 | 1800 | |
50740943 | vjudge5 | E | March 3, 2019, 3:26 p.m. | OK | MS C++ | TESTS | 30 | 530 | 42598400 | 1800 | |
56023813 | sorry_im_smurfing | E | June 25, 2019, 5:50 a.m. | OK | Python 2 | TESTS | 30 | 1870 | 13209600 | 1800 |
Back to search problems