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'Note the unusual memory limit for the problem. People working in MDCS (Microsoft Development Center Serbia) like partying. They usually go to night clubs on Friday and Saturday. There are N people working in MDCS and there are N clubs in the city. Unfortunately, if there is more than one Microsoft employee in night club, level of coolness goes infinitely high and party is over, so club owners will never let more than one Microsoft employee enter their club in the same week (just to be sure). You are organizing night life for Microsoft employees and you have statistics about how much every employee likes Friday and Saturday parties for all clubs. You need to match people with clubs maximizing overall sum of their happiness (they are happy as much as they like the club), while half of people should go clubbing on Friday and the other half on Saturday. The first line contains integer N -- number of employees in MDCS. Then an N xe2 x80 x89 xc3 x97 xe2 x80 x89N matrix follows, where element in i-th row and j-th column is an integer number that represents how much i-th person likes j-th club xe2 x80 x99s Friday party. Then another N xe2 x80 x89 xc3 x97 xe2 x80 x89N matrix follows, where element in i-th row and j-th column is an integer number that represents how much i-th person likes j-th club xe2 x80 x99s Saturday party. Output should contain a single integer -- maximum sum of happiness possible. Here is how we matched people with clubs: Friday: 1st person with 4th club (4 happiness) and 4th person with 1st club (4 happiness). Saturday: 2nd person with 3rd club (81 happiness) and 3rd person with 2nd club (78 happiness). 4+4+81+78 = 167'... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
12880547 |
sgtlaugh |
C |
Sept. 7, 2015, 6:30 a.m. |
OK |
GNU C |
TESTS |
27 |
842 |
2150400 |
|
2800 |
12880962 |
sgtlaugh |
C |
Sept. 7, 2015, 7:18 a.m. |
OK |
GNU C |
TESTS |
27 |
857 |
2150400 |
|
2800 |
12880528 |
sgtlaugh |
C |
Sept. 7, 2015, 6:27 a.m. |
OK |
GNU C |
TESTS |
27 |
1029 |
0 |
|
2800 |
12880491 |
sgtlaugh |
C |
Sept. 7, 2015, 6:22 a.m. |
OK |
GNU C |
TESTS |
27 |
1075 |
0 |
|
2800 |
12868905 |
sgtlaugh |
C |
Sept. 6, 2015, 11:25 a.m. |
OK |
GNU C |
TESTS |
27 |
1950 |
2150400 |
|
2800 |
12876857 |
sgtlaugh |
C |
Sept. 6, 2015, 7:48 p.m. |
OK |
GNU C |
TESTS |
27 |
1965 |
2150400 |
|
2800 |
12891460 |
Dylans |
C |
Sept. 8, 2015, 1:34 a.m. |
OK |
GNU C++ |
TESTS |
27 |
405 |
0 |
|
2800 |
20604240 |
AkaneSasu |
C |
Sept. 14, 2016, 3:38 a.m. |
OK |
GNU C++ |
TESTS |
27 |
608 |
0 |
|
2800 |
12891455 |
Dylans |
C |
Sept. 8, 2015, 1:34 a.m. |
OK |
GNU C++ |
TESTS |
27 |
608 |
0 |
|
2800 |
13539299 |
KrK |
C |
Oct. 11, 2015, 12:59 a.m. |
OK |
GNU C++ |
TESTS |
27 |
639 |
0 |
|
2800 |
12891453 |
Dylans |
C |
Sept. 8, 2015, 1:34 a.m. |
OK |
GNU C++ |
TESTS |
27 |
702 |
0 |
|
2800 |
12921077 |
dr.denis |
C |
Sept. 10, 2015, 10 a.m. |
OK |
GNU C++ |
TESTS |
27 |
717 |
0 |
|
2800 |
12870975 |
I_love_Hoang_Yen phamvanhanhgoldIOI2015 |
C |
Sept. 6, 2015, 12:31 p.m. |
OK |
GNU C++ |
TESTS |
27 |
748 |
0 |
|
2800 |
16856307 |
RNS_JKS |
C |
March 21, 2016, 12:59 p.m. |
OK |
GNU C++ |
TESTS |
27 |
748 |
3276800 |
|
2800 |
12891450 |
Dylans |
C |
Sept. 8, 2015, 1:33 a.m. |
OK |
GNU C++ |
TESTS |
27 |
810 |
0 |
|
2800 |
16195743 |
vjudge1 |
C |
Feb. 19, 2016, 8:33 a.m. |
OK |
GNU C++ |
TESTS |
27 |
889 |
0 |
|
2800 |
16396832 |
_0w0_ |
C |
Feb. 28, 2016, 5:02 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
202 |
0 |
|
2800 |
16396807 |
_0w0_ |
C |
Feb. 28, 2016, 4:59 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
202 |
0 |
|
2800 |
16396803 |
_0w0_ |
C |
Feb. 28, 2016, 4:58 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
327 |
0 |
|
2800 |
12872623 |
NVAL |
C |
Sept. 6, 2015, 1:20 p.m. |
OK |
GNU C++11 |
TESTS |
27 |
421 |
0 |
|
2800 |
16396801 |
_0w0_ |
C |
Feb. 28, 2016, 4:58 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
499 |
0 |
|
2800 |
45283309 |
mhdx |
C |
Nov. 4, 2018, 3:02 p.m. |
OK |
GNU C++11 |
TESTS |
27 |
592 |
0 |
|
2800 |
13566959 |
krijgertje |
C |
Oct. 12, 2015, 10:24 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
639 |
0 |
|
2800 |
25285875 |
King_George |
C |
March 6, 2017, 8:07 a.m. |
OK |
GNU C++11 |
TESTS |
27 |
670 |
1945600 |
|
2800 |
12903621 |
albert96 |
C |
Sept. 8, 2015, 10:05 p.m. |
OK |
GNU C++11 |
TESTS |
27 |
686 |
0 |
|
2800 |
12871736 |
Niko niyaznigmatul |
C |
Sept. 6, 2015, 12:52 p.m. |
OK |
GNU C++11 |
TESTS |
27 |
732 |
0 |
|
2800 |
27281591 |
MiFaFaOvO |
C |
May 22, 2017, 10:23 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
405 |
1536000 |
|
2800 |
43435311 |
ctlchild |
C |
Sept. 26, 2018, 5:05 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
499 |
0 |
|
2800 |
23386444 |
Ali.Pi |
C |
Dec. 28, 2016, 8:28 p.m. |
OK |
GNU C++14 |
TESTS |
27 |
701 |
1945600 |
|
2800 |
64343966 |
vjudge4 |
C |
Nov. 6, 2019, 5 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
1029 |
0 |
|
2800 |
32308909 |
tourist |
C |
Nov. 14, 2017, 10:51 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
1029 |
0 |
|
2800 |
64344018 |
vjudge3 |
C |
Nov. 6, 2019, 5:02 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
1060 |
0 |
|
2800 |
64335782 |
vjudge1 |
C |
Nov. 5, 2019, 9:46 p.m. |
OK |
GNU C++14 |
TESTS |
27 |
1091 |
0 |
|
2800 |
63435175 |
ks3rr |
C |
Oct. 26, 2019, 10:26 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
1091 |
0 |
|
2800 |
64344445 |
vjudge1 |
C |
Nov. 6, 2019, 5:20 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
1092 |
0 |
|
2800 |
64344385 |
vjudge2 |
C |
Nov. 6, 2019, 5:18 a.m. |
OK |
GNU C++14 |
TESTS |
27 |
1092 |
0 |
|
2800 |
58528527 |
superguyjm |
C |
Aug. 10, 2019, 8:21 a.m. |
OK |
GNU C++17 |
TESTS |
27 |
296 |
0 |
|
2800 |
64873528 |
xgcxgc |
C |
Nov. 14, 2019, 9:01 a.m. |
OK |
GNU C++17 |
TESTS |
27 |
312 |
0 |
|
2800 |
61929692 |
_htr6898 |
C |
Oct. 5, 2019, 3:52 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
1044 |
0 |
|
2800 |
66187230 |
ruo |
C |
Dec. 2, 2019, 2:59 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
1076 |
102400 |
|
2800 |
60842359 |
wir |
C |
Sept. 19, 2019, 11:26 a.m. |
OK |
GNU C++17 |
TESTS |
27 |
1091 |
0 |
|
2800 |
62831136 |
sakifsahriar |
C |
Oct. 17, 2019, 7:52 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
1092 |
0 |
|
2800 |
61379549 |
_htr6898 |
C |
Sept. 27, 2019, 5:06 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
1092 |
0 |
|
2800 |
61374346 |
code_talk |
C |
Sept. 27, 2019, 3:51 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
1092 |
0 |
|
2800 |
60820157 |
tourist |
C |
Sept. 18, 2019, 11:18 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
1092 |
0 |
|
2800 |
53302749 |
ivan100sic |
C |
April 25, 2019, 10:30 p.m. |
OK |
GNU C++17 |
TESTS |
27 |
1404 |
204800 |
|
2800 |
12872498 |
Trumen |
C |
Sept. 6, 2015, 1:14 p.m. |
OK |
MS C++ |
TESTS |
27 |
1934 |
0 |
|
2800 |
remove filters
Back to search problems