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 |
329
|
Codeforces Round 192 (Div. 1) |
FINISHED |
False |
7200 |
357496199 |
July 20, 2013, 1:30 p.m. |
Problems
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
( 169 ) |
E |
Evil |
PROGRAMMING |
math |
|
3100 |
B'There are n cities on a two dimensional Cartesian plane. The distance between two cities is equal to the Manhattan distance between them (see the Notes for definition). A Hamiltonian cycle of the cities is defined as a permutation of all n cities. The length of this Hamiltonian cycle is defined as the sum of the distances between adjacent cities in the permutation plus the distance between the first and final city in the permutation. Please compute the longest possible length of a Hamiltonian cycle of the given cities. The first line contains an integer n (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). Then n lines follow, each consisting of two integers xi and yi (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi, xe2 x80 x89yi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109), denoting the coordinates of a city. All given points will be distinct. A single line denoting the longest possible length of a Hamiltonian cycle of the given cities. You should not output the cycle, only its length. Please, do not write the %lld specifier to read or write 64-bit integers in xd0 xa1++. It is preferred to use the cin, cout streams or the %I64d specifier. In the example, one of the possible Hamiltonian cycles with length 6 is (1, 1) (1, 2) (2, 1) (2, 2). There does not exist any other Hamiltonian cycle with a length greater than 6. The Manhattan distance between two cities (xi, xe2 x80 x89yi) and (xj, xe2 x80 x89yj) is |xi xe2 x80 x89- xe2 x80 x89xj| xe2 x80 x89+ xe2 x80 x89|yi xe2 x80 x89- xe2 x80 x89yj|.'... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
4164217 |
Omelianenko |
E |
July 25, 2013, 1:38 p.m. |
OK |
FPC |
TESTS |
98 |
109 |
1740800 |
|
3100 |
4164094 |
Omelianenko |
E |
July 25, 2013, 1:10 p.m. |
OK |
FPC |
TESTS |
98 |
109 |
1740800 |
|
3100 |
15141756 |
HappyNewYearMike |
E |
Dec. 31, 2015, 9:49 p.m. |
OK |
GNU C++ |
TESTS |
98 |
62 |
1433600 |
|
3100 |
8243965 |
pwecar |
E |
Oct. 16, 2014, 7:53 a.m. |
OK |
GNU C++ |
TESTS |
98 |
62 |
1638400 |
|
3100 |
5002680 |
xyz111 |
E |
Nov. 6, 2013, 11 a.m. |
OK |
GNU C++ |
TESTS |
98 |
62 |
1740800 |
|
3100 |
31697257 |
owen_creeper |
E |
Oct. 25, 2017, 2:40 a.m. |
OK |
GNU C++ |
TESTS |
98 |
62 |
20070400 |
|
3100 |
4138141 |
37ae912 |
E |
July 23, 2013, 2 a.m. |
OK |
GNU C++ |
TESTS |
98 |
78 |
1536000 |
|
3100 |
4128423 |
Neverbeloved |
E |
July 21, 2013, 10:19 a.m. |
OK |
GNU C++ |
TESTS |
98 |
78 |
3174400 |
|
3100 |
4209092 |
yuxiaobhcs |
E |
July 31, 2013, 11:58 a.m. |
OK |
GNU C++ |
TESTS |
98 |
92 |
1536000 |
|
3100 |
4195314 |
Neverbeloved |
E |
July 28, 2013, 2:47 p.m. |
OK |
GNU C++ |
TESTS |
98 |
92 |
1536000 |
|
3100 |
4195310 |
Neverbeloved |
E |
July 28, 2013, 2:46 p.m. |
OK |
GNU C++ |
TESTS |
98 |
92 |
1536000 |
|
3100 |
4195297 |
Neverbeloved |
E |
July 28, 2013, 2:44 p.m. |
OK |
GNU C++ |
TESTS |
98 |
92 |
1536000 |
|
3100 |
7797864 |
Los_Angelos_Laycurse |
E |
Sept. 15, 2014, 12:17 a.m. |
OK |
GNU C++0x |
TESTS |
98 |
122 |
1740800 |
|
3100 |
7797860 |
Los_Angelos_Laycurse |
E |
Sept. 15, 2014, 12:15 a.m. |
OK |
GNU C++0x |
TESTS |
98 |
122 |
1740800 |
|
3100 |
9923561 |
zshi |
E |
Feb. 19, 2015, 8:49 a.m. |
OK |
GNU C++0x |
TESTS |
98 |
124 |
1945600 |
|
3100 |
4192470 |
error202 |
E |
July 28, 2013, 2:49 a.m. |
OK |
GNU C++0x |
TESTS |
98 |
124 |
6451200 |
|
3100 |
14486870 |
HJWJBSR |
E |
Nov. 26, 2015, 2:45 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
62 |
1638400 |
|
3100 |
34590353 |
lzr_010506 |
E |
Jan. 27, 2018, 12:23 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
62 |
3686400 |
|
3100 |
34580921 |
lzr_010506 |
E |
Jan. 26, 2018, 3:56 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
62 |
3686400 |
|
3100 |
17131487 |
freebsdx |
E |
April 2, 2016, 2:09 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
122 |
3584000 |
|
3100 |
57895175 |
lopare |
E |
July 28, 2019, 1:16 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
124 |
1638400 |
|
3100 |
57820848 |
py_ultron |
E |
July 26, 2019, 11:04 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
124 |
1638400 |
|
3100 |
40758515 |
zhouyuyang |
E |
July 26, 2018, 1:47 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
124 |
1638400 |
|
3100 |
40015021 |
Scut82 |
E |
July 6, 2018, 1:04 a.m. |
OK |
GNU C++11 |
TESTS |
98 |
124 |
1638400 |
|
3100 |
12268633 |
No_Use_Anymore |
E |
July 29, 2015, 7:39 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
124 |
1638400 |
|
3100 |
69528396 |
Hazyknight |
E |
Jan. 25, 2020, 4:03 p.m. |
OK |
GNU C++11 |
TESTS |
98 |
186 |
3993600 |
|
3100 |
27718870 |
WuHongxun |
E |
June 11, 2017, 10:02 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
124 |
2457600 |
|
3100 |
28283118 |
AmberFrame |
E |
July 4, 2017, 2:41 p.m. |
OK |
GNU C++14 |
TESTS |
98 |
154 |
4300800 |
|
3100 |
67270570 |
ElangBondol |
E |
Dec. 20, 2019, 8:06 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
156 |
1843200 |
|
3100 |
65760799 |
Samaritan_infi |
E |
Nov. 26, 2019, 3:46 p.m. |
OK |
GNU C++14 |
TESTS |
98 |
156 |
1843200 |
|
3100 |
51255612 |
yhx-12243 |
E |
March 13, 2019, 11:09 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
156 |
2048000 |
|
3100 |
23661336 |
Ali.Pi |
E |
Jan. 9, 2017, 7:03 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
156 |
3481600 |
|
3100 |
56435715 |
Scut82 |
E |
July 2, 2019, 2:04 p.m. |
OK |
GNU C++14 |
TESTS |
98 |
186 |
1638400 |
|
3100 |
41429407 |
foreverpiano |
E |
Aug. 10, 2018, 11:36 a.m. |
OK |
GNU C++14 |
TESTS |
98 |
872 |
3276800 |
|
3100 |
53839696 |
ruo |
E |
May 7, 2019, 6:35 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
156 |
1638400 |
|
3100 |
59969603 |
Benq |
E |
Sept. 3, 2019, 11:36 p.m. |
OK |
GNU C++17 |
TESTS |
98 |
218 |
2662400 |
|
3100 |
41448436 |
lllllllllllllllllllllll |
E |
Aug. 11, 2018, 2:13 a.m. |
OK |
GNU C++17 |
TESTS |
98 |
842 |
1638400 |
|
3100 |
25295200 |
DEGwer |
E |
March 6, 2017, 2:41 p.m. |
OK |
MS C++ |
TESTS |
98 |
156 |
8499200 |
|
3100 |
4195304 |
Neverbeloved |
E |
July 28, 2013, 2:46 p.m. |
OK |
MS C++ |
TESTS |
98 |
374 |
1433600 |
|
3100 |
4122927 |
dolphinigle |
E |
July 20, 2013, 5:27 p.m. |
OK |
Python 2 |
TESTS |
98 |
2375 |
32563200 |
|
3100 |
58793918 |
luogu_bot1 |
E |
Aug. 14, 2019, 3:55 a.m. |
OK |
Python 2 |
TESTS |
98 |
2556 |
32358400 |
|
3100 |
60524746 |
luogu_bot2 |
E |
Sept. 14, 2019, 9:53 a.m. |
OK |
Python 2 |
TESTS |
98 |
2618 |
32460800 |
|
3100 |
4655827 |
yurasikchoc |
E |
Oct. 4, 2013, 10:12 a.m. |
OK |
Python 2 |
TESTS |
98 |
2932 |
32256000 |
|
3100 |
remove filters
Back to search problems