Codeforces Round 339 (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
614 Codeforces Round 339 (Div. 2) FINISHED False 7200 284822704 Jan. 14, 2016, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6980 ) B Gena's Code PROGRAMMING implementation math 1400

B"It's the year 4527 and the tanks game that we all know and love still exists. There also exists Great Gena's code, written in 2016. The problem this code solves is: given the number of tanks that go into the battle from each country, find their product. If it is turns to be too large, then the servers might have not enough time to assign tanks into teams and the whole game will collapse! There are exactly n distinct countries in the world and the i-th country added ai tanks to the game. As the developers of the game are perfectionists, the number of tanks from each country is beautiful. A beautiful number, according to the developers, is such number that its decimal representation consists only of digits '1' and '0', moreover it contains at most one digit '1'. However, due to complaints from players, some number of tanks of one country was removed from the game, hence the number of tanks of this country may not remain beautiful. Your task is to write the program that solves exactly the same problem in order to verify Gena's code correctness. Just in case. The first line of the input contains the number of countries n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000). The second line contains n non-negative integers ai without leading zeroes -- the number of tanks of the i-th country. It is guaranteed that the second line contains at least n xe2 x80 x89- xe2 x80 x891 beautiful numbers and the total length of all these number's representations doesn't exceed 100 xe2 x80 x89000. Print a single number without leading zeroes -- the product of the number of tanks presented by each country. In sample 1 numbers 10 and 1 are beautiful, number 5 is not not. In sample 2 number 11 is not beautiful (contains two '1's), all others are beautiful. In sample 3 number 3 is not beautiful, all others are beautiful."...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
15389727 mosendz B Jan. 15, 2016, 1:49 p.m. OK FPC TESTS 32 15 2355200 1400
15384552 Zeron B Jan. 15, 2016, 7:59 a.m. OK FPC TESTS 32 30 716800 1400
17876257 pqhieu B May 12, 2016, 1:24 p.m. OK FPC TESTS 32 31 3993600 1400
15504493 fivut B Jan. 22, 2016, 9:08 p.m. OK FPC TESTS 32 155 409600 1400
15388347 s34vv1nd B Jan. 15, 2016, 12:27 p.m. OK FPC TESTS 32 155 512000 1400
18034822 Drag_On_Fly B May 22, 2016, 6:13 p.m. OK FPC TESTS 32 155 2150400 1400
15501973 irevt B Jan. 22, 2016, 5:03 p.m. OK FPC TESTS 32 156 2355200 1400
29115475 vjudge4 B Aug. 2, 2017, 3:01 a.m. OK FPC TESTS 32 156 2969600 1400
15783538 senich B Feb. 4, 2016, 8:24 a.m. OK FPC TESTS 32 171 409600 1400
15516379 Fyodor B Jan. 23, 2016, 3:23 p.m. OK FPC TESTS 32 171 409600 1400
15638703 asdf101318 B Jan. 29, 2016, 3:18 a.m. OK GNU C TESTS 32 15 204800 1400
15428983 deepakrao B Jan. 18, 2016, 3:12 p.m. OK GNU C TESTS 32 15 204800 1400
15419523 ekr B Jan. 17, 2016, 10:11 p.m. OK GNU C TESTS 32 15 204800 1400
15416104 anirudhbansal B Jan. 17, 2016, 3:04 p.m. OK GNU C TESTS 32 15 204800 1400
15415116 zoe_ B Jan. 17, 2016, 1:18 p.m. OK GNU C TESTS 32 15 204800 1400
15390765 Assassin-x B Jan. 15, 2016, 2:57 p.m. OK GNU C TESTS 32 15 204800 1400
15389452 minebv B Jan. 15, 2016, 1:32 p.m. OK GNU C TESTS 32 15 204800 1400
15387018 SilverScar B Jan. 15, 2016, 11 a.m. OK GNU C TESTS 32 15 204800 1400
15394468 game_over_sid B Jan. 15, 2016, 7:44 p.m. OK GNU C TESTS 32 15 409600 1400
15385853 zxcvb6958 B Jan. 15, 2016, 9:29 a.m. OK GNU C TESTS 32 15 716800 1400
18519270 Not_A_SingleDogQrz B June 16, 2016, 11:29 a.m. OK GNU C++ TESTS 32 15 0 1400
16028496 Tudorenescu B Feb. 15, 2016, 7:24 a.m. OK GNU C++ TESTS 32 15 0 1400
15827875 vjudge3 B Feb. 5, 2016, 3:05 p.m. OK GNU C++ TESTS 32 15 0 1400
15783939 fdfdfd123 B Feb. 4, 2016, 8:50 a.m. OK GNU C++ TESTS 32 15 0 1400
15783861 sfiction B Feb. 4, 2016, 8:45 a.m. OK GNU C++ TESTS 32 15 0 1400
15780902 vjudge1 B Feb. 4, 2016, 4:12 a.m. OK GNU C++ TESTS 32 15 0 1400
15633767 helica B Jan. 28, 2016, 5:22 p.m. OK GNU C++ TESTS 32 15 0 1400
15626457 tianchouczl B Jan. 28, 2016, 9:55 a.m. OK GNU C++ TESTS 32 15 0 1400
15624783 Neutralzz B Jan. 28, 2016, 7:55 a.m. OK GNU C++ TESTS 32 15 0 1400
15585471 vjudge3 B Jan. 26, 2016, 3:24 a.m. OK GNU C++ TESTS 32 15 0 1400
56391531 miracle_pbc B July 1, 2019, 12:47 p.m. OK GNU C11 TESTS 32 156 204800 1400
63030188 kaiboy B Oct. 20, 2019, 6:04 p.m. OK GNU C11 TESTS 32 311 204800 1400
66502192 satya3anshu B Dec. 8, 2019, 12:59 p.m. OK GNU C11 TESTS 32 312 204800 1400
15454152 Thouroa B Jan. 20, 2016, 1:47 p.m. OK GNU C11 TESTS 32 374 204800 1400
15454407 tommy121684 B Jan. 20, 2016, 2:07 p.m. OK GNU C11 TESTS 32 374 2048000 1400
18275826 carlacosenza B June 6, 2016, 9:12 p.m. OK GNU C11 TESTS 32 374 12083200 1400
15454194 venner B Jan. 20, 2016, 1:50 p.m. OK GNU C11 TESTS 32 390 409600 1400
16529759 utku_mert B March 5, 2016, 8:48 a.m. OK GNU C11 TESTS 32 421 204800 1400
15454544 venner B Jan. 20, 2016, 2:17 p.m. OK GNU C11 TESTS 32 452 409600 1400
15596054 vovaprog B Jan. 26, 2016, 3:11 p.m. OK GNU C++11 TESTS 32 15 0 1400
15426187 18940874730 B Jan. 18, 2016, 11:41 a.m. OK GNU C++11 TESTS 32 15 0 1400
15388959 I_Love_Bofei B Jan. 15, 2016, 1:03 p.m. OK GNU C++11 TESTS 32 15 0 1400
15434767 swust_20131737 B Jan. 19, 2016, 3:50 a.m. OK GNU C++11 TESTS 32 15 0 1400
15853625 Hezhu B Feb. 7, 2016, 7:38 a.m. OK GNU C++11 TESTS 32 15 0 1400
17341969 Raulesto B April 16, 2016, 2:55 p.m. OK GNU C++11 TESTS 32 15 204800 1400
22299362 Rain B Nov. 18, 2016, 3:34 a.m. OK GNU C++11 TESTS 32 15 204800 1400
27269599 KK_cong B May 21, 2017, 3:07 p.m. OK GNU C++11 TESTS 32 15 204800 1400
30498250 vjudge4 B Sept. 19, 2017, 12:59 p.m. OK GNU C++11 TESTS 32 15 204800 1400
30538460 Deerly B Sept. 20, 2017, 8:23 a.m. OK GNU C++11 TESTS 32 15 204800 1400
30496778 vjudge4 B Sept. 19, 2017, 12:18 p.m. OK GNU C++14 TESTS 32 15 204800 1400
27707355 Amr_Tarek B June 10, 2017, 1:46 p.m. OK GNU C++14 TESTS 32 15 307200 1400
61232112 abhi_upadhyay B Sept. 24, 2019, 4:55 p.m. OK GNU C++14 TESTS 32 15 307200 1400
32431686 Profesora B Nov. 18, 2017, 1:05 p.m. OK GNU C++14 TESTS 32 15 307200 1400
31147408 nbz_11 B Oct. 8, 2017, 2:54 p.m. OK GNU C++14 TESTS 32 15 307200 1400
27618759 newts B June 6, 2017, 5:06 p.m. OK GNU C++14 TESTS 32 15 307200 1400
21733250 Tuandl B Oct. 24, 2016, 4:53 a.m. OK GNU C++14 TESTS 32 15 307200 1400
20743021 totsamyzed B Sept. 18, 2016, 7:50 p.m. OK GNU C++14 TESTS 32 15 307200 1400
20604768 Amores B Sept. 14, 2016, 4:15 a.m. OK GNU C++14 TESTS 32 15 307200 1400
51651349 _-- B March 21, 2019, 6:59 p.m. OK GNU C++14 TESTS 32 15 512000 1400
64717382 Coder_95 B Nov. 11, 2019, 11:39 p.m. OK GNU C++17 TESTS 32 15 307200 1400
35835611 limn2o4 B March 2, 2018, 12:35 p.m. OK GNU C++17 TESTS 32 15 2252800 1400
69286448 chb19 B Jan. 22, 2020, 8:24 a.m. OK GNU C++17 TESTS 32 30 307200 1400
57250593 modric19 B July 17, 2019, 10:33 p.m. OK GNU C++17 TESTS 32 30 307200 1400
59969293 Mohammed_Abdallah B Sept. 3, 2019, 11:17 p.m. OK GNU C++17 TESTS 32 30 307200 1400
65930336 HunterZolomon B Nov. 28, 2019, 8:37 p.m. OK GNU C++17 TESTS 32 30 307200 1400
48429340 Byakko B Jan. 15, 2019, 4:30 p.m. OK GNU C++17 TESTS 32 30 512000 1400
48428819 elManco B Jan. 15, 2019, 4:14 p.m. OK GNU C++17 TESTS 32 30 512000 1400
49391541 prakharmath B Feb. 3, 2019, 10:10 a.m. OK GNU C++17 TESTS 32 30 512000 1400
62654510 Regulo B Oct. 16, 2019, 12:13 a.m. OK GNU C++17 TESTS 32 30 512000 1400
15646164 weedjy B Jan. 29, 2016, 1:22 p.m. OK Go TESTS 32 124 4812800 1400
15646077 weedjy B Jan. 29, 2016, 1:18 p.m. OK Go TESTS 32 124 5120000 1400
17364730 fqw B April 17, 2016, 1:28 p.m. OK Haskell TESTS 32 31 56524800 1400
15412164 abc_1988_1106 B Jan. 17, 2016, 8:32 a.m. OK Haskell TESTS 32 46 10752000 1400
15391987 izubkov B Jan. 15, 2016, 4:13 p.m. OK Haskell TESTS 32 109 21196800 1400
15444530 Vulfke B Jan. 19, 2016, 10 p.m. OK Haskell TESTS 32 124 21196800 1400
15553152 marcose18 B Jan. 24, 2016, 10:39 a.m. OK Java 7 TESTS 32 93 0 1400
15489436 mIchanic B Jan. 22, 2016, 2:44 a.m. OK Java 7 TESTS 32 108 0 1400
18702472 zodiacleo B June 24, 2016, 2:17 p.m. OK Java 7 TESTS 32 109 0 1400
15442354 chauncyc B Jan. 19, 2016, 5:28 p.m. OK Java 7 TESTS 32 109 0 1400
15419100 aste B Jan. 17, 2016, 8:51 p.m. OK Java 7 TESTS 32 109 0 1400
17380400 Code.coding B April 18, 2016, 7:14 p.m. OK Java 7 TESTS 32 109 39116800 1400
17380396 akdent B April 18, 2016, 7:13 p.m. OK Java 7 TESTS 32 109 39116800 1400
15477964 tawsif93 B Jan. 21, 2016, 3:57 p.m. OK Java 7 TESTS 32 124 0 1400
15409732 codersrikant B Jan. 17, 2016, 12:49 a.m. OK Java 7 TESTS 32 124 0 1400
15406231 nitegazer B Jan. 16, 2016, 4:21 p.m. OK Java 7 TESTS 32 124 0 1400
22529476 Hazemzz B Nov. 27, 2016, 3:39 p.m. OK Java 8 TESTS 32 109 0 1400
16200151 Hoda_Hisham B Feb. 19, 2016, 12:44 p.m. OK Java 8 TESTS 32 109 0 1400
15513983 polina.k B Jan. 23, 2016, 12:30 p.m. OK Java 8 TESTS 32 109 0 1400
15500615 deepraiya17 B Jan. 22, 2016, 3:29 p.m. OK Java 8 TESTS 32 109 0 1400
65301099 an09mous B Nov. 18, 2019, 1:17 p.m. OK Java 8 TESTS 32 124 0 1400
59636740 Heisen_Berg B Aug. 28, 2019, 9:12 p.m. OK Java 8 TESTS 32 124 0 1400
58268886 eslam.221 B Aug. 4, 2019, 3:58 p.m. OK Java 8 TESTS 32 124 0 1400
58165265 Mhmmd.itani B Aug. 2, 2019, 8:49 a.m. OK Java 8 TESTS 32 124 0 1400
55508108 the41 B June 12, 2019, 7:25 p.m. OK Java 8 TESTS 32 124 0 1400
53961942 mufaddalnaya B May 10, 2019, 2:42 p.m. OK Java 8 TESTS 32 124 0 1400
15772245 Mustang98 B Feb. 3, 2016, 3:32 p.m. OK JavaScript TESTS 32 31 4608000 1400
51594362 nemars B March 20, 2019, 8:39 p.m. OK Mono C# TESTS 32 62 13414400 1400
15748883 aladdin3 B Feb. 2, 2016, 11:30 a.m. OK Mono C# TESTS 32 234 7782400 1400
69729876 speed439 B Jan. 29, 2020, 1:16 p.m. OK Mono C# TESTS 32 358 7577600 1400
15391799 olderor B Jan. 15, 2016, 3:57 p.m. OK Mono C# TESTS 32 405 12800000 1400
25959808 artsin666 B March 30, 2017, 5:23 p.m. OK MS C# TESTS 32 46 12492800 1400
15398530 yeshenk.s B Jan. 16, 2016, 6:26 a.m. OK MS C# TESTS 32 61 5529600 1400
25470453 Sorryforpartyrocking B March 14, 2017, 10:35 a.m. OK MS C# TESTS 32 61 56320000 1400
20772362 Chubcheg B Sept. 20, 2016, 9:57 a.m. OK MS C# TESTS 32 62 3481600 1400
23519364 m1_k3 B Jan. 3, 2017, 3:32 p.m. OK MS C# TESTS 32 62 11673600 1400
16404119 osama.alb96 B Feb. 28, 2016, 1:40 p.m. OK MS C# TESTS 32 77 7884800 1400
15784732 azukun B Feb. 4, 2016, 9:40 a.m. OK MS C# TESTS 32 78 10137600 1400
15386657 Lumin B Jan. 15, 2016, 10:36 a.m. OK MS C# TESTS 32 233 4403200 1400
15399983 dzeranov1995 B Jan. 16, 2016, 8:11 a.m. OK MS C# TESTS 32 264 3584000 1400
15990514 ItsLastDay B Feb. 13, 2016, 5:10 p.m. OK MS C# TESTS 32 265 3481600 1400
15399855 AcInfinity B Jan. 16, 2016, 8:02 a.m. OK MS C++ TESTS 32 15 204800 1400
15642616 Cherser B Jan. 29, 2016, 9:20 a.m. OK MS C++ TESTS 32 15 204800 1400
15556885 KKastaneda B Jan. 24, 2016, 1:54 p.m. OK MS C++ TESTS 32 15 204800 1400
15550506 vjudge4 B Jan. 24, 2016, 8:25 a.m. OK MS C++ TESTS 32 15 204800 1400
15490887 vjudge4 B Jan. 22, 2016, 5:12 a.m. OK MS C++ TESTS 32 15 204800 1400
15416648 Pilulkin B Jan. 17, 2016, 4:14 p.m. OK MS C++ TESTS 32 15 307200 1400
18357470 vjudge2 B June 10, 2016, 11:34 a.m. OK MS C++ TESTS 32 15 2355200 1400
31827241 vjudge5 B Oct. 28, 2017, 7:10 a.m. OK MS C++ TESTS 32 30 204800 1400
15386705 vanvector B Jan. 15, 2016, 10:39 a.m. OK MS C++ TESTS 32 30 204800 1400
31864274 vjudge2 B Oct. 29, 2017, 11:06 a.m. OK MS C++ TESTS 32 30 307200 1400
64717228 kchau B Nov. 11, 2019, 11:27 p.m. OK MS C++ 2017 TESTS 32 46 409600 1400
61443066 YaMi506 B Sept. 28, 2019, 7:38 p.m. OK MS C++ 2017 TESTS 32 202 204800 1400
35895735 ______u______ B March 3, 2018, 4:52 p.m. OK Perl TESTS 32 93 11571200 1400
35884380 ______M______ B March 3, 2018, 1:10 p.m. OK Perl TESTS 32 93 11571200 1400
35886295 ______i______ B March 3, 2018, 1:43 p.m. OK Perl TESTS 32 93 11571200 1400
35887246 ______k______ B March 3, 2018, 2 p.m. OK Perl TESTS 32 93 11571200 1400
35887618 ______h______ B March 3, 2018, 2:07 p.m. OK Perl TESTS 32 93 11571200 1400
15427877 ZSatzhan B Jan. 18, 2016, 1:51 p.m. OK Perl TESTS 32 109 9113600 1400
15969602 A.Arslan2016 B Feb. 12, 2016, 11:11 a.m. OK Perl TESTS 32 109 9113600 1400
18663953 ArGuTe B June 23, 2016, 12:56 p.m. OK PHP TESTS 32 124 10649600 1400
18663929 ArGuTe B June 23, 2016, 12:55 p.m. OK PHP TESTS 32 155 10649600 1400
15466099 __xiaoju__ B Jan. 21, 2016, 9:32 a.m. OK PHP TESTS 32 265 10649600 1400
15508414 QiLiu_ B Jan. 23, 2016, 5:56 a.m. OK PHP TESTS 32 280 10956800 1400
17340769 TokuchiToa B April 16, 2016, 1:14 p.m. OK PyPy 2 TESTS 32 77 3993600 1400
15430297 xceptor B Jan. 18, 2016, 4:56 p.m. OK PyPy 2 TESTS 32 77 3993600 1400
24069037 w0n B Jan. 23, 2017, 11 a.m. OK PyPy 2 TESTS 32 78 25395200 1400
15396049 Butane B Jan. 15, 2016, 11:42 p.m. OK PyPy 2 TESTS 32 93 3993600 1400
15542816 har_vi B Jan. 23, 2016, 9:17 p.m. OK PyPy 2 TESTS 32 93 9932800 1400
15410747 nealzane B Jan. 17, 2016, 4:54 a.m. OK PyPy 2 TESTS 32 108 9932800 1400
39818513 sasasagagaga B July 1, 2018, 10:26 a.m. OK PyPy 2 TESTS 32 124 2252800 1400
15415628 ch_egor B Jan. 17, 2016, 2:10 p.m. OK PyPy 3 TESTS 32 124 5529600 1400
32891361 honeysingh123 B Dec. 3, 2017, 5:48 a.m. OK PyPy 3 TESTS 32 124 28672000 1400
15985865 IvayloS B Feb. 13, 2016, 10:51 a.m. OK PyPy 3 TESTS 32 139 5529600 1400
17969339 jermenkoo B May 17, 2016, 3:21 p.m. OK PyPy 3 TESTS 32 140 29286400 1400
15557608 Sanja B Jan. 24, 2016, 2:28 p.m. OK PyPy 3 TESTS 32 155 3788800 1400
56373095 bergus B July 1, 2019, 5:04 a.m. OK PyPy 3 TESTS 32 155 5120000 1400
15486292 koderXXX B Jan. 21, 2016, 8:40 p.m. OK PyPy 3 TESTS 32 155 6144000 1400
18389780 teofil B June 12, 2016, 11:42 a.m. OK PyPy 3 TESTS 32 155 28979200 1400
69285370 bonzai B Jan. 22, 2020, 7:56 a.m. OK PyPy 3 TESTS 32 156 5836800 1400
15406507 Fekete B Jan. 16, 2016, 4:45 p.m. OK PyPy 3 TESTS 32 171 5939200 1400
25298382 samironpaul B March 6, 2017, 5:19 p.m. OK Python 2 TESTS 32 62 6144000 1400
15428034 intspt B Jan. 18, 2016, 2:02 p.m. OK Python 2 TESTS 32 77 1126400 1400
15436879 WeakChicken B Jan. 19, 2016, 8:07 a.m. OK Python 2 TESTS 32 77 1433600 1400
28175442 ameniawy B June 30, 2017, 2:59 p.m. OK Python 2 TESTS 32 77 6041600 1400
16908821 anuraganand B March 24, 2016, 3:29 p.m. OK Python 2 TESTS 32 77 6041600 1400
15385320 absolutezero B Jan. 15, 2016, 8:50 a.m. OK Python 2 TESTS 32 78 1126400 1400
15467928 kliner B Jan. 21, 2016, 12:07 p.m. OK Python 2 TESTS 32 78 1945600 1400
15385614 GoNoCoder B Jan. 15, 2016, 9:11 a.m. OK Python 2 TESTS 32 93 1331200 1400
22925806 franckmy B Dec. 13, 2016, 12:12 p.m. OK Python 2 TESTS 32 93 1433600 1400
15412428 neko01 B Jan. 17, 2016, 9:02 a.m. OK Python 2 TESTS 32 108 1433600 1400
15646938 zhouquanpku B Jan. 29, 2016, 2:13 p.m. OK Python 3 TESTS 32 62 1638400 1400
16227373 cgl_fai B Feb. 20, 2016, 10:53 a.m. OK Python 3 TESTS 32 77 1638400 1400
15419860 orailly B Jan. 17, 2016, 11:35 p.m. OK Python 3 TESTS 32 77 1638400 1400
15419846 orailly B Jan. 17, 2016, 11:30 p.m. OK Python 3 TESTS 32 77 1638400 1400
16227350 cgl_fai B Feb. 20, 2016, 10:51 a.m. OK Python 3 TESTS 32 77 1945600 1400
15490371 Zahren B Jan. 22, 2016, 4:24 a.m. OK Python 3 TESTS 32 92 1740800 1400
15419804 orailly B Jan. 17, 2016, 11:20 p.m. OK Python 3 TESTS 32 93 1638400 1400
15396763 hbheidy B Jan. 16, 2016, 2:51 a.m. OK Python 3 TESTS 32 93 1638400 1400
31231283 treasuryonly B Oct. 12, 2017, 3:13 a.m. OK Python 3 TESTS 32 93 2560000 1400
15685087 kvanted B Jan. 30, 2016, 8 p.m. OK Python 3 TESTS 32 108 1638400 1400
15389856 rise3812 B Jan. 15, 2016, 1:56 p.m. OK Ruby TESTS 32 140 15667200 1400
15435602 galloska B Jan. 19, 2016, 5:55 a.m. OK Ruby TESTS 32 140 15769600 1400
29120977 vjudge4 B Aug. 2, 2017, 7:27 a.m. OK Ruby TESTS 32 155 22220800 1400
23773631 mehdimaick B Jan. 13, 2017, 1:06 a.m. OK Ruby TESTS 32 233 22118400 1400
16224656 jiangzhijie B Feb. 20, 2016, 7:44 a.m. OK Scala TESTS 32 264 0 1400
15403741 octaviantuchila14 B Jan. 16, 2016, 12:56 p.m. OK Scala TESTS 32 280 409600 1400
18722038 pvasilyev B June 25, 2016, 3:33 p.m. OK Scala TESTS 32 280 2048000 1400
16516899 reldan B March 4, 2016, 2:33 p.m. OK Scala TESTS 32 342 102400 1400

remove filters

Back to search problems