Codeforces Round 213 (Div. 1)

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
364 Codeforces Round 213 (Div. 1) FINISHED False 7500 352304963 Nov. 19, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4740 ) A Matrix PROGRAMMING combinatorics data structures implementation 1800

B"You have a string of decimal digits s. Let's define bij xe2 x80 x89= xe2 x80 x89si xc2 xb7sj. Find in matrix b the number of such rectangles that the sum bij for all cells (i, xe2 x80 x89j) that are the elements of the rectangle equals a in each rectangle. A rectangle in a matrix is a group of four integers (x, xe2 x80 x89y, xe2 x80 x89z, xe2 x80 x89t) (x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89y, xe2 x80 x89z xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t). The elements of the rectangle are all cells (i, xe2 x80 x89j) such that x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89y, xe2 x80 x89z xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89j xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t. The first line contains integer a (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109), the second line contains a string of decimal integers s (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x894000). Print a single integer -- the answer to a problem. Please, do not write the %lld specifier to read or write 64-bit integers in xd0 xa1++. It is preferred to use the cin, cout streams or the %I64d specifier."...

Tutorials

Codeforces Round #213 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
5165454 Gassa A Nov. 19, 2013, 7:33 p.m. OK D TESTS 83 530 204800 1800
5153495 Golovanov399 A Nov. 19, 2013, 3:51 p.m. OK Delphi TESTS 83 31 307200 1800
5164235 ruban A Nov. 19, 2013, 6:23 p.m. OK Delphi TESTS 83 31 9625600 1800
5157850 equi A Nov. 19, 2013, 4:22 p.m. OK Delphi TESTS 83 46 5222400 1800
5156863 IgorL A Nov. 19, 2013, 4:16 p.m. OK Delphi TESTS 83 109 208588800 1800
5810328 pal3 A Jan. 26, 2014, 4:08 a.m. OK FPC TESTS 83 31 0 1800
6268671 graceoflives A April 6, 2014, 6:33 a.m. OK FPC TESTS 83 31 512000 1800
5154874 vodanhna A Nov. 19, 2013, 3:57 p.m. OK FPC TESTS 83 31 921600 1800
23384805 tieuchanlong A Dec. 28, 2016, 6:48 p.m. OK FPC TESTS 83 31 2150400 1800
5622696 Wolfik A Jan. 5, 2014, 2:53 p.m. OK FPC TESTS 83 46 614400 1800
6954627 igdor99 A June 24, 2014, 7:20 p.m. OK FPC TESTS 83 46 921600 1800
6954604 igdor99 A June 24, 2014, 7:12 p.m. OK FPC TESTS 83 46 921600 1800
5156608 Oryshych A Nov. 19, 2013, 4:08 p.m. OK FPC TESTS 83 46 921600 1800
5630170 Misha100896 A Jan. 7, 2014, 12:12 a.m. OK FPC TESTS 83 46 1945600 1800
5158316 Nik_Storm_2010 A Nov. 19, 2013, 4:26 p.m. OK FPC TESTS 83 46 1945600 1800
5404649 cpy A Dec. 10, 2013, 4:22 p.m. OK GNU C TESTS 83 31 204800 1800
10612142 lnsuyn A April 6, 2015, 12:17 p.m. OK GNU C TESTS 83 31 307200 1800
5272866 mike199250 A Nov. 27, 2013, 1:53 p.m. OK GNU C TESTS 83 31 307200 1800
16283567 sanjeev_7 A Feb. 22, 2016, 8:23 p.m. OK GNU C TESTS 83 46 716800 1800
5854695 arradi A Jan. 31, 2014, 7:46 a.m. OK GNU C TESTS 83 171 80998400 1800
5169421 rapid A Nov. 19, 2013, 11:33 p.m. OK GNU C++ TESTS 83 15 102400 1800
5484449 lavin A Dec. 21, 2013, 1:14 a.m. OK GNU C++ TESTS 83 15 102400 1800
5166214 roben_76 A Nov. 19, 2013, 9:28 p.m. OK GNU C++ TESTS 83 15 102400 1800
5155697 alberist A Nov. 19, 2013, 4:02 p.m. OK GNU C++ TESTS 83 15 102400 1800
5150428 PavelKunyavskiy A Nov. 19, 2013, 3:36 p.m. OK GNU C++ TESTS 83 15 102400 1800
6198195 tmt514 A March 31, 2014, 1:44 p.m. OK GNU C++ TESTS 83 15 204800 1800
5317520 Ioana A Nov. 30, 2013, 10:14 p.m. OK GNU C++ TESTS 83 15 204800 1800
5199073 iceman91 A Nov. 23, 2013, 3:45 p.m. OK GNU C++ TESTS 83 15 204800 1800
5171603 nmsunny A Nov. 20, 2013, 6:07 a.m. OK GNU C++ TESTS 83 15 204800 1800
5171169 PattS A Nov. 20, 2013, 5:06 a.m. OK GNU C++ TESTS 83 15 204800 1800
5445178 kenimo A Dec. 15, 2013, 1:05 p.m. OK GNU C++0x TESTS 83 15 204800 1800
5172336 fairylights A Nov. 20, 2013, 7:38 a.m. OK GNU C++0x TESTS 83 15 204800 1800
5158388 Bobgy A Nov. 19, 2013, 4:27 p.m. OK GNU C++0x TESTS 83 15 204800 1800
5325663 discover. A Dec. 2, 2013, 4:24 a.m. OK GNU C++0x TESTS 83 15 819200 1800
7933224 soda_beta A Sept. 24, 2014, 6:32 a.m. OK GNU C++0x TESTS 83 31 204800 1800
7736574 kondranin A Sept. 10, 2014, 5:01 p.m. OK GNU C++0x TESTS 83 31 204800 1800
6266572 ikatanic A April 5, 2014, 6:52 p.m. OK GNU C++0x TESTS 83 31 204800 1800
5353043 Rustt A Dec. 5, 2013, 9:52 a.m. OK GNU C++0x TESTS 83 31 204800 1800
5186641 tatsuhiro.t A Nov. 21, 2013, 4:56 p.m. OK GNU C++0x TESTS 83 31 204800 1800
5178888 Horia A Nov. 20, 2013, 3:39 p.m. OK GNU C++0x TESTS 83 31 204800 1800
16085820 Sneh123 A Feb. 17, 2016, 6:14 p.m. OK GNU C++11 TESTS 83 15 1228800 1800
15440965 mayoko A Jan. 19, 2016, 1:50 p.m. OK GNU C++11 TESTS 83 30 307200 1800
33911982 mateuszlewko A Jan. 4, 2018, 9:38 p.m. OK GNU C++11 TESTS 83 30 2252800 1800
25328121 Trunks A March 7, 2017, 7:10 p.m. OK GNU C++11 TESTS 83 30 4096000 1800
20528273 Theodor1000 A Sept. 11, 2016, 10:45 a.m. OK GNU C++11 TESTS 83 31 0 1800
14177169 Infoshoc A Nov. 9, 2015, 8:38 p.m. OK GNU C++11 TESTS 83 31 0 1800
13431603 dyniec A Oct. 6, 2015, 12:26 p.m. OK GNU C++11 TESTS 83 31 0 1800
12482104 a0666 A Aug. 12, 2015, 3:50 p.m. OK GNU C++11 TESTS 83 31 0 1800
13403897 delta_wolf A Oct. 4, 2015, 2:34 p.m. OK GNU C++11 TESTS 83 31 102400 1800
51666548 vjudge2 A March 22, 2019, 6:20 a.m. OK GNU C++11 TESTS 83 31 204800 1800
27312216 RNS3 A May 24, 2017, 12:57 a.m. OK GNU C++14 TESTS 83 15 204800 1800
29518152 brandonzhang A Aug. 17, 2017, 5:06 a.m. OK GNU C++14 TESTS 83 30 204800 1800
36220968 iaojnh A March 12, 2018, 10:57 a.m. OK GNU C++14 TESTS 83 30 2150400 1800
53826611 s1ddharth3 A May 6, 2019, 4:33 p.m. OK GNU C++14 TESTS 83 31 204800 1800
51615945 vjudge3 A March 21, 2019, 12:27 p.m. OK GNU C++14 TESTS 83 31 204800 1800
49168211 k0walsk1 A Jan. 29, 2019, 5:11 p.m. OK GNU C++14 TESTS 83 31 204800 1800
49165040 igba A Jan. 29, 2019, 4:10 p.m. OK GNU C++14 TESTS 83 31 204800 1800
46849013 NotNight A Dec. 10, 2018, 11:25 a.m. OK GNU C++14 TESTS 83 31 204800 1800
32002792 Jeffrey A Nov. 3, 2017, 9:17 a.m. OK GNU C++14 TESTS 83 31 204800 1800
22150109 Hepic_Antony_Skarlatos A Nov. 10, 2016, 2:38 p.m. OK GNU C++14 TESTS 83 31 204800 1800
51586001 KenjiH A March 20, 2019, 4:24 p.m. OK GNU C++17 TESTS 83 31 204800 1800
65605061 ABSTERGO A Nov. 23, 2019, 8:10 p.m. OK GNU C++17 TESTS 83 31 307200 1800
64168252 sammithkanur A Nov. 3, 2019, 5:15 p.m. OK GNU C++17 TESTS 83 31 409600 1800
64307002 shrikant.2251 A Nov. 5, 2019, 11:41 a.m. OK GNU C++17 TESTS 83 31 409600 1800
44682174 Nazikk A Oct. 22, 2018, 7:13 a.m. OK GNU C++17 TESTS 83 31 409600 1800
41285076 rebecacalazans A Aug. 6, 2018, 7:11 p.m. OK GNU C++17 TESTS 83 31 1331200 1800
63788977 kikoawesome A Oct. 30, 2019, 1:06 p.m. OK GNU C++17 TESTS 83 31 3276800 1800
44020807 customer101 A Oct. 9, 2018, 3:54 a.m. OK GNU C++17 TESTS 83 31 66252800 1800
67494101 pln. A Dec. 23, 2019, 9:08 p.m. OK GNU C++17 TESTS 83 46 204800 1800
58070652 Kafka A July 31, 2019, 10:31 a.m. OK GNU C++17 TESTS 83 46 204800 1800
5973391 nosy A March 10, 2014, 8:16 a.m. OK Go TESTS 83 78 0 1800
63112002 synapse A Oct. 22, 2019, 7:53 a.m. OK Go TESTS 83 233 0 1800
5163925 autotaker A Nov. 19, 2013, 6:16 p.m. OK Haskell TESTS 83 78 102400 1800
14545946 behzad.nouri A Nov. 28, 2015, 6:45 p.m. OK Haskell TESTS 83 374 16896000 1800
5190822 DimsFromDergachy A Nov. 22, 2013, 10:03 a.m. OK Haskell TESTS 83 608 1126400 1800
5153752 shilov A Nov. 19, 2013, 3:52 p.m. OK Java 6 TESTS 83 93 1024000 1800
5152027 llaki A Nov. 19, 2013, 3:44 p.m. OK Java 6 TESTS 83 124 204800 1800
5166236 mkirsche A Nov. 19, 2013, 9:31 p.m. OK Java 6 TESTS 83 124 1536000 1800
5767423 bli0042 A Jan. 22, 2014, 12:16 a.m. OK Java 6 TESTS 83 171 54272000 1800
5186455 Ljubitel A Nov. 21, 2013, 4:29 p.m. OK Java 6 TESTS 83 202 716800 1800
5156624 Slamur A Nov. 19, 2013, 4:08 p.m. OK Java 6 TESTS 83 358 2867200 1800
5164480 bay A Nov. 19, 2013, 6:31 p.m. OK Java 6 TESTS 83 390 1945600 1800
6352638 xiaowuc1 A April 14, 2014, 5:54 a.m. OK Java 6 TESTS 83 514 102400 1800
5164707 udontknowme A Nov. 19, 2013, 6:41 p.m. OK Java 6 TESTS 83 546 2252800 1800
5177063 gilesg A Nov. 20, 2013, 1:45 p.m. OK Java 6 TESTS 83 717 147865600 1800
5164960 vvenkai A Nov. 19, 2013, 6:53 p.m. OK Java 7 TESTS 83 78 0 1800
5163931 Vbifial A Nov. 19, 2013, 6:16 p.m. OK Java 7 TESTS 83 78 0 1800
5162375 vadimmm A Nov. 19, 2013, 5:19 p.m. OK Java 7 TESTS 83 78 0 1800
5160965 AlexanderBolshakov A Nov. 19, 2013, 4:59 p.m. OK Java 7 TESTS 83 78 0 1800
5159943 pitfall A Nov. 19, 2013, 4:45 p.m. OK Java 7 TESTS 83 78 0 1800
5158722 Petr A Nov. 19, 2013, 4:30 p.m. OK Java 7 TESTS 83 78 0 1800
5157926 uwi A Nov. 19, 2013, 4:23 p.m. OK Java 7 TESTS 83 78 0 1800
6346850 upsolving A April 13, 2014, 3:16 p.m. OK Java 7 TESTS 83 78 0 1800
5619958 rearmlkp A Jan. 5, 2014, 5:57 a.m. OK Java 7 TESTS 83 78 0 1800
5356412 olimpo A Dec. 5, 2013, 6:16 p.m. OK Java 7 TESTS 83 78 0 1800
10249642 fnch A March 12, 2015, 4:44 p.m. OK Java 8 TESTS 83 124 0 1800
65599377 NMouad21 A Nov. 23, 2019, 5:18 p.m. OK Java 8 TESTS 83 140 0 1800
31260336 sjain281297 A Oct. 12, 2017, 8:40 p.m. OK Java 8 TESTS 83 140 0 1800
50740113 AWCXV A March 3, 2019, 2:58 p.m. OK Java 8 TESTS 83 140 0 1800
39273958 KulikAlex A June 15, 2018, 7:27 p.m. OK Java 8 TESTS 83 140 0 1800
39232885 Ahmad A June 14, 2018, 6:17 a.m. OK Java 8 TESTS 83 140 0 1800
51654935 tsumit023 A March 21, 2019, 8:49 p.m. OK Java 8 TESTS 83 140 0 1800
31546901 IntueorDaniel A Oct. 21, 2017, 12:34 a.m. OK Java 8 TESTS 83 140 20582400 1800
58642189 saurabhs1206 A Aug. 12, 2019, 4:12 a.m. OK Java 8 TESTS 83 155 0 1800
37566216 thesparkboy A April 24, 2018, 7:43 a.m. OK Java 8 TESTS 83 155 20684800 1800
6067832 LowB A March 19, 2014, 2:20 p.m. OK JavaScript TESTS 83 46 716800 1800
6067661 LowB A March 19, 2014, 1:53 p.m. OK JavaScript TESTS 83 46 819200 1800
6066065 LowB A March 19, 2014, 10:19 a.m. OK JavaScript TESTS 83 467 4608000 1800
6067390 LowB A March 19, 2014, 1:16 p.m. OK JavaScript TESTS 83 498 2560000 1800
6067309 LowB A March 19, 2014, 1:08 p.m. OK JavaScript TESTS 83 499 2867200 1800
64687742 hibatibati A Nov. 11, 2019, 12:14 p.m. OK Mono C# TESTS 83 499 2969600 1800
10140661 azukun A March 4, 2015, 5:17 a.m. OK MS C# TESTS 83 62 2560000 1800
14805859 og.kostya A Dec. 14, 2015, 5:09 p.m. OK MS C# TESTS 83 109 409600 1800
5157632 fiver A Nov. 19, 2013, 4:20 p.m. OK MS C# TESTS 83 717 77004800 1800
5310183 notEphim A Nov. 30, 2013, 6:25 a.m. OK MS C++ TESTS 83 15 0 1800
5474207 Auster A Dec. 19, 2013, 9:33 a.m. OK MS C++ TESTS 83 15 102400 1800
5159458 snake13 A Nov. 19, 2013, 4:38 p.m. OK MS C++ TESTS 83 15 204800 1800
5159849 lost3030 A Nov. 19, 2013, 4:43 p.m. OK MS C++ TESTS 83 15 614400 1800
5409922 cvm A Dec. 11, 2013, 2:30 p.m. OK MS C++ TESTS 83 31 0 1800
12136382 Waldis A July 20, 2015, 7:50 p.m. OK MS C++ TESTS 83 31 102400 1800
5164699 Tom. A Nov. 19, 2013, 6:40 p.m. OK MS C++ TESTS 83 31 102400 1800
5157846 Entuser A Nov. 19, 2013, 4:22 p.m. OK MS C++ TESTS 83 31 102400 1800
5496159 dreams A Dec. 23, 2013, 8:47 a.m. OK MS C++ TESTS 83 31 204800 1800
11013356 polequoll A May 6, 2015, 1:33 p.m. OK MS C++ TESTS 83 31 204800 1800
54022842 Timonnable A May 12, 2019, 10:49 a.m. OK MS C++ 2017 TESTS 83 592 1536000 1800
34569643 pavankatta A Jan. 26, 2018, 8:27 a.m. OK PyPy 2 TESTS 83 529 31129600 1800
32317222 mdippel A Nov. 14, 2017, 5:11 p.m. OK PyPy 2 TESTS 83 951 9216000 1800
5338552 yugle7 A Dec. 2, 2013, 8:03 p.m. OK Python 2 TESTS 83 124 307200 1800
25116803 Hildegrin A March 1, 2017, 7:13 a.m. OK Python 2 TESTS 83 155 4710400 1800
54211217 wrong_lemma A May 15, 2019, 5:27 p.m. OK Python 2 TESTS 83 202 0 1800
5700946 sryusuke A Jan. 16, 2014, 5:33 a.m. OK Python 2 TESTS 83 733 614400 1800
41565386 orailly A Aug. 13, 2018, 5:07 p.m. OK Python 3 TESTS 83 140 102400 1800
41984497 Mk_Python_v1 A Aug. 23, 2018, 5:03 a.m. OK Python 3 TESTS 83 155 102400 1800
5338520 yugle7 A Dec. 2, 2013, 7:57 p.m. OK Python 3 TESTS 83 218 0 1800
5181879 AcOnFingers A Nov. 21, 2013, 2:59 a.m. OK Scala TESTS 83 343 307200 1800

remove filters

Back to search problems