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.
Problems
B"As you might already know, space has always been a problem in ICPC Jakarta. To cope with this, ICPC Jakarta is planning to build two new buildings. These buildings should have a shape of a rectangle of the same size. Now, their problem is to find land to build the buildings. There are N lands available for sale. The i^{th} land has a rectangular shape of size L_i x W_i . For a good feng shui, the building's side should be parallel to the land's sides. One way is to build the two buildings on two different lands, one on each land (not necessarily with the same orientation). A building of size A x B can be build on the i^{th} land if and only if at least one of the following is satisfied: Your task in this problem is to help ICPC Jakarta to figure out the largest possible buildings they can build given N available lands. Note that ICPC Jakarta has to build two buildings of A x B ; output the largest possible for A x B . Input begins with a line containing an integer: N ( 1 <= N <= 100 ,000 ) representing the number of available lands. The next N lines each contains two integers: L_i W_i ( 1 <= L_i, W_i <= 10^9 ) representing the size of the land. Output in a line a number representing the largest building that ICPC Jakarta can build with exactly one decimal point (see sample input/output for clarity). Explanation for the sample input/output #1 Two buildings of 2.5 x 5 can be built both on the first land. Explanation for the sample input/output #2 Two buildings of 2 x 4 can be built each on the first and second lands. Explanation for the sample input/output #3 Two buildings of 7 x 6 can be built each on the second and third lands. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
64062966 |
453908766 |
H |
Nov. 2, 2019, 4:42 a.m. |
OK |
Clang++17 Diagnostics |
TESTS |
53 |
155 |
716800 |
|
1900 |
63535262 |
bowenshen YOK FortreSSS |
H |
Oct. 27, 2019, 7:53 a.m. |
OK |
GNU C11 |
TESTS |
53 |
78 |
2457600 |
|
1900 |
64283160 |
lalalafloat |
H |
Nov. 5, 2019, 3:15 a.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
819200 |
|
1900 |
64121539 |
vjudge4 |
H |
Nov. 3, 2019, 1:44 a.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
1228800 |
|
1900 |
64124192 |
vjudge5 |
H |
Nov. 3, 2019, 3:37 a.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
1228800 |
|
1900 |
65703073 |
vjudge5 |
H |
Nov. 25, 2019, 11:34 a.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
1638400 |
|
1900 |
63546166 |
Adelard |
H |
Oct. 27, 2019, 10:35 a.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
1638400 |
|
1900 |
65712632 |
vjudge2 |
H |
Nov. 25, 2019, 3:01 p.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
1638400 |
|
1900 |
63523725 |
xdu_lhz Greenty_Q cdcq |
H |
Oct. 27, 2019, 4:37 a.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
1740800 |
|
1900 |
63524534 |
myx12345 chenkuowen |
H |
Oct. 27, 2019, 4:51 a.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
2457600 |
|
1900 |
65706624 |
vjudge3 |
H |
Nov. 25, 2019, 12:50 p.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
2764800 |
|
1900 |
63523550 |
Shavkat_Aminov |
H |
Oct. 27, 2019, 4:34 a.m. |
OK |
GNU C++11 |
TESTS |
53 |
46 |
3174400 |
|
1900 |
68831754 |
Lezedary_sandwich |
H |
Jan. 14, 2020, 11:03 p.m. |
OK |
GNU C++14 |
TESTS |
53 |
46 |
2457600 |
|
1900 |
64716501 |
Temirulan |
H |
Nov. 11, 2019, 10:34 p.m. |
OK |
GNU C++14 |
TESTS |
53 |
62 |
819200 |
|
1900 |
64609162 |
MasT_ |
H |
Nov. 9, 2019, 11:26 p.m. |
OK |
GNU C++14 |
TESTS |
53 |
62 |
819200 |
|
1900 |
63689872 |
2683331518 |
H |
Oct. 29, 2019, 1:43 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
62 |
819200 |
|
1900 |
63526783 |
ZYF1024 |
H |
Oct. 27, 2019, 5:29 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
62 |
819200 |
|
1900 |
64296682 |
Samaritan123 |
H |
Nov. 5, 2019, 8:49 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
62 |
1331200 |
|
1900 |
63526199 |
DeaderJR YousefMurad |
H |
Oct. 27, 2019, 5:19 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
62 |
2048000 |
|
1900 |
63526298 |
wa006 |
H |
Oct. 27, 2019, 5:21 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
62 |
5632000 |
|
1900 |
64580546 |
NoTeamName |
H |
Nov. 9, 2019, 11:58 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
77 |
819200 |
|
1900 |
66498778 |
yan-zp |
H |
Dec. 8, 2019, 11:39 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
77 |
819200 |
|
1900 |
65461388 |
interestingLSY |
H |
Nov. 21, 2019, 2:29 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
46 |
5836800 |
|
1900 |
65049806 |
Jester szechuan_sauce Medeowex |
H |
Nov. 15, 2019, 2:08 p.m. |
OK |
GNU C++17 |
TESTS |
53 |
62 |
819200 |
|
1900 |
64076837 |
CQXYM |
H |
Nov. 2, 2019, 9 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
62 |
819200 |
|
1900 |
63527989 |
Heisexingqitian |
H |
Oct. 27, 2019, 5:51 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
62 |
819200 |
|
1900 |
64560271 |
GENGBK Unsterblicher_Geist cxmsqjh |
H |
Nov. 9, 2019, 5:46 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
62 |
2457600 |
|
1900 |
64568640 |
liyunfan1223 |
H |
Nov. 9, 2019, 8:25 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
62 |
3174400 |
|
1900 |
64513974 |
tlwpdus molamola. |
H |
Nov. 8, 2019, 9:56 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
77 |
819200 |
|
1900 |
63961275 |
garman |
H |
Nov. 1, 2019, 5:16 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
77 |
819200 |
|
1900 |
63917722 |
17204127 |
H |
Oct. 31, 2019, 10:40 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
77 |
819200 |
|
1900 |
65626169 |
ryuIo Mentholzzz Lucina |
H |
Nov. 24, 2019, 8:07 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
77 |
819200 |
|
1900 |
64777584 |
z20124528 |
H |
Nov. 13, 2019, 5:28 a.m. |
OK |
Go |
TESTS |
53 |
217 |
4505600 |
|
1900 |
63719609 |
Musin |
H |
Oct. 29, 2019, 10:58 a.m. |
OK |
Java 11 |
TESTS |
53 |
233 |
0 |
|
1900 |
63530646 |
aminul |
H |
Oct. 27, 2019, 6:37 a.m. |
OK |
Java 8 |
TESTS |
53 |
155 |
0 |
|
1900 |
63534111 |
Aljahoen al_Jahy cormacc |
H |
Oct. 27, 2019, 7:34 a.m. |
OK |
Java 8 |
TESTS |
53 |
202 |
0 |
|
1900 |
63766875 |
yaoct |
H |
Oct. 30, 2019, 6:33 a.m. |
OK |
Java 8 |
TESTS |
53 |
218 |
0 |
|
1900 |
63545830 |
NguyenHungCuong |
H |
Oct. 27, 2019, 10:30 a.m. |
OK |
Java 8 |
TESTS |
53 |
218 |
132198400 |
|
1900 |
63943000 |
ZeyadKhattab |
H |
Oct. 31, 2019, 6:01 p.m. |
OK |
Java 8 |
TESTS |
53 |
233 |
0 |
|
1900 |
64184955 |
YazanAssaf |
H |
Nov. 4, 2019, 4:18 a.m. |
OK |
Java 8 |
TESTS |
53 |
296 |
4300800 |
|
1900 |
64162113 |
Garett azlz lomoss |
H |
Nov. 3, 2019, 2:54 p.m. |
OK |
Java 8 |
TESTS |
53 |
405 |
4812800 |
|
1900 |
64162068 |
O_o_Garett |
H |
Nov. 3, 2019, 2:53 p.m. |
OK |
Java 8 |
TESTS |
53 |
405 |
4812800 |
|
1900 |
63530135 |
CRestart |
H |
Oct. 27, 2019, 6:29 a.m. |
OK |
Java 8 |
TESTS |
53 |
421 |
16384000 |
|
1900 |
67007971 |
scorpiowf |
H |
Dec. 16, 2019, 8:45 a.m. |
OK |
Java 8 |
TESTS |
53 |
451 |
0 |
|
1900 |
63627114 |
Spheniscine |
H |
Oct. 28, 2019, 4:30 a.m. |
OK |
Kotlin |
TESTS |
53 |
202 |
614400 |
|
1900 |
63626993 |
Spheniscine |
H |
Oct. 28, 2019, 4:26 a.m. |
OK |
Kotlin |
TESTS |
53 |
217 |
614400 |
|
1900 |
63625673 |
Spheniscine |
H |
Oct. 28, 2019, 3:30 a.m. |
OK |
Kotlin |
TESTS |
53 |
233 |
614400 |
|
1900 |
63527955 |
QuantumKnight |
H |
Oct. 27, 2019, 5:51 a.m. |
OK |
Mono C# |
TESTS |
53 |
171 |
4608000 |
|
1900 |
64072392 |
vjudge1 |
H |
Nov. 2, 2019, 7:50 a.m. |
OK |
MS C++ |
TESTS |
53 |
77 |
1638400 |
|
1900 |
66039805 |
vjudge3 |
H |
Nov. 30, 2019, 1:06 p.m. |
OK |
MS C++ |
TESTS |
53 |
77 |
1638400 |
|
1900 |
64136040 |
vjudge1 |
H |
Nov. 3, 2019, 7:07 a.m. |
OK |
MS C++ |
TESTS |
53 |
78 |
1638400 |
|
1900 |
66047296 |
vjudge4 |
H |
Nov. 30, 2019, 3:39 p.m. |
OK |
MS C++ |
TESTS |
53 |
78 |
1638400 |
|
1900 |
64635673 |
vjudge4 |
H |
Nov. 10, 2019, 11:31 a.m. |
OK |
MS C++ |
TESTS |
53 |
187 |
1638400 |
|
1900 |
66047006 |
vjudge3 |
H |
Nov. 30, 2019, 3:31 p.m. |
OK |
MS C++ |
TESTS |
53 |
187 |
1638400 |
|
1900 |
64476512 |
vjudge1 |
H |
Nov. 7, 2019, 2:33 p.m. |
OK |
MS C++ |
TESTS |
53 |
187 |
1638400 |
|
1900 |
64565917 |
vjudge1 |
H |
Nov. 9, 2019, 7:40 a.m. |
OK |
MS C++ |
TESTS |
53 |
202 |
1638400 |
|
1900 |
64527082 |
vjudge2 |
H |
Nov. 8, 2019, 2:08 p.m. |
OK |
MS C++ |
TESTS |
53 |
202 |
1638400 |
|
1900 |
64560921 |
vjudge3 |
H |
Nov. 9, 2019, 6:01 a.m. |
OK |
MS C++ |
TESTS |
53 |
202 |
1638400 |
|
1900 |
64580980 |
tzz1710113037 |
H |
Nov. 9, 2019, 12:05 p.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
93 |
1638400 |
|
1900 |
64563985 |
BeiLuo |
H |
Nov. 9, 2019, 7:02 a.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
93 |
1638400 |
|
1900 |
65796237 |
vjudge1 |
H |
Nov. 27, 2019, 4:55 a.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
93 |
1638400 |
|
1900 |
63703465 |
MIG29 |
H |
Oct. 29, 2019, 8:07 a.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
187 |
1740800 |
|
1900 |
64555629 |
vjudge1 |
H |
Nov. 9, 2019, 3:29 a.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
202 |
1843200 |
|
1900 |
64124657 |
vjudge3 |
H |
Nov. 3, 2019, 3:56 a.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
296 |
7372800 |
|
1900 |
63911172 |
AslanX_X ndhp2000 MinhNguye |
H |
Oct. 31, 2019, 8:20 a.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
312 |
7270400 |
|
1900 |
63528131 |
FlakeLCR wow_ok conqueror_of_tourist |
H |
Oct. 27, 2019, 5:54 a.m. |
OK |
PyPy 3 |
TESTS |
53 |
623 |
9932800 |
|
1900 |
64507061 |
O_Ramanujan |
H |
Nov. 8, 2019, 7:20 a.m. |
OK |
PyPy 3 |
TESTS |
53 |
639 |
14336000 |
|
1900 |
63521091 |
McDic LeiviniaBirdway nvmdava |
H |
Oct. 27, 2019, 3:45 a.m. |
OK |
Python 3 |
TESTS |
53 |
483 |
15974400 |
|
1900 |
63618147 |
QuantumKnight |
H |
Oct. 27, 2019, 8:44 p.m. |
OK |
Python 3 |
TESTS |
53 |
592 |
8704000 |
|
1900 |
remove filters
Back to search problems