Codeforces Round 571 (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
1186 Codeforces Round 571 (Div. 2) FINISHED False 8100 170113199 June 28, 2019, 8:20 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6141 ) C Vus the Cossack and Strings PROGRAMMING implementation math 1800

B'Vus the Cossack has two binary strings, that is, strings that consist only of "0" and "1". We call these strings a and b . It is known that |b| <= q |a| , that is, the length of b is at most the length of a . The Cossack considers every substring of length |b| in string a . Let 's call this substring c . He matches the corresponding characters in b and c , after which he counts the number of positions where the two strings are different. We call this function f(b, c) . For example, let b = 00110 , and c = 11000 . In these strings, the first, second, third and fourth positions are different. Vus the Cossack counts the number of such substrings c such that f(b, c) is even. For example, let a = 01100010 and b = 00110 . a has four substrings of the length |b| : 01100 , 11000 , 10001 , 00010 . Since in three substrings, f(b, c) is even, the answer is 3 . Vus can not find the answer for big strings. That is why he is asking you to help him. The first line contains a binary string a ( 1 <= q |a| <= q 10^6 ) -- the first string. The second line contains a binary string b ( 1 <= q |b| <= q |a| ) -- the second string. Print one number -- the answer. The first example is explained in the legend. In the second example, there are five substrings that satisfy us: 1010 , 0101 , 1111 , 1111 . '...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66737225 vjudge5 C Dec. 12, 2019, 7:27 p.m. OK Clang++17 Diagnostics TESTS 27 93 6758400 1800
56269677 swapnilr C June 29, 2019, 11:35 a.m. OK Clang++17 Diagnostics TESTS 27 452 25190400 1800
56234533 ruban C June 28, 2019, 3:37 p.m. OK Delphi TESTS 27 748 55193600 1800
56551082 bin9638 C July 5, 2019, 9:47 a.m. OK FPC TESTS 27 62 9728000 1800
56289247 adam750306 C June 29, 2019, 10:26 p.m. OK GNU C11 TESTS 27 31 1945600 1800
56289791 adam750306 C June 29, 2019, 11:06 p.m. OK GNU C11 TESTS 27 31 1945600 1800
56763209 TsReaper C July 9, 2019, 4:55 p.m. OK GNU C11 TESTS 27 31 2048000 1800
56289812 adam750306 C June 29, 2019, 11:07 p.m. OK GNU C11 TESTS 27 31 2048000 1800
56289832 adam750306 C June 29, 2019, 11:09 p.m. OK GNU C11 TESTS 27 31 2048000 1800
56289826 adam750306 C June 29, 2019, 11:08 p.m. OK GNU C11 TESTS 27 46 2048000 1800
56438355 ktk54x C July 2, 2019, 3:11 p.m. OK GNU C11 TESTS 27 46 2048000 1800
56628976 YaMoon C July 6, 2019, 3:18 p.m. OK GNU C11 TESTS 27 46 2048000 1800
56210328 coderbd C June 28, 2019, 9:21 a.m. OK GNU C11 TESTS 27 46 2048000 1800
56212557 4c5948 C June 28, 2019, 9:31 a.m. OK GNU C11 TESTS 27 46 2252800 1800
58389411 x_shuai C Aug. 6, 2019, 1:08 p.m. OK GNU C++11 TESTS 27 31 1843200 1800
58815245 luogu_bot5 C Aug. 14, 2019, 12:17 p.m. OK GNU C++11 TESTS 27 31 1843200 1800
60338713 BeastInBlack C Sept. 10, 2019, 9:48 a.m. OK GNU C++11 TESTS 27 31 1843200 1800
57008596 wjfwjfwjf C July 14, 2019, 8:03 a.m. OK GNU C++11 TESTS 27 31 1843200 1800
56466794 cxy666 C July 3, 2019, 9:15 a.m. OK GNU C++11 TESTS 27 31 1843200 1800
56537912 qq1010903229 C July 5, 2019, 2:39 a.m. OK GNU C++11 TESTS 27 31 1843200 1800
56308152 G20202501 C June 30, 2019, 1:09 p.m. OK GNU C++11 TESTS 27 31 1843200 1800
56304844 JoooYa C June 30, 2019, 11:11 a.m. OK GNU C++11 TESTS 27 31 1843200 1800
56303901 JoooYa C June 30, 2019, 10:35 a.m. OK GNU C++11 TESTS 27 31 1843200 1800
56250910 SpiritualKhorosho C June 29, 2019, 3:02 a.m. OK GNU C++11 TESTS 27 31 1843200 1800
56231426 NiSO4_ C June 28, 2019, 2:24 p.m. OK GNU C++14 TESTS 27 31 1945600 1800
56851870 md5_84 C July 11, 2019, 4:09 p.m. OK GNU C++14 TESTS 27 31 1945600 1800
56825562 Gaga_liao C July 11, 2019, 3:58 a.m. OK GNU C++14 TESTS 27 31 1945600 1800
58132541 HouZAJ C Aug. 1, 2019, 2:49 p.m. OK GNU C++14 TESTS 27 31 2048000 1800
61329365 onlystar C Sept. 26, 2019, 2:33 p.m. OK GNU C++14 TESTS 27 31 2048000 1800
56810175 zz050201010 C July 10, 2019, 3:41 p.m. OK GNU C++14 TESTS 27 31 2048000 1800
56872520 Bug_Maker C July 12, 2019, 7:01 a.m. OK GNU C++14 TESTS 27 31 2048000 1800
57450284 baihualiaoluan C July 21, 2019, 9:30 a.m. OK GNU C++14 TESTS 27 31 2048000 1800
57926746 krzysiek27 C July 29, 2019, 7:22 a.m. OK GNU C++14 TESTS 27 31 2048000 1800
58082166 phg0804 C July 31, 2019, 2:15 p.m. OK GNU C++14 TESTS 27 31 2048000 1800
56235968 wjli C June 28, 2019, 4:15 p.m. OK GNU C++17 TESTS 27 30 18944000 1800
56824167 20124485 C July 11, 2019, 2:56 a.m. OK GNU C++17 TESTS 27 31 1945600 1800
56396578 hansc3380 C July 1, 2019, 2:52 p.m. OK GNU C++17 TESTS 27 31 1945600 1800
56256900 karan1808 C June 29, 2019, 6:30 a.m. OK GNU C++17 TESTS 27 31 1945600 1800
57121822 LJL36 C July 16, 2019, 1:44 a.m. OK GNU C++17 TESTS 27 31 1945600 1800
57253848 vjudge3 C July 18, 2019, 1:26 a.m. OK GNU C++17 TESTS 27 31 1945600 1800
68149587 angrysqrt3 C Jan. 4, 2020, 6:19 a.m. OK GNU C++17 TESTS 27 31 1945600 1800
68708026 tyzc C Jan. 13, 2020, 12:01 p.m. OK GNU C++17 TESTS 27 31 2048000 1800
68811490 vjudge5 C Jan. 14, 2020, 4:09 p.m. OK GNU C++17 TESTS 27 31 2048000 1800
69250333 vjudge5 C Jan. 21, 2020, 2:05 p.m. OK GNU C++17 TESTS 27 31 2048000 1800
56243711 danielfleischman C June 28, 2019, 7:43 p.m. OK Haskell TESTS 27 280 71475200 1800
69878179 TheDarkKnight03 C Jan. 31, 2020, 5:12 a.m. OK Java 11 TESTS 27 218 0 1800
69258164 mustafausama C Jan. 21, 2020, 4:15 p.m. OK Java 11 TESTS 27 295 13312000 1800
66882762 ismail C Dec. 14, 2019, 5:08 p.m. OK Java 11 TESTS 27 311 3072000 1800
68307761 Vatsal53 C Jan. 6, 2020, 9:44 a.m. OK Java 11 TESTS 27 326 26931200 1800
56263384 In_The_Name_Of_Love C June 29, 2019, 8:58 a.m. OK Java 8 TESTS 27 124 0 1800
57505083 dmitrievanthony C July 22, 2019, 11:43 a.m. OK Java 8 TESTS 27 124 0 1800
56539438 JCKG C July 5, 2019, 3:54 a.m. OK Java 8 TESTS 27 124 0 1800
56539244 JCKG C July 5, 2019, 3:45 a.m. OK Java 8 TESTS 27 124 0 1800
56535001 bluesky111 C July 4, 2019, 11:28 p.m. OK Java 8 TESTS 27 124 0 1800
56269895 r_sutaria C June 29, 2019, 11:40 a.m. OK Java 8 TESTS 27 124 0 1800
56250578 SerCe C June 29, 2019, 2:43 a.m. OK Java 8 TESTS 27 124 0 1800
56237130 partizan22 C June 28, 2019, 4:43 p.m. OK Java 8 TESTS 27 124 0 1800
56228541 golions C June 28, 2019, 1:29 p.m. OK Java 8 TESTS 27 124 0 1800
56547967 Ikari_stream C July 5, 2019, 8:27 a.m. OK Java 8 TESTS 27 124 921600 1800
69508955 yakamoto C Jan. 25, 2020, 9:47 a.m. OK Kotlin TESTS 27 140 2150400 1800
56379750 kkyuggu C July 1, 2019, 7:58 a.m. OK Kotlin TESTS 27 156 102400 1800
56366339 mendel_vv C June 30, 2019, 11:08 p.m. OK Kotlin TESTS 27 249 2662400 1800
56296337 Spheniscine C June 30, 2019, 6:11 a.m. OK Kotlin TESTS 27 358 36556800 1800
62380812 riantkb C Oct. 11, 2019, 7:04 p.m. OK Mono C# TESTS 27 62 7065600 1800
56231238 og.kostya C June 28, 2019, 2:20 p.m. OK Mono C# TESTS 27 62 10649600 1800
58699091 KhanhNguyen795 C Aug. 13, 2019, 7:11 a.m. OK Mono C# TESTS 27 77 6963200 1800
62377636 vjudge2 C Oct. 11, 2019, 5:53 p.m. OK Mono C# TESTS 27 77 7065600 1800
56394349 ansergeyg C July 1, 2019, 1:54 p.m. OK Mono C# TESTS 27 78 7065600 1800
56485164 ds88 C July 3, 2019, 5:59 p.m. OK Mono C# TESTS 27 93 7065600 1800
56671493 NEvOl C July 7, 2019, 1:20 p.m. OK Mono C# TESTS 27 93 10649600 1800
56212069 claw88 C June 28, 2019, 9:29 a.m. OK Mono C# TESTS 27 124 15052800 1800
56542092 ProjectBuild C July 5, 2019, 5:51 a.m. OK MS C++ TESTS 27 31 2048000 1800
68767536 vjudge4 C Jan. 14, 2020, 10:31 a.m. OK MS C++ TESTS 27 31 2048000 1800
56511025 vjudge5 C July 4, 2019, 10:22 a.m. OK MS C++ TESTS 27 31 2048000 1800
56452316 vjudge2 C July 3, 2019, 12:23 a.m. OK MS C++ TESTS 27 31 2048000 1800
57254019 vjudge2 C July 18, 2019, 1:33 a.m. OK MS C++ TESTS 27 31 3993600 1800
56707722 vjudge4 C July 8, 2019, 11:40 a.m. OK MS C++ TESTS 27 31 3993600 1800
56761253 vjudge2 C July 9, 2019, 3:57 p.m. OK MS C++ TESTS 27 31 3993600 1800
57182002 vjudge2 C July 17, 2019, 7:33 a.m. OK MS C++ TESTS 27 31 3993600 1800
56293890 vjudge1 C June 30, 2019, 4:08 a.m. OK MS C++ TESTS 27 31 6041600 1800
56720026 vjudge1 C July 8, 2019, 4:21 p.m. OK MS C++ TESTS 27 31 6041600 1800
56221955 P___ C June 28, 2019, 10:24 a.m. OK MS C++ 2017 TESTS 27 31 2048000 1800
56433900 yujular C July 2, 2019, 1:17 p.m. OK MS C++ 2017 TESTS 27 46 2048000 1800
56254267 RANCAFE C June 29, 2019, 5:23 a.m. OK MS C++ 2017 TESTS 27 46 2048000 1800
56241996 xsc C June 28, 2019, 6:55 p.m. OK MS C++ 2017 TESTS 27 46 2048000 1800
56216631 xietx C June 28, 2019, 9:49 a.m. OK MS C++ 2017 TESTS 27 46 2048000 1800
56212409 AcNaQue C June 28, 2019, 9:31 a.m. OK MS C++ 2017 TESTS 27 46 2048000 1800
56212236 GomBu C June 28, 2019, 9:30 a.m. OK MS C++ 2017 TESTS 27 46 2048000 1800
58983215 2018qwer C Aug. 18, 2019, 5:39 a.m. OK MS C++ 2017 TESTS 27 46 2048000 1800
56220763 youx C June 28, 2019, 10:16 a.m. OK MS C++ 2017 TESTS 27 46 2969600 1800
61289680 MrLolthe1st C Sept. 25, 2019, 8 p.m. OK MS C++ 2017 TESTS 27 46 3072000 1800
56261224 darkkcyan C June 29, 2019, 8:09 a.m. OK PascalABC.NET TESTS 27 296 5734400 1800
56235816 lostamok C June 28, 2019, 4:11 p.m. OK PHP TESTS 27 187 3788800 1800
57795658 -Morass- C July 26, 2019, 11:18 a.m. OK PyPy 2 TESTS 27 155 7680000 1800
59234647 jolt.tks C Aug. 21, 2019, 4:55 p.m. OK PyPy 2 TESTS 27 156 7270400 1800
56237110 thuutin C June 28, 2019, 4:43 p.m. OK PyPy 2 TESTS 27 171 7270400 1800
56261179 IngaleAnkur10 C June 29, 2019, 8:08 a.m. OK PyPy 2 TESTS 27 171 10240000 1800
56995561 Lewin C July 13, 2019, 9:49 p.m. OK PyPy 2 TESTS 27 186 14950400 1800
56227569 c1729 C June 28, 2019, 1:13 p.m. OK PyPy 2 TESTS 27 186 17408000 1800
56276120 bcollet C June 29, 2019, 2:20 p.m. OK PyPy 2 TESTS 27 187 14028800 1800
56237722 kabeer27 C June 28, 2019, 5 p.m. OK PyPy 2 TESTS 27 202 9420800 1800
56298950 shubhankarsharma00 C June 30, 2019, 7:45 a.m. OK PyPy 2 TESTS 27 249 11161600 1800
56206212 drd93 C June 28, 2019, 9:03 a.m. OK PyPy 2 TESTS 27 249 13414400 1800
56308503 use_me C June 30, 2019, 1:22 p.m. OK PyPy 3 TESTS 27 264 8499200 1800
56683475 shubham0290 C July 7, 2019, 8:10 p.m. OK PyPy 3 TESTS 27 265 8499200 1800
56240005 thekushalghosh C June 28, 2019, 5:59 p.m. OK PyPy 3 TESTS 27 265 8499200 1800
56421239 NVAL C July 2, 2019, 7:26 a.m. OK PyPy 3 TESTS 27 280 8396800 1800
56260959 Z8N C June 29, 2019, 8:02 a.m. OK PyPy 3 TESTS 27 280 8396800 1800
57189617 sonya123 C July 17, 2019, 10 a.m. OK PyPy 3 TESTS 27 280 8499200 1800
57117075 niteshmittal68 C July 15, 2019, 8:58 p.m. OK PyPy 3 TESTS 27 280 8499200 1800
56297460 TriNguyen17 C June 30, 2019, 6:54 a.m. OK PyPy 3 TESTS 27 280 8499200 1800
56258438 wxbxcxuxnxy C June 29, 2019, 7:05 a.m. OK PyPy 3 TESTS 27 280 8499200 1800
56220696 brosucks C June 28, 2019, 10:15 a.m. OK PyPy 3 TESTS 27 280 8499200 1800
56231396 anshuman16423 C June 28, 2019, 2:23 p.m. OK Python 2 TESTS 27 483 18432000 1800
61269580 soumyasarkar1998 C Sept. 25, 2019, 1:42 p.m. OK Python 2 TESTS 27 639 34304000 1800
56306836 kaif_7 C June 30, 2019, 12:22 p.m. OK Python 2 TESTS 27 701 3584000 1800
56262102 Icarius C June 29, 2019, 8:29 a.m. OK Python 2 TESTS 27 732 18432000 1800
64509555 Hapsidra C Nov. 8, 2019, 8:18 a.m. OK Python 3 TESTS 27 592 3788800 1800
61671674 chgliu C Oct. 1, 2019, 6:57 p.m. OK Python 3 TESTS 27 592 3788800 1800
56219061 plusplus6408 C June 28, 2019, 10:04 a.m. OK Python 3 TESTS 27 607 3788800 1800
56281516 Kiri8128 C June 29, 2019, 5:05 p.m. OK Python 3 TESTS 27 623 3788800 1800
69532114 Troy1110777 C Jan. 25, 2020, 5:30 p.m. OK Python 3 TESTS 27 670 3788800 1800
56227312 tieros C June 28, 2019, 1:09 p.m. OK Python 3 TESTS 27 670 3788800 1800
56278612 tadashiya C June 29, 2019, 3:34 p.m. OK Python 3 TESTS 27 701 3788800 1800
56245911 Addarsh C June 28, 2019, 9:08 p.m. OK Python 3 TESTS 27 701 3788800 1800
56227151 Mohamed_Ayman C June 28, 2019, 1:07 p.m. OK Python 3 TESTS 27 701 3788800 1800
56238669 darkshadow07 C June 28, 2019, 5:23 p.m. OK Python 3 TESTS 27 702 3788800 1800
57302321 corvvs_ C July 19, 2019, 1:08 a.m. OK Ruby TESTS 27 717 6553600 1800

remove filters

Back to search problems