Codeforces Round 131 (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
214 Codeforces Round 131 (Div. 2) FINISHED False 7200 388160999 July 30, 2012, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4981 ) B Hometask PROGRAMMING brute force constructive algorithms greedy math 1600

B"Furik loves math lessons very much, so he doesn't attend them, unlike Rubik. But now Furik wants to get a good mark for math. For that Ms. Ivanova, his math teacher, gave him a new task. Furik solved the task immediately. Can you? You are given a set of digits, your task is to find the maximum integer that you can make from these digits. The made number must be divisible by 2, 3, 5 without a residue. It is permitted to use not all digits from the set, it is forbidden to use leading zeroes. Each digit is allowed to occur in the number the same number of times it occurs in the set. A single line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100000) -- the number of digits in the set. The second line contains n digits, the digits are separated by a single space. On a single line print the answer to the problem. If such number does not exist, then you should print -1. In the first sample there is only one number you can make -- 0. In the second sample the sought number is 5554443330. In the third sample it is impossible to make the required number."...

Tutorials

Codeforces Round #131 Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
2088696 Ramp B Sept. 1, 2012, 6:38 p.m. OK Delphi TESTS 100 30 8908800 1600
3813692 AHTuTTuTyX B June 2, 2013, 8:41 a.m. OK Delphi TESTS 101 31 102400 1600
2273528 Mosyagin B Oct. 1, 2012, 2:52 p.m. OK Delphi TESTS 100 46 102400 1600
1964801 TarasSavitskyi B July 31, 2012, 11:45 a.m. OK Delphi TESTS 100 50 9420800 1600
1977922 Samchenko B Aug. 5, 2012, 10:03 a.m. OK Delphi TESTS 100 50 9523200 1600
1976949 kurasao B Aug. 4, 2012, 3:41 p.m. OK Delphi TESTS 100 50 9523200 1600
1963924 Shaykhutdinov-T-I B July 31, 2012, 7:49 a.m. OK Delphi TESTS 100 50 9523200 1600
1963481 bulkasmakom B July 31, 2012, 6:09 a.m. OK Delphi TESTS 100 50 9523200 1600
1961975 AleksanderBalobanov B July 30, 2012, 8:39 p.m. OK Delphi TESTS 100 50 9523200 1600
2050617 vilcheuski B Aug. 26, 2012, 4:28 p.m. OK Delphi TESTS 100 50 9523200 1600
7205898 graceoflives B July 23, 2014, 4:25 a.m. OK FPC TESTS 101 30 409600 1600
3400517 T0RRES B March 24, 2013, 2:05 p.m. OK FPC TESTS 101 31 0 1600
3297842 Rubanenko B March 13, 2013, 9:58 a.m. OK FPC TESTS 101 31 0 1600
2866593 client B Jan. 2, 2013, 1:45 p.m. OK FPC TESTS 100 31 0 1600
2539989 ghost_dog B Nov. 11, 2012, 5:33 p.m. OK FPC TESTS 100 46 0 1600
2381859 pencil B Oct. 18, 2012, 3:06 a.m. OK FPC TESTS 100 46 0 1600
2329262 xuanthuy_sp96 studytolive B Oct. 9, 2012, 4:26 p.m. OK FPC TESTS 100 46 0 1600
2302877 nhandi B Oct. 5, 2012, 3:19 p.m. OK FPC TESTS 100 46 0 1600
2300904 ig_dug B Oct. 5, 2012, 12:38 a.m. OK FPC TESTS 100 46 0 1600
2299411 thaison1496 B Oct. 4, 2012, 1:50 p.m. OK FPC TESTS 100 46 0 1600
2106319 Monick B Sept. 9, 2012, 12:19 p.m. OK GNU C TESTS 100 50 1433600 1600
1963691 nikhil_agrawal B July 31, 2012, 6:58 a.m. OK GNU C TESTS 100 60 1433600 1600
2042985 babbage B Aug. 22, 2012, 3:32 p.m. OK GNU C TESTS 100 60 1433600 1600
2019953 vjudge4 B Aug. 16, 2012, 4:08 p.m. OK GNU C TESTS 100 60 1433600 1600
1966140 BII B July 31, 2012, 9:09 p.m. OK GNU C TESTS 100 60 1433600 1600
1966137 monkeybrain B July 31, 2012, 9:09 p.m. OK GNU C TESTS 100 60 1433600 1600
1963798 ACWater B July 31, 2012, 7:19 a.m. OK GNU C TESTS 100 60 1433600 1600
1961731 sentinel45 B July 30, 2012, 7:34 p.m. OK GNU C TESTS 100 60 1433600 1600
1961617 sr_k B July 30, 2012, 7:12 p.m. OK GNU C TESTS 100 60 1433600 1600
1961100 DiegoAE B July 30, 2012, 6:09 p.m. OK GNU C TESTS 100 60 1433600 1600
5419574 ghooo B Dec. 13, 2013, 9:47 a.m. OK GNU C++ TESTS 101 30 0 1600
4597118 mc_mosa B Sept. 28, 2013, 10:51 a.m. OK GNU C++ TESTS 101 30 0 1600
4707555 mohanad93 B Oct. 8, 2013, 10:11 a.m. OK GNU C++ TESTS 101 30 1331200 1600
1977412 CMHJT B Aug. 5, 2012, 3:17 a.m. OK GNU C++ TESTS 100 30 1433600 1600
3914946 vjudge4 B June 18, 2013, 6:18 p.m. OK GNU C++ TESTS 101 31 0 1600
3820051 Igor_Kudryashov B June 3, 2013, 8:58 p.m. OK GNU C++ TESTS 101 31 0 1600
3417914 CountZero B March 29, 2013, 6:30 a.m. OK GNU C++ TESTS 101 31 0 1600
4917949 nyist_xiaod B Oct. 28, 2013, 4:59 a.m. OK GNU C++ TESTS 101 31 204800 1600
3292724 amr.f.eldfrawy B March 12, 2013, 3:56 a.m. OK GNU C++ TESTS 101 31 307200 1600
3291832 amr.f.eldfrawy B March 11, 2013, 7:16 p.m. OK GNU C++ TESTS 101 31 307200 1600
5470782 sokian B Dec. 18, 2013, 8:49 p.m. OK GNU C++0x TESTS 101 30 1024000 1600
2173001 andreyv B Sept. 15, 2012, 3:06 p.m. OK GNU C++0x TESTS 100 46 1638400 1600
3697303 Avitella B May 9, 2013, 6:57 p.m. OK GNU C++0x TESTS 101 46 11161600 1600
1960550 savinov B July 30, 2012, 5:49 p.m. OK GNU C++0x TESTS 100 50 1433600 1600
1965574 rexim B July 31, 2012, 4:07 p.m. OK GNU C++0x TESTS 100 50 1433600 1600
1970303 Archon.JK B Aug. 2, 2012, 8:17 a.m. OK GNU C++0x TESTS 100 60 1433600 1600
1955137 cs_Diablo B July 30, 2012, 3:55 p.m. OK GNU C++0x TESTS 100 60 1536000 1600
2031584 Arten_NGTU B Aug. 18, 2012, 12:33 p.m. OK GNU C++0x TESTS 100 60 1843200 1600
1962760 TNewStarT B July 31, 2012, 2:35 a.m. OK GNU C++0x TESTS 100 60 1843200 1600
9405777 johnLate B Jan. 12, 2015, 12:52 a.m. OK GNU C++0x TESTS 101 62 0 1600
39225238 alexey.orlov B June 13, 2018, 7:28 p.m. OK GNU C11 TESTS 101 92 102400 1600
19302300 Bassel B July 21, 2016, 12:47 p.m. OK GNU C++11 TESTS 101 30 7987200 1600
19573629 jacobmc18 B Aug. 2, 2016, 6:50 a.m. OK GNU C++11 TESTS 101 62 0 1600
18664600 Melnyk B June 23, 2016, 1:37 p.m. OK GNU C++11 TESTS 101 62 0 1600
16309857 Manny B Feb. 24, 2016, 1:53 p.m. OK GNU C++11 TESTS 101 62 0 1600
14850556 mortaza9 B Dec. 17, 2015, 7:20 p.m. OK GNU C++11 TESTS 101 62 0 1600
11838414 travellerX B June 29, 2015, 3:14 p.m. OK GNU C++11 TESTS 101 62 0 1600
27738341 Elibay B June 12, 2017, 1:08 p.m. OK GNU C++11 TESTS 101 62 0 1600
10549218 JohStraat B April 2, 2015, 9:12 a.m. OK GNU C++11 TESTS 101 62 102400 1600
43365892 dhruv1998 B Sept. 24, 2018, 12:15 p.m. OK GNU C++11 TESTS 101 62 307200 1600
11510686 SaMer B June 9, 2015, 1:38 p.m. OK GNU C++11 TESTS 101 62 409600 1600
27530689 jackjonassmith B June 2, 2017, 7:28 p.m. OK GNU C++14 TESTS 101 62 0 1600
32272818 MGalc B Nov. 12, 2017, 9:53 p.m. OK GNU C++14 TESTS 101 62 0 1600
21785826 McGinn B Oct. 26, 2016, 3:08 a.m. OK GNU C++14 TESTS 101 62 102400 1600
22698843 GoodGuy B Dec. 4, 2016, 3:48 p.m. OK GNU C++14 TESTS 101 62 102400 1600
22167796 SonOfBits B Nov. 11, 2016, 6:19 p.m. OK GNU C++14 TESTS 101 62 307200 1600
30256767 Wolf. B Sept. 10, 2017, 11:08 p.m. OK GNU C++14 TESTS 101 62 307200 1600
27683698 aminebhs B June 9, 2017, 6:46 a.m. OK GNU C++14 TESTS 101 62 307200 1600
21884678 Hosamk92 B Oct. 30, 2016, 12:52 a.m. OK GNU C++14 TESTS 101 62 307200 1600
21654559 _HossamYehia_ B Oct. 21, 2016, 11:27 p.m. OK GNU C++14 TESTS 101 62 307200 1600
69219361 HeshamAli B Jan. 21, 2020, 3:30 a.m. OK GNU C++14 TESTS 101 62 409600 1600
38820402 Ashishgup B June 1, 2018, 6:58 a.m. OK GNU C++17 TESTS 101 62 5017600 1600
65742866 tnakao B Nov. 26, 2019, 11:03 a.m. OK GNU C++17 TESTS 101 92 0 1600
63261027 nChurgulia B Oct. 23, 2019, 8:15 p.m. OK GNU C++17 TESTS 101 92 0 1600
61855708 le_JenD28 B Oct. 4, 2019, 2:01 p.m. OK GNU C++17 TESTS 101 92 0 1600
59895573 RachaelGreen B Sept. 2, 2019, 11:59 a.m. OK GNU C++17 TESTS 101 92 0 1600
59891311 anusar B Sept. 2, 2019, 10:30 a.m. OK GNU C++17 TESTS 101 92 0 1600
59379359 lllllljjww B Aug. 24, 2019, 1:40 a.m. OK GNU C++17 TESTS 101 92 0 1600
58354274 samael02 B Aug. 5, 2019, 6:37 p.m. OK GNU C++17 TESTS 101 92 0 1600
55927590 mlyean B June 22, 2019, 10:01 a.m. OK GNU C++17 TESTS 101 92 0 1600
67186498 techaddict B Dec. 19, 2019, 5:02 a.m. OK GNU C++17 TESTS 101 92 0 1600
8699204 Eeyore B Nov. 15, 2014, 3:42 a.m. OK Go TESTS 101 124 102400 1600
1957320 cojna B July 30, 2012, 4:29 p.m. OK Haskell TESTS 100 270 15872000 1600
1996532 DimsFromDergachy B Aug. 10, 2012, 4:43 a.m. OK Haskell TESTS 100 550 11571200 1600
2047677 Dumbear B Aug. 25, 2012, 6:29 a.m. OK Haskell TESTS 100 690 18944000 1600
2047739 Dumbear B Aug. 25, 2012, 7:20 a.m. OK Haskell TESTS 100 700 18944000 1600
18627901 MarcoXerox B June 21, 2016, 10:11 a.m. OK Haskell TESTS 101 810 13824000 1600
18615527 MarcoXerox B June 20, 2016, 2:25 p.m. OK Haskell TESTS 101 998 13824000 1600
3417273 mkirsche B March 28, 2013, 9:32 p.m. OK Java 6 TESTS 101 125 307200 1600
2804986 xiaowuc1 B Dec. 21, 2012, 10:49 p.m. OK Java 6 TESTS 100 140 204800 1600
3816319 nativea B June 2, 2013, 4:09 p.m. OK Java 6 TESTS 101 140 307200 1600
2099449 mingotlik B Sept. 6, 2012, 9:11 a.m. OK Java 6 TESTS 100 140 45465600 1600
2894746 KkJj B Jan. 9, 2013, 12:56 a.m. OK Java 6 TESTS 100 156 204800 1600
2349272 Lindsey B Oct. 11, 2012, 10:14 p.m. OK Java 6 TESTS 100 156 204800 1600
3852491 kullalok B June 10, 2013, 3:29 a.m. OK Java 6 TESTS 101 156 614400 1600
1962814 Eulerdora B July 31, 2012, 2:47 a.m. OK Java 6 TESTS 100 160 43520000 1600
1956019 azneyes B July 30, 2012, 4:08 p.m. OK Java 6 TESTS 100 160 43520000 1600
1964322 wackloner B July 31, 2012, 9:19 a.m. OK Java 6 TESTS 100 170 43520000 1600
3955245 Mostafa.Gabriel B June 24, 2013, 11:52 a.m. OK Java 7 TESTS 101 140 102400 1600
3955200 Mostafa.Gabriel B June 24, 2013, 11:40 a.m. OK Java 7 TESTS 101 140 102400 1600
2236063 nitegazer B Sept. 24, 2012, 3:48 a.m. OK Java 7 TESTS 100 140 102400 1600
3267006 hananahmad114 B March 8, 2013, 5:59 p.m. OK Java 7 TESTS 101 140 307200 1600
2172078 Timur_Sitdikov B Sept. 15, 2012, 11:27 a.m. OK Java 7 TESTS 100 140 45875200 1600
8829468 MostafaAbdullah B Nov. 23, 2014, 10:29 p.m. OK Java 7 TESTS 101 156 102400 1600
1959578 phantom11 B July 30, 2012, 5:16 p.m. OK Java 7 TESTS 100 160 45670400 1600
10563218 Hartha B April 3, 2015, 6:25 p.m. OK Java 7 TESTS 101 186 0 1600
8605275 megaspazz B Nov. 7, 2014, 3:15 p.m. OK Java 7 TESTS 101 186 0 1600
8397632 upsolving B Oct. 25, 2014, 3:50 a.m. OK Java 7 TESTS 101 186 0 1600
67779845 adarsh000321 B Dec. 28, 2019, 10:31 a.m. OK Java 8 TESTS 101 248 0 1600
54623241 KharYusuf B May 25, 2019, 1:18 p.m. OK Java 8 TESTS 101 248 0 1600
31147859 sjain281297 B Oct. 8, 2017, 3:14 p.m. OK Java 8 TESTS 101 248 0 1600
27005145 Ahmad B May 11, 2017, 2:23 a.m. OK Java 8 TESTS 101 248 0 1600
12033246 sweiss B July 13, 2015, 8:17 p.m. OK Java 8 TESTS 101 248 0 1600
31605606 prashanth_rebala B Oct. 22, 2017, 1:49 p.m. OK Java 8 TESTS 101 248 20582400 1600
31477540 __________ B Oct. 18, 2017, 11:11 a.m. OK Java 8 TESTS 101 248 20684800 1600
29303952 MeeDooBak B Aug. 9, 2017, 11:03 a.m. OK Java 8 TESTS 101 248 20684800 1600
15185856 JohnnyJi B Jan. 4, 2016, 9:43 p.m. OK Java 8 TESTS 101 278 0 1600
32181956 parth_15 B Nov. 9, 2017, 9:35 p.m. OK Java 8 TESTS 101 278 0 1600
1971010 smilej87 B Aug. 2, 2012, 1:34 p.m. OK Mono C# TESTS 100 730 15052800 1600
1961309 Eugene B July 30, 2012, 6:25 p.m. OK Mono C# TESTS 100 770 19763200 1600
1979304 SpeedX B Aug. 6, 2012, 4:26 a.m. OK Mono C# TESTS 100 780 18022400 1600
1975341 Gluokolm B Aug. 4, 2012, 7:51 a.m. OK Mono C# TESTS 100 800 15052800 1600
1963284 pnomarev B July 31, 2012, 5:10 a.m. OK Mono C# TESTS 100 800 16384000 1600
1963202 fujiyama B July 31, 2012, 4:48 a.m. OK Mono C# TESTS 100 810 19148800 1600
15183098 og.kostya B Jan. 4, 2016, 4:20 p.m. OK MS C# TESTS 101 92 307200 1600
29155742 Skndr B Aug. 3, 2017, 12:57 p.m. OK MS C# TESTS 101 124 15872000 1600
33440674 sameh_isaac B Dec. 19, 2017, 9:50 p.m. OK MS C# TESTS 101 498 13721600 1600
3611151 NVAL B April 23, 2013, 12:28 p.m. OK MS C++ TESTS 101 46 0 1600
3504263 Lelby B April 11, 2013, 3:04 p.m. OK MS C++ TESTS 101 46 409600 1600
1961470 NuM B July 30, 2012, 6:42 p.m. OK MS C++ TESTS 100 50 1740800 1600
1961468 NuM B July 30, 2012, 6:42 p.m. OK MS C++ TESTS 100 50 1740800 1600
2064847 m1_k3 B Aug. 28, 2012, 6:39 p.m. OK MS C++ TESTS 100 60 716800 1600
1971906 arosusti B Aug. 3, 2012, 12:54 a.m. OK MS C++ TESTS 100 60 1433600 1600
1964571 HorgH B July 31, 2012, 10:39 a.m. OK MS C++ TESTS 100 60 1433600 1600
1963753 slipstak2 B July 31, 2012, 7:10 a.m. OK MS C++ TESTS 100 60 1433600 1600
1962762 phoenix1120102012 B July 31, 2012, 2:36 a.m. OK MS C++ TESTS 100 60 1433600 1600
1963983 Aslan.m B July 31, 2012, 8:02 a.m. OK MS C++ TESTS 100 60 1433600 1600
53393781 2462478392 B April 27, 2019, 8:09 a.m. OK MS C++ 2017 TESTS 101 122 1024000 1600
53393863 2462478392 B April 27, 2019, 8:11 a.m. OK MS C++ 2017 TESTS 101 124 0 1600
53393646 2462478392 B April 27, 2019, 8:05 a.m. OK MS C++ 2017 TESTS 101 124 1024000 1600
53315712 zcb B April 26, 2019, 10:06 a.m. OK MS C++ 2017 TESTS 101 124 1024000 1600
53393707 2462478392 B April 27, 2019, 8:07 a.m. OK MS C++ 2017 TESTS 101 154 1024000 1600
2634388 watashi B Nov. 23, 2012, 7:07 p.m. OK Ocaml TESTS 100 93 0 1600
1970726 mandy_44 B Aug. 2, 2012, 11:27 a.m. OK Perl TESTS 100 220 12083200 1600
1964315 serg.kovalchuk B July 31, 2012, 9:18 a.m. OK PHP TESTS 100 90 18124800 1600
5450548 knittingfrenzy18 B Dec. 16, 2013, 2:02 p.m. OK PHP TESTS 101 1964 19558400 1600
34565400 Ashlin B Jan. 26, 2018, 5:32 a.m. OK PyPy 2 TESTS 101 310 31744000 1600
56385317 kabeer27 B July 1, 2019, 10:15 a.m. OK PyPy 2 TESTS 101 372 10854400 1600
22095492 vjudge4 B Nov. 7, 2016, 1:45 p.m. OK PyPy 3 TESTS 101 310 6246400 1600
29763453 Qumeric B Aug. 24, 2017, 10:57 p.m. OK PyPy 3 TESTS 101 434 7987200 1600
20192157 yashar_sb_sb B Aug. 27, 2016, 9:35 a.m. OK PyPy 3 TESTS 101 622 33075200 1600
60045369 rajat_2548 B Sept. 4, 2019, 8:08 p.m. OK PyPy 3 TESTS 101 1340 12800000 1600
49624099 deadguy B Feb. 8, 2019, 10:59 a.m. OK PyPy 3 TESTS 101 1434 9728000 1600
22094443 vjudge2 B Nov. 7, 2016, 12:48 p.m. OK PyPy 3 TESTS 101 1996 7270400 1600
4950675 yugle7 B Nov. 1, 2013, 11:45 a.m. OK Python 2 TESTS 101 92 512000 1600
1956717 ben.hwang B July 30, 2012, 4:19 p.m. OK Python 2 TESTS 100 170 4198400 1600
3033638 lovefly1983 B Jan. 29, 2013, 1:40 p.m. OK Python 2 TESTS 100 171 1331200 1600
1961800 welter B July 30, 2012, 7:53 p.m. OK Python 2 TESTS 100 190 3993600 1600
2416604 abc_1988_1106 B Oct. 23, 2012, 9:34 a.m. OK Python 2 TESTS 100 203 1024000 1600
2302817 fish_ball B Oct. 5, 2012, 2:58 p.m. OK Python 2 TESTS 100 203 1228800 1600
2955030 Lyshen B Jan. 18, 2013, 3:36 a.m. OK Python 2 TESTS 100 203 1536000 1600
2679081 daidailanlan B Nov. 30, 2012, 7:08 a.m. OK Python 2 TESTS 100 218 1228800 1600
1969450 nealzane B Aug. 2, 2012, 1:05 a.m. OK Python 2 TESTS 100 220 3993600 1600
15914954 not_bot_but_POT B Feb. 9, 2016, 1:56 p.m. OK Python 2 TESTS 101 248 1638400 1600
4950665 yugle7 B Nov. 1, 2013, 11:44 a.m. OK Python 3 TESTS 101 156 716800 1600
4912839 hatsuyuki15 B Oct. 27, 2013, 12:31 p.m. OK Python 3 TESTS 101 171 5836800 1600
22095510 vjudge2 B Nov. 7, 2016, 1:46 p.m. OK Python 3 TESTS 101 218 2764800 1600
45051025 Ooops_no B Oct. 29, 2018, 10:42 a.m. OK Python 3 TESTS 101 278 512000 1600
23511036 AbcFly B Jan. 3, 2017, 6:43 a.m. OK Python 3 TESTS 101 278 10137600 1600
15402448 vinitgandhi007 B Jan. 16, 2016, 11:20 a.m. OK Python 3 TESTS 101 280 3891200 1600
42123869 Mk_Python_v1 B Aug. 26, 2018, 1:57 p.m. OK Python 3 TESTS 101 310 512000 1600
50514154 ashok123 B Feb. 26, 2019, 4:55 a.m. OK Python 3 TESTS 101 310 5734400 1600
8699236 Eeyore B Nov. 15, 2014, 3:52 a.m. OK Python 3 TESTS 101 312 4812800 1600
22095405 vjudge4 B Nov. 7, 2016, 1:40 p.m. OK Python 3 TESTS 101 312 5939200 1600
1970525 Crist B Aug. 2, 2012, 9:36 a.m. OK Ruby TESTS 100 310 11468800 1600
22564432 karthickpdy B Nov. 28, 2016, 4:54 a.m. OK Ruby TESTS 101 310 17920000 1600
2952356 ixxa B Jan. 17, 2013, 11:22 a.m. OK Scala TESTS 100 625 1843200 1600

remove filters

Back to search problems