Educational Codeforces Round 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
600 Educational Codeforces Round 2 FINISHED False 7200 288975604 Nov. 27, 2015, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5379 ) A Extract Numbers PROGRAMMING implementation strings 1600

B'You are given string s. Let 's call word any largest sequence of consecutive symbols without symbols ', ' (comma) and '; ' (semicolon). For example, there are four words in string "aba,123;1a;0": "aba", "123", "1a", "0". A word can be empty: for example, the string s=";;" contains three empty words separated by '; '. You should find all words in the given string that are nonnegative INTEGER numbers without leading zeroes and build by them new string a. String a should contain all words that are numbers separating them by ', ' (the order of numbers should remain the same as in the string s). By all other words you should build string b in the same way (the order of numbers should remain the same as in the string s). Here strings "101", "0" are INTEGER numbers, but "01" and "1.0" are not. For example, for the string aba,123;1a;0 the string a would be equal to "123,0" and string b would be equal to "aba,1a". The only line of input contains the string s (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The string contains only symbols '. ' (ASCII 46), ', ' (ASCII 44), '; ' (ASCII 59), digits, lowercase and uppercase latin letters. Print the string a to the first line and string b to the second line. Each string should be surrounded by quotes (ASCII 34). If there are no words that are numbers print dash (ASCII 45) on the first line. If all words are numbers print dash on the second line. In the second example the string s contains five words: "1", "", "01", "a0", "".'...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
26163908 simoncatcity A April 6, 2017, 7:18 a.m. OK FPC TESTS 43 30 2969600 1600
19567697 teenagerlive A Aug. 1, 2016, 8:03 p.m. OK FPC TESTS 43 31 716800 1600
20971095 vjudge3 A Sept. 28, 2016, 3:08 p.m. OK GNU C TESTS 43 15 307200 1600
34719877 preliminary A Jan. 30, 2018, 7:49 p.m. OK GNU C TESTS 43 15 2252800 1600
20933761 ibalashov24 A Sept. 26, 2016, 8 p.m. OK GNU C TESTS 43 31 307200 1600
19952968 arts A Aug. 18, 2016, 7:54 p.m. OK GNU C TESTS 43 780 2150400 1600
19856026 rainboy A Aug. 13, 2016, 6:09 p.m. OK GNU C TESTS 43 1513 2560000 1600
19855985 rainboy A Aug. 13, 2016, 6:06 p.m. OK GNU C TESTS 43 1528 2560000 1600
18147679 shromekhanna A May 29, 2016, 1:43 p.m. OK GNU C TESTS 43 1543 2867200 1600
30619394 vjudge3 A Sept. 22, 2017, 3:45 p.m. OK GNU C++ TESTS 43 15 102400 1600
27011050 vjudge5 A May 11, 2017, 11:32 a.m. OK GNU C++ TESTS 43 15 102400 1600
20653520 Flyerison A Sept. 16, 2016, 6:08 a.m. OK GNU C++ TESTS 43 15 102400 1600
20652269 vjudge1 A Sept. 16, 2016, 4:18 a.m. OK GNU C++ TESTS 43 15 102400 1600
20651984 vjudge2 A Sept. 16, 2016, 3:43 a.m. OK GNU C++ TESTS 43 15 102400 1600
18540440 SoiMae A June 17, 2016, 10:26 a.m. OK GNU C++ TESTS 43 15 204800 1600
30301972 vjudge5 A Sept. 13, 2017, 8:27 a.m. OK GNU C++ TESTS 43 15 204800 1600
22979174 gbriyad A Dec. 14, 2016, 6:11 p.m. OK GNU C++ TESTS 43 15 307200 1600
27012845 vjudge5 A May 11, 2017, 12:39 p.m. OK GNU C++ TESTS 43 15 307200 1600
27730568 Adham_Nasr A June 12, 2017, 4:16 a.m. OK GNU C++ TESTS 43 15 409600 1600
67158520 mahdihejazi A Dec. 18, 2019, 1:14 p.m. OK GNU C11 TESTS 43 31 409600 1600
49890227 kaiboy A Feb. 14, 2019, 2:53 a.m. OK GNU C11 TESTS 43 31 512000 1600
67476557 AcodeFcodeG2000 A Dec. 23, 2019, 2:33 p.m. OK GNU C11 TESTS 43 311 14028800 1600
67133085 trollali A Dec. 18, 2019, 1:49 a.m. OK GNU C11 TESTS 43 312 3993600 1600
67133018 trollali A Dec. 18, 2019, 1:46 a.m. OK GNU C11 TESTS 43 327 3993600 1600
67178978 mahdihejazi A Dec. 18, 2019, 9:04 p.m. OK GNU C11 TESTS 43 327 9011200 1600
67177418 mahdihejazi A Dec. 18, 2019, 8:02 p.m. OK GNU C11 TESTS 43 327 9011200 1600
67476279 AcodeFcodeG2000 A Dec. 23, 2019, 2:28 p.m. OK GNU C11 TESTS 43 342 14028800 1600
67157640 h.a.b A Dec. 18, 2019, 12:59 p.m. OK GNU C11 TESTS 43 763 716800 1600
33843733 alexey.orlov A Jan. 1, 2018, 8:33 a.m. OK GNU C11 TESTS 43 1513 3584000 1600
20897130 ibalashov24 A Sept. 24, 2016, 8:40 p.m. OK GNU C++11 TESTS 43 15 102400 1600
20652273 iamhacker A Sept. 16, 2016, 4:19 a.m. OK GNU C++11 TESTS 43 15 102400 1600
32284727 win11905 A Nov. 13, 2017, 1:02 p.m. OK GNU C++11 TESTS 43 15 307200 1600
19597024 hbcbs110 A Aug. 3, 2016, 12:04 p.m. OK GNU C++11 TESTS 43 15 307200 1600
18847643 JJboom A July 2, 2016, 1:32 a.m. OK GNU C++11 TESTS 43 15 307200 1600
27578576 omniaa A June 5, 2017, 8:21 a.m. OK GNU C++11 TESTS 43 15 409600 1600
27370910 Momentaiii A May 27, 2017, 9:25 a.m. OK GNU C++11 TESTS 43 15 409600 1600
22050837 CuSO45H2O A Nov. 5, 2016, 7:58 a.m. OK GNU C++11 TESTS 43 15 409600 1600
30614264 vjudge2 A Sept. 22, 2017, 12:30 p.m. OK GNU C++11 TESTS 43 15 409600 1600
30619596 miaowu213 A Sept. 22, 2017, 3:53 p.m. OK GNU C++11 TESTS 43 15 409600 1600
30302174 vjudge2 A Sept. 13, 2017, 8:41 a.m. OK GNU C++14 TESTS 43 15 307200 1600
30301418 DoubleX A Sept. 13, 2017, 7:50 a.m. OK GNU C++14 TESTS 43 15 307200 1600
30630690 AkaiShuuichi9866 A Sept. 23, 2017, 5:24 a.m. OK GNU C++14 TESTS 43 15 409600 1600
27569067 vadimadr A June 4, 2017, 6:36 p.m. OK GNU C++14 TESTS 43 15 614400 1600
54729904 IsaacMoris A May 27, 2019, 10:34 p.m. OK GNU C++14 TESTS 43 15 614400 1600
30300520 vjudge1 A Sept. 13, 2017, 6:45 a.m. OK GNU C++14 TESTS 43 15 716800 1600
29709503 xiangel A Aug. 23, 2017, 2:10 p.m. OK GNU C++14 TESTS 43 15 819200 1600
29709622 xiangel A Aug. 23, 2017, 2:16 p.m. OK GNU C++14 TESTS 43 15 819200 1600
29709516 xiangel A Aug. 23, 2017, 2:11 p.m. OK GNU C++14 TESTS 43 15 819200 1600
28566905 after A July 15, 2017, 7:27 a.m. OK GNU C++14 TESTS 43 15 2252800 1600
35447098 schureedgood A Feb. 18, 2018, 1:34 p.m. OK GNU C++17 TESTS 43 15 6758400 1600
59024563 deadly_aman A Aug. 18, 2019, 2:30 p.m. OK GNU C++17 TESTS 43 30 409600 1600
54753374 hobgoblin23 A May 28, 2019, 1:53 p.m. OK GNU C++17 TESTS 43 30 409600 1600
50093142 -faraday_anshul- A Feb. 18, 2019, 11:30 a.m. OK GNU C++17 TESTS 43 30 614400 1600
65753485 Vlaine A Nov. 26, 2019, 2:01 p.m. OK GNU C++17 TESTS 43 30 614400 1600
57290915 _Aaryan_ A July 18, 2019, 4:42 p.m. OK GNU C++17 TESTS 43 30 2662400 1600
61097020 rich_and_yuong A Sept. 23, 2019, 4:03 a.m. OK GNU C++17 TESTS 43 30 4915200 1600
56525157 maratha A July 4, 2019, 4:48 p.m. OK GNU C++17 TESTS 43 30 5017600 1600
68491286 Lazy-Tortoise A Jan. 10, 2020, 11:48 a.m. OK GNU C++17 TESTS 43 30 5017600 1600
64498213 eduardonunes2525 A Nov. 8, 2019, 2:04 a.m. OK GNU C++17 TESTS 43 31 307200 1600
40721654 vjudge1 A July 25, 2018, 1:42 a.m. OK GNU C++17 Diagnostics TESTS 43 1013 2560000 1600
22527687 Nesze A Nov. 27, 2016, 1:47 p.m. OK Go TESTS 43 795 24371200 1600
19161341 pavel.rosputko A July 15, 2016, 8:19 p.m. OK Haskell TESTS 43 31 10752000 1600
20897504 jura__ A Sept. 24, 2016, 9:18 p.m. OK Haskell TESTS 43 31 18022400 1600
53602820 ridgetinez A May 1, 2019, 8:41 a.m. OK Haskell TESTS 43 46 2150400 1600
65154913 ankyy_0103 A Nov. 16, 2019, 8:57 a.m. OK Java 11 TESTS 43 202 0 1600
54911865 Whiplash99 A June 1, 2019, 11:37 a.m. OK Java 8 TESTS 43 124 0 1600
26777616 pitfall A May 1, 2017, 2:41 a.m. OK Java 8 TESTS 43 124 20582400 1600
30460260 vovacomua A Sept. 18, 2017, 10 a.m. OK Java 8 TESTS 43 124 20684800 1600
19351579 MedoN11 A July 23, 2016, 12:03 a.m. OK Java 8 TESTS 43 139 0 1600
18587164 Mamdou7 A June 18, 2016, 9:20 p.m. OK Java 8 TESTS 43 139 0 1600
57594551 Seco_seco A July 23, 2019, 1:29 p.m. OK Java 8 TESTS 43 140 0 1600
30490009 bhavyashah9823 A Sept. 19, 2017, 6:56 a.m. OK Java 8 TESTS 43 140 0 1600
21733930 gahou A Oct. 24, 2016, 6:01 a.m. OK Java 8 TESTS 43 140 0 1600
20604456 mehdimaick A Sept. 14, 2016, 3:56 a.m. OK Java 8 TESTS 43 140 0 1600
24151638 iakovlev.zakhar A Jan. 26, 2017, 3:18 p.m. OK Java 8 TESTS 43 140 21299200 1600
31269358 vjudge1 A Oct. 13, 2017, 8:55 a.m. OK JavaScript TESTS 43 46 4710400 1600
51397337 sigma_g A March 17, 2019, 5:24 a.m. OK JavaScript TESTS 43 46 10649600 1600
18686809 leonidvasilyev A June 23, 2016, 7:30 p.m. OK JavaScript TESTS 43 62 7577600 1600
18947985 kirakira A July 7, 2016, 9:27 a.m. OK JavaScript TESTS 43 93 9932800 1600
32099996 s3rpisoru A Nov. 6, 2017, 3:50 p.m. OK JavaScript TESTS 43 93 11366400 1600
41645980 Slamur A Aug. 16, 2018, 8:39 a.m. OK Kotlin TESTS 43 155 0 1600
39637144 QuantumKnight A June 25, 2018, 3:37 a.m. OK Mono C# TESTS 43 46 2969600 1600
41658451 Kirundel A Aug. 16, 2018, 4:22 p.m. OK Mono C# TESTS 43 77 8294400 1600
39139284 31415926 A June 11, 2018, 7:14 a.m. OK Mono C# TESTS 43 218 6860800 1600
27013458 vjudge1 A May 11, 2017, 12:44 p.m. OK Mono C# TESTS 43 233 2252800 1600
69962507 ngtkana A Feb. 1, 2020, 11:50 a.m. OK Mono C# TESTS 43 358 8601600 1600
60715438 NEvOl A Sept. 17, 2019, 10:25 a.m. OK Mono C# TESTS 43 1513 10649600 1600
30662509 alexanderanchishkin A Sept. 24, 2017, 10:21 a.m. OK MS C# TESTS 43 46 3276800 1600
22709280 balalaika A Dec. 5, 2016, 10:44 a.m. OK MS C# TESTS 43 62 5734400 1600
28003381 artsin666 A June 24, 2017, 10:40 a.m. OK MS C# TESTS 43 62 15257600 1600
32120224 phaserescu A Nov. 7, 2017, 1:18 p.m. OK MS C# TESTS 43 109 8908800 1600
27014213 vjudge2 A May 11, 2017, 1:26 p.m. OK MS C# TESTS 43 234 2252800 1600
30455635 Aleckmal90 A Sept. 18, 2017, 5:26 a.m. OK MS C# TESTS 43 249 15769600 1600
20608710 sunmoyi A Sept. 14, 2016, 7:47 a.m. OK MS C++ TESTS 43 15 307200 1600
32543937 MVetch A Nov. 22, 2017, 8:13 a.m. OK MS C++ TESTS 43 15 614400 1600
19890098 gdutzhuhui A Aug. 15, 2016, 2:31 p.m. OK MS C++ TESTS 43 15 2457600 1600
35146692 Dru A Feb. 11, 2018, 8:44 a.m. OK MS C++ TESTS 43 15 2457600 1600
32822582 a.i.miroshnikov A Dec. 1, 2017, 6:27 a.m. OK MS C++ TESTS 43 15 2457600 1600
32816179 jonnycage111 A Nov. 30, 2017, 8:34 p.m. OK MS C++ TESTS 43 15 2457600 1600
32816147 jonnycage111 A Nov. 30, 2017, 8:31 p.m. OK MS C++ TESTS 43 15 2457600 1600
32967867 unbelievablemail A Dec. 6, 2017, 7:04 a.m. OK MS C++ TESTS 43 15 2560000 1600
28007466 vjudge3 A June 24, 2017, 3:01 p.m. OK MS C++ TESTS 43 15 2560000 1600
38970316 Jadesword A June 5, 2018, 1:44 p.m. OK MS C++ TESTS 43 15 3891200 1600
60046480 siwei A Sept. 4, 2019, 8:42 p.m. OK MS C++ 2017 TESTS 43 31 409600 1600
57511738 CtrlAlt A July 22, 2019, 2:05 p.m. OK MS C++ 2017 TESTS 43 31 614400 1600
65909246 vjudge5 A Nov. 28, 2019, 12:16 p.m. OK MS C++ 2017 TESTS 43 31 6451200 1600
51568984 Husne_Matar A March 20, 2019, 10:53 a.m. OK MS C++ 2017 TESTS 43 46 9728000 1600
66002282 _DeMeNteD_ A Nov. 29, 2019, 7:38 p.m. OK Node.js TESTS 43 171 5836800 1600
55598749 Rara. A June 15, 2019, 4:46 p.m. OK Node.js TESTS 43 187 10956800 1600
55598392 TheStrange A June 15, 2019, 4:31 p.m. OK Node.js TESTS 43 187 10956800 1600
46133210 icesin A Nov. 24, 2018, 3:27 a.m. OK PyPy 2 TESTS 43 717 7475200 1600
27541161 yelghareeb A June 3, 2017, 10:23 a.m. OK PyPy 2 TESTS 43 826 8294400 1600
28650460 sragavan A July 17, 2017, 11:20 p.m. OK PyPy 2 TESTS 43 888 31539200 1600
49633180 kal013 A Feb. 8, 2019, 5:15 p.m. OK PyPy 2 TESTS 43 1466 9830400 1600
35743669 Qumeric A Feb. 26, 2018, 7:36 p.m. OK PyPy 3 TESTS 43 124 31641600 1600
38981740 cen A June 6, 2018, 2:11 a.m. OK PyPy 3 TESTS 43 139 6553600 1600
38787282 Skyscrapers A May 31, 2018, 12:54 a.m. OK PyPy 3 TESTS 43 139 28672000 1600
53424622 sqrtminusone A April 27, 2019, 1:02 p.m. OK PyPy 3 TESTS 43 140 7475200 1600
52680816 syzymon A April 13, 2019, 12:19 p.m. OK PyPy 3 TESTS 43 155 6553600 1600
62827182 Anish1712 A Oct. 17, 2019, 6:28 p.m. OK PyPy 3 TESTS 43 171 7577600 1600
51858192 cs1g A March 26, 2019, 12:04 p.m. OK PyPy 3 TESTS 43 186 9011200 1600
63268235 AvinashKartik A Oct. 24, 2019, 2:07 a.m. OK PyPy 3 TESTS 43 218 9113600 1600
54339361 ak9eight A May 18, 2019, 9:37 a.m. OK PyPy 3 TESTS 43 265 9932800 1600
64663759 Falla7 A Nov. 10, 2019, 11:28 p.m. OK PyPy 3 TESTS 43 436 11571200 1600
23008758 franckmy A Dec. 15, 2016, 2:18 p.m. OK Python 2 TESTS 43 77 1228800 1600
26046261 sid597 A April 1, 2017, 7:45 a.m. OK Python 2 TESTS 43 77 6041600 1600
24460094 cascal A Feb. 5, 2017, 10:53 p.m. OK Python 2 TESTS 43 77 6553600 1600
24460011 cascal A Feb. 5, 2017, 10:39 p.m. OK Python 2 TESTS 43 77 6553600 1600
28263167 tskolm A July 3, 2017, 7:06 p.m. OK Python 2 TESTS 43 93 5836800 1600
22504000 BCS A Nov. 26, 2016, 8:31 a.m. OK Python 2 TESTS 43 108 1740800 1600
30614515 vjudge4 A Sept. 22, 2017, 12:41 p.m. OK Python 2 TESTS 43 109 716800 1600
31184687 vjudge1 A Oct. 10, 2017, 8:46 a.m. OK Python 2 TESTS 43 139 1433600 1600
31183303 vjudge2 A Oct. 10, 2017, 7:28 a.m. OK Python 2 TESTS 43 139 1638400 1600
31183294 fankcoder A Oct. 10, 2017, 7:27 a.m. OK Python 2 TESTS 43 171 1638400 1600
27164643 xuchenqingtian A May 16, 2017, 4:07 p.m. OK Python 3 TESTS 43 77 1331200 1600
19107640 Greenwicher A July 14, 2016, 12:40 p.m. OK Python 3 TESTS 43 77 1433600 1600
24352556 malreynolds A Feb. 1, 2017, 6:46 p.m. OK Python 3 TESTS 43 77 5939200 1600
19783019 Liva A Aug. 11, 2016, 11:33 a.m. OK Python 3 TESTS 43 77 6041600 1600
24111359 helfi2012 A Jan. 25, 2017, 12:40 p.m. OK Python 3 TESTS 43 78 5939200 1600
26231218 justcode_fk A April 9, 2017, 6:41 a.m. OK Python 3 TESTS 43 93 6144000 1600
24111088 Dorro_D A Jan. 25, 2017, 12:30 p.m. OK Python 3 TESTS 43 93 6348800 1600
31265628 aravind.nujella A Oct. 13, 2017, 5:25 a.m. OK Python 3 TESTS 43 108 1843200 1600
24728325 arknave A Feb. 16, 2017, 11:42 p.m. OK Python 3 TESTS 43 108 6246400 1600
38787285 Skyscrapers A May 31, 2018, 12:54 a.m. OK Python 3 TESTS 43 108 9011200 1600
39407873 zhupengfei A June 19, 2018, 10:59 a.m. OK Ruby TESTS 43 1326 16179200 1600
24838142 Grevozin A Feb. 20, 2017, 4:58 p.m. OK Rust TESTS 43 30 4915200 1600
24837843 Grevozin A Feb. 20, 2017, 4:56 p.m. OK Rust TESTS 43 31 4915200 1600
20540206 gluschenkokaterina A Sept. 11, 2016, 9:10 p.m. OK Scala TESTS 43 358 3379200 1600
19292914 crazypursuer A July 21, 2016, 4:46 a.m. OK Scala TESTS 43 420 3276800 1600

remove filters

Back to search problems