Codeforces Round 462 (Div. 2)

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
934 Codeforces Round 462 (Div. 2) FINISHED False 7200 218915723 Feb. 14, 2018, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7060 ) A A Compatible Pair PROGRAMMING brute force games 1400

B"Nian is a monster which lives deep in the oceans. Once a year, it shows up on the land, devouring livestock and even people. In order to keep the monster away, people fill their villages with red colour, light, and cracking noise, all of which frighten the monster out of coming. Little Tommy has n lanterns and Big Banban has m lanterns. Tommy's lanterns have brightness a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an, and Banban's have brightness b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bm respectively. Tommy intends to hide one of his lanterns, then Banban picks one of Tommy's non-hidden lanterns and one of his own lanterns to form a pair. The pair's brightness will be the product of the brightness of two lanterns. Tommy wants to make the product as small as possible, while Banban tries to make it as large as possible. You are asked to find the brightness of the chosen pair if both of them choose optimally. The first line contains two space-separated integers n and m (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950). The second line contains n space-separated integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. The third line contains m space-separated integers b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89bm. All the integers range from xe2 x80 x89- xe2 x80 x89109 to 109. Print a single integer -- the brightness of the chosen pair. In the first example, Tommy will hide 20 and Banban will choose 18 from Tommy and 14 from himself. In the second example, Tommy will hide 3 and Banban will choose 2 from Tommy and 1 from himself. "...

Tutorials

57763

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56958514 vjudge1 A July 13, 2019, 5:42 a.m. OK Clang++17 Diagnostics TESTS 87 46 0 1400
56959521 vjudge4 A July 13, 2019, 6:02 a.m. OK Clang++17 Diagnostics TESTS 87 62 0 1400
35282730 ImanKz A Feb. 15, 2018, 5:20 a.m. OK Delphi TESTS 87 15 2560000 1400
42716698 afonin A Sept. 9, 2018, 7:41 p.m. OK Delphi TESTS 87 31 102400 1400
35330179 nashe A Feb. 16, 2018, 8:03 a.m. OK FPC TESTS 87 15 1638400 1400
35338478 tuvidai2003 A Feb. 16, 2018, 1:24 p.m. OK FPC TESTS 87 15 1638400 1400
35468312 Slonik A Feb. 19, 2018, 11:07 a.m. OK FPC TESTS 87 15 1638400 1400
35249955 Bunnycxk A Feb. 14, 2018, 1:02 p.m. OK FPC TESTS 87 15 1638400 1400
36152932 rabbitcxk A March 10, 2018, 2:06 p.m. OK FPC TESTS 87 15 1638400 1400
35245232 UNDogMan A Feb. 14, 2018, 12:46 p.m. OK FPC TESTS 87 15 1740800 1400
35285393 Blocked A Feb. 15, 2018, 7:31 a.m. OK FPC TESTS 87 15 17612800 1400
35250910 bsgnl952 A Feb. 14, 2018, 1:06 p.m. OK FPC TESTS 87 31 1638400 1400
47219810 dlightny A Dec. 18, 2018, 4:07 p.m. OK FPC TESTS 87 31 16076800 1400
35335871 olga04 A Feb. 16, 2018, 11:54 a.m. OK FPC TESTS 87 31 17612800 1400
35683492 abdulrahmankanaan A Feb. 25, 2018, 2:37 p.m. OK GNU C TESTS 87 15 1843200 1400
36191909 vjudge5 A March 11, 2018, 8:18 a.m. OK GNU C TESTS 87 15 1843200 1400
36150777 vjudge1 A March 10, 2018, 12:48 p.m. OK GNU C TESTS 87 15 1843200 1400
35684291 AbdulrahmanKanakri A Feb. 25, 2018, 3 p.m. OK GNU C TESTS 87 15 1843200 1400
35678139 fatherOfDragons A Feb. 25, 2018, 12:03 p.m. OK GNU C TESTS 87 15 1843200 1400
35663099 0xA A Feb. 24, 2018, 10:34 p.m. OK GNU C TESTS 87 15 1843200 1400
35663072 00a00 A Feb. 24, 2018, 10:33 p.m. OK GNU C TESTS 87 15 1843200 1400
35535020 DreamWeaver A Feb. 20, 2018, 11:49 p.m. OK GNU C TESTS 87 15 1843200 1400
35523933 rexsong A Feb. 20, 2018, 2:20 p.m. OK GNU C TESTS 87 15 1843200 1400
35270270 anirudhbansal A Feb. 14, 2018, 4:55 p.m. OK GNU C TESTS 87 15 1843200 1400
36296869 vjudge5 A March 15, 2018, 11:15 a.m. OK GNU C++ TESTS 87 15 1843200 1400
36296831 FrozenApple A March 15, 2018, 11:13 a.m. OK GNU C++ TESTS 87 15 1843200 1400
36294744 vjudge5 A March 15, 2018, 9:39 a.m. OK GNU C++ TESTS 87 15 1843200 1400
36294556 vjudge2 A March 15, 2018, 9:25 a.m. OK GNU C++ TESTS 87 15 1843200 1400
36306014 vjudge5 A March 15, 2018, 3:32 p.m. OK GNU C++ TESTS 87 15 1843200 1400
36262545 vjudge2 A March 13, 2018, 11:54 p.m. OK GNU C++ TESTS 87 15 1843200 1400
36250201 vjudge4 A March 13, 2018, 1:25 p.m. OK GNU C++ TESTS 87 15 1843200 1400
36249709 vjudge5 A March 13, 2018, 1:12 p.m. OK GNU C++ TESTS 87 15 1843200 1400
36249653 vjudge3 A March 13, 2018, 1:10 p.m. OK GNU C++ TESTS 87 15 1843200 1400
36249449 vjudge5 A March 13, 2018, 1:05 p.m. OK GNU C++ TESTS 87 15 1843200 1400
35662286 0xA A Feb. 24, 2018, 9:47 p.m. OK GNU C11 TESTS 87 15 1843200 1400
36250209 vjudge1 A March 13, 2018, 1:25 p.m. OK GNU C11 TESTS 87 15 1843200 1400
36052902 Zihad_Bd A March 7, 2018, 5:35 p.m. OK GNU C11 TESTS 87 15 1843200 1400
35663181 Cyberologist A Feb. 24, 2018, 10:38 p.m. OK GNU C11 TESTS 87 15 1843200 1400
35473900 shubham_icpcw9 A Feb. 19, 2018, 2:51 p.m. OK GNU C11 TESTS 87 15 1843200 1400
44063720 RamalQudsy A Oct. 10, 2018, 7:46 a.m. OK GNU C11 TESTS 87 31 0 1400
42732499 vjudge3 A Sept. 10, 2018, 12:19 p.m. OK GNU C11 TESTS 87 31 0 1400
54024360 godxpunk A May 12, 2019, 11:41 a.m. OK GNU C11 TESTS 87 31 0 1400
46199567 yrk317 A Nov. 25, 2018, 10:33 a.m. OK GNU C11 TESTS 87 31 0 1400
46199553 yrk317 A Nov. 25, 2018, 10:33 a.m. OK GNU C11 TESTS 87 31 0 1400
35254937 Steaunk A Feb. 14, 2018, 1:23 p.m. OK GNU C++11 TESTS 87 15 1843200 1400
36203392 vjudge5 A March 11, 2018, 2:51 p.m. OK GNU C++11 TESTS 87 15 1843200 1400
35799159 xyzzxy A March 1, 2018, 12:49 a.m. OK GNU C++11 TESTS 87 15 1843200 1400
35517747 ccut_wjy A Feb. 20, 2018, 10:07 a.m. OK GNU C++11 TESTS 87 15 1843200 1400
35293165 cjmp1 A Feb. 15, 2018, 1:27 p.m. OK GNU C++11 TESTS 87 15 1843200 1400
35265443 Phos A Feb. 14, 2018, 3:10 p.m. OK GNU C++11 TESTS 87 15 1843200 1400
35256313 alanhpereira A Feb. 14, 2018, 1:30 p.m. OK GNU C++11 TESTS 87 15 1843200 1400
35254418 zzpc A Feb. 14, 2018, 1:21 p.m. OK GNU C++11 TESTS 87 15 1843200 1400
35252493 5120164053 A Feb. 14, 2018, 1:13 p.m. OK GNU C++11 TESTS 87 15 1843200 1400
35246709 LS_cak A Feb. 14, 2018, 12:51 p.m. OK GNU C++11 TESTS 87 15 1843200 1400
35324385 rdd6584 A Feb. 16, 2018, 1:47 a.m. OK GNU C++14 TESTS 87 15 1843200 1400
36154157 HokyeeJau A March 10, 2018, 2:57 p.m. OK GNU C++14 TESTS 87 15 1843200 1400
35615190 bysu93 A Feb. 24, 2018, 5:04 a.m. OK GNU C++14 TESTS 87 15 1843200 1400
35523932 jimpei8989 A Feb. 20, 2018, 2:20 p.m. OK GNU C++14 TESTS 87 15 1843200 1400
35507041 kimo3020 A Feb. 19, 2018, 10:40 p.m. OK GNU C++14 TESTS 87 15 1843200 1400
35450465 Mr.Yao A Feb. 18, 2018, 3:41 p.m. OK GNU C++14 TESTS 87 15 1843200 1400
35438687 Billyshuai A Feb. 18, 2018, 7:08 a.m. OK GNU C++14 TESTS 87 15 1843200 1400
35433144 Butylochnik A Feb. 17, 2018, 11:08 p.m. OK GNU C++14 TESTS 87 15 1843200 1400
35380087 jackyan A Feb. 17, 2018, 1:47 a.m. OK GNU C++14 TESTS 87 15 1843200 1400
35326484 s1ij1n A Feb. 16, 2018, 4:42 a.m. OK GNU C++14 TESTS 87 15 1843200 1400
38692301 whquddn55 A May 28, 2018, 11:22 a.m. OK GNU C++17 TESTS 87 15 0 1400
35437283 aung A Feb. 18, 2018, 5:54 a.m. OK GNU C++17 TESTS 87 15 1843200 1400
35289040 sudo_pacman A Feb. 15, 2018, 10:17 a.m. OK GNU C++17 TESTS 87 15 1843200 1400
35385427 dims A Feb. 17, 2018, 8:06 a.m. OK GNU C++17 TESTS 87 15 1843200 1400
35447773 libingzhen A Feb. 18, 2018, 1:59 p.m. OK GNU C++17 TESTS 87 15 1843200 1400
35244665 Lancern A Feb. 14, 2018, 12:44 p.m. OK GNU C++17 TESTS 87 15 1843200 1400
35252788 psb0623 A Feb. 14, 2018, 1:14 p.m. OK GNU C++17 TESTS 87 15 1843200 1400
36211365 ToshioBR aloysio CarlosMatheus A March 11, 2018, 10:10 p.m. OK GNU C++17 TESTS 87 15 1945600 1400
36245519 Onlynagesha A March 13, 2018, 11:04 a.m. OK GNU C++17 TESTS 87 15 1945600 1400
36255444 dims A March 13, 2018, 4:26 p.m. OK GNU C++17 TESTS 87 15 1945600 1400
36656525 DanCopa A March 27, 2018, 1:12 a.m. OK GNU C++17 Diagnostics TESTS 87 997 100864000 1400
69072513 KubeRoot A Jan. 18, 2020, 11:31 p.m. OK Haskell TESTS 87 46 102400 1400
56661233 Dejokz A July 7, 2019, 9:56 a.m. OK Java 8 TESTS 87 109 0 1400
44987448 guptautkarsh028 A Oct. 28, 2018, 11:10 a.m. OK Java 8 TESTS 87 109 0 1400
35292948 kanak893 A Feb. 15, 2018, 1:16 p.m. OK Java 8 TESTS 87 109 20684800 1400
35288565 martin3 A Feb. 15, 2018, 9:57 a.m. OK Java 8 TESTS 87 109 20684800 1400
54415830 anilsaxena A May 20, 2019, 12:32 p.m. OK Java 8 TESTS 87 124 0 1400
65741826 bluesky111 A Nov. 26, 2019, 10:35 a.m. OK Java 8 TESTS 87 124 0 1400
55874615 arvind_rvs A June 21, 2019, 4:49 p.m. OK Java 8 TESTS 87 124 0 1400
55851041 BencilSharpeniro A June 21, 2019, 3:41 a.m. OK Java 8 TESTS 87 124 0 1400
55191687 Vatsal53 A June 6, 2019, 6:45 a.m. OK Java 8 TESTS 87 124 0 1400
54277515 BerserkVl A May 17, 2019, 11:51 a.m. OK Java 8 TESTS 87 124 0 1400
36411096 Killer45 A March 19, 2018, 1:07 p.m. OK Kotlin TESTS 87 155 22118400 1400
35268828 ZALeo A Feb. 14, 2018, 4:17 p.m. OK Kotlin TESTS 87 186 22937600 1400
39334513 dzhaba A June 17, 2018, 12:02 p.m. OK Mono C# TESTS 87 46 0 1400
37929897 og.kostya A May 6, 2018, 1:14 p.m. OK Mono C# TESTS 87 46 8089600 1400
35277320 Kayaba_Akihiko A Feb. 14, 2018, 10:06 p.m. OK Mono C# TESTS 87 46 9318400 1400
35385734 Xtreemist A Feb. 17, 2018, 8:20 a.m. OK Mono C# TESTS 87 46 9420800 1400
47704676 markotee A Dec. 29, 2018, 7:17 p.m. OK Mono C# TESTS 87 62 0 1400
35248122 mobasshirahmad A Feb. 14, 2018, 12:56 p.m. OK Mono C# TESTS 87 62 11776000 1400
51544564 nemars A March 19, 2019, 7:37 p.m. OK Mono C# TESTS 87 77 3993600 1400
35424402 ToToshka45 A Feb. 17, 2018, 4:27 p.m. OK MS C# TESTS 87 46 9216000 1400
35781659 ilya.kolesov.20134 A Feb. 28, 2018, 10:52 a.m. OK MS C# TESTS 87 46 9318400 1400
35339486 duren A Feb. 16, 2018, 1:56 p.m. OK MS C# TESTS 87 46 9318400 1400
35383866 Rein A Feb. 17, 2018, 6:45 a.m. OK MS C# TESTS 87 46 9523200 1400
35257993 Zvigintsev A Feb. 14, 2018, 1:38 p.m. OK MS C# TESTS 87 61 9420800 1400
38655632 BlackClown A May 27, 2018, 12:51 p.m. OK MS C++ TESTS 87 15 0 1400
36048076 vjudge3 A March 7, 2018, 2:38 p.m. OK MS C++ TESTS 87 15 2048000 1400
36299879 vjudge3 A March 15, 2018, 12:45 p.m. OK MS C++ TESTS 87 15 2048000 1400
36276355 vjudge1 A March 14, 2018, 1:01 p.m. OK MS C++ TESTS 87 15 2048000 1400
36265873 vjudge5 A March 14, 2018, 5:53 a.m. OK MS C++ TESTS 87 15 2048000 1400
36249599 scorpiowf A March 13, 2018, 1:09 p.m. OK MS C++ TESTS 87 15 2048000 1400
36245664 vjudge4 A March 13, 2018, 11:11 a.m. OK MS C++ TESTS 87 15 2048000 1400
36122982 vjudge5 A March 9, 2018, 4:07 p.m. OK MS C++ TESTS 87 15 2048000 1400
36122282 vjudge5 A March 9, 2018, 3:42 p.m. OK MS C++ TESTS 87 15 2048000 1400
35904072 RuslanDzugaev A March 4, 2018, 12:35 a.m. OK MS C++ TESTS 87 15 2048000 1400
56960712 vjudge3 A July 13, 2019, 6:29 a.m. OK MS C++ 2017 TESTS 87 31 0 1400
56965164 vjudge4 A July 13, 2019, 8:06 a.m. OK MS C++ 2017 TESTS 87 31 0 1400
56971728 vjudge1 A July 13, 2019, 10:34 a.m. OK MS C++ 2017 TESTS 87 31 0 1400
66437822 vjudge3 A Dec. 7, 2019, 6:53 a.m. OK MS C++ 2017 TESTS 87 31 307200 1400
62456502 YHHxBULIATANIA A Oct. 13, 2019, 6:38 a.m. OK MS C++ 2017 TESTS 87 46 0 1400
63779908 vjudge5 A Oct. 30, 2019, 10:43 a.m. OK MS C++ 2017 TESTS 87 46 0 1400
65518849 Mad112233 A Nov. 22, 2019, 7:20 a.m. OK MS C++ 2017 TESTS 87 46 0 1400
36319076 secondwtq A March 16, 2018, 7:30 a.m. OK Ocaml TESTS 87 15 3891200 1400
35256896 Stanislav666 A Feb. 14, 2018, 1:32 p.m. OK PascalABC.NET TESTS 87 46 13209600 1400
35379607 rsFalse A Feb. 17, 2018, 12:47 a.m. OK Perl TESTS 87 30 2252800 1400
35379559 rsFalse A Feb. 17, 2018, 12:41 a.m. OK Perl TESTS 87 31 2457600 1400
35379573 rsFalse A Feb. 17, 2018, 12:43 a.m. OK Perl TESTS 87 31 2457600 1400
35244465 rsFalse A Feb. 14, 2018, 12:43 p.m. OK Perl TESTS 87 124 5734400 1400
35379556 rsFalse A Feb. 17, 2018, 12:40 a.m. OK Perl TESTS 87 186 5836800 1400
35910332 nds92 A March 4, 2018, 7:46 a.m. OK PHP TESTS 87 31 6041600 1400
35286012 mayakin A Feb. 15, 2018, 8 a.m. OK PHP TESTS 87 46 6041600 1400
35270691 fgt A Feb. 14, 2018, 5:07 p.m. OK PyPy 2 TESTS 87 62 21708800 1400
35270772 Thiagohnc A Feb. 14, 2018, 5:09 p.m. OK PyPy 2 TESTS 87 77 21708800 1400
35322845 latsyrc1123 A Feb. 15, 2018, 10:52 p.m. OK PyPy 2 TESTS 87 78 21606400 1400
35249035 jahas A Feb. 14, 2018, 12:59 p.m. OK PyPy 2 TESTS 87 78 21913600 1400
35249676 EON_KID A Feb. 14, 2018, 1:01 p.m. OK PyPy 2 TESTS 87 93 23142400 1400
35331704 SerChirag A Feb. 16, 2018, 9:09 a.m. OK PyPy 2 TESTS 87 108 21606400 1400
66435941 vjudge1 A Dec. 7, 2019, 6:10 a.m. OK PyPy 2 TESTS 87 124 409600 1400
35258305 tushutripathi A Feb. 14, 2018, 1:40 p.m. OK PyPy 2 TESTS 87 202 30208000 1400
35266075 atulac A Feb. 14, 2018, 3:18 p.m. OK PyPy 2 TESTS 87 265 22220800 1400
35377025 acesine A Feb. 16, 2018, 9:15 p.m. OK PyPy 3 TESTS 87 77 20172800 1400
35423009 zvv A Feb. 17, 2018, 3:42 p.m. OK PyPy 3 TESTS 87 78 20275200 1400
35242613 Alidrod A Feb. 14, 2018, 12:38 p.m. OK PyPy 3 TESTS 87 92 20172800 1400
35246131 panda_2134 A Feb. 14, 2018, 12:49 p.m. OK PyPy 3 TESTS 87 93 20172800 1400
35253077 jsx A Feb. 14, 2018, 1:15 p.m. OK PyPy 3 TESTS 87 93 20275200 1400
35247049 tabula-rasa A Feb. 14, 2018, 12:52 p.m. OK PyPy 3 TESTS 87 93 20377600 1400
35286606 MAKCOH A Feb. 15, 2018, 8:29 a.m. OK PyPy 3 TESTS 87 93 20582400 1400
35274524 Dishant_18 A Feb. 14, 2018, 7:17 p.m. OK PyPy 3 TESTS 87 93 20582400 1400
35265068 madn A Feb. 14, 2018, 3:05 p.m. OK PyPy 3 TESTS 87 93 20582400 1400
35279992 SangBijaksana A Feb. 15, 2018, 2:08 a.m. OK PyPy 3 TESTS 87 93 20787200 1400
35769000 mcXAKEP A Feb. 27, 2018, 4:27 p.m. OK Python 2 TESTS 87 62 4608000 1400
35589354 hamed.soleimani A Feb. 23, 2018, 6:10 a.m. OK Python 2 TESTS 87 62 4608000 1400
35426901 MateusRangel A Feb. 17, 2018, 5:46 p.m. OK Python 2 TESTS 87 62 4608000 1400
35424748 Amandio A Feb. 17, 2018, 4:37 p.m. OK Python 2 TESTS 87 62 4608000 1400
35421468 aaakirito A Feb. 17, 2018, 2:58 p.m. OK Python 2 TESTS 87 62 4608000 1400
35382739 laoliumang A Feb. 17, 2018, 5:43 a.m. OK Python 2 TESTS 87 62 4608000 1400
35285256 nealzane A Feb. 15, 2018, 7:25 a.m. OK Python 2 TESTS 87 62 4608000 1400
35278386 AFiFY A Feb. 14, 2018, 11:42 p.m. OK Python 2 TESTS 87 62 4608000 1400
35272634 nethish A Feb. 14, 2018, 6:07 p.m. OK Python 2 TESTS 87 62 4608000 1400
35270625 Hahahahahahahhahaha A Feb. 14, 2018, 5:05 p.m. OK Python 2 TESTS 87 62 4608000 1400
36198550 Hach A March 11, 2018, 12:08 p.m. OK Python 3 TESTS 87 62 5632000 1400
35552095 alex99999 A Feb. 21, 2018, 3:22 p.m. OK Python 3 TESTS 87 62 5632000 1400
35543314 lanadeus A Feb. 21, 2018, 9:49 a.m. OK Python 3 TESTS 87 62 5632000 1400
35507267 Gleb_Dubosarskii A Feb. 19, 2018, 11 p.m. OK Python 3 TESTS 87 62 5632000 1400
35474794 darya.ahmadova A Feb. 19, 2018, 3:22 p.m. OK Python 3 TESTS 87 62 5632000 1400
35432588 DASmirnov A Feb. 17, 2018, 10:20 p.m. OK Python 3 TESTS 87 62 5632000 1400
35430963 krsultan069 A Feb. 17, 2018, 8:37 p.m. OK Python 3 TESTS 87 62 5632000 1400
35323039 merolish A Feb. 15, 2018, 11:10 p.m. OK Python 3 TESTS 87 62 5632000 1400
35293127 makar565 A Feb. 15, 2018, 1:26 p.m. OK Python 3 TESTS 87 62 5632000 1400
35292793 Mr.Meeseek A Feb. 15, 2018, 1:09 p.m. OK Python 3 TESTS 87 62 5632000 1400
35785444 nah A Feb. 28, 2018, 1:09 p.m. OK Ruby TESTS 87 77 6451200 1400
35655264 raafat_sobhy A Feb. 24, 2018, 5:31 p.m. OK Ruby TESTS 87 108 7168000 1400
35272698 parth.goyal A Feb. 14, 2018, 6:09 p.m. OK Ruby TESTS 87 108 7168000 1400
35294143 cojna A Feb. 15, 2018, 2:08 p.m. OK Rust TESTS 87 15 1433600 1400

remove filters

Back to search problems