Codeforces Round 750 (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
1582 Codeforces Round 750 (Div. 2) FINISHED False 9000 102196463 Oct. 24, 2021, 10:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 603 ) G Kuzya and Homework PROGRAMMING data structures number theory

B"Kuzya started going to school. He was given math homework in which he was given an array a of length n and an array of symbols b of length n , consisting of symbols '*' and '/'. Let's denote a path of calculations for a segment [l; r] ( 1 <= l <= r <= n ) in the following way: For example, let a=[7, 12, 3, 5, 4, 10, 9] , b=[/, *, /, /, /, *, *] , l=2 , r=6 , then the path of calculations for that segment is [12, 4, 0.8, 0.2, 2] . Let's call a segment [l;r] simple if the path of calculations for it contains only integer numbers. Kuzya needs to find the number of simple segments [l;r] ( 1 <= l <= r <= n ). Since he obviously has no time and no interest to do the calculations for each option, he asked you to write a program to get to find that number! The first line contains a single integer n ( 2 <= n <= 10^6 ). The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^6 ). The third line contains n symbols without spaces between them -- the array b_1, b_2 ldots b_n ( b_i= '/' or b_i= '*' for every 1 <= i <= n ). Print a single integer -- the number of simple segments [l;r] . "...

Tutorials

Codeforces Round #750 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
132948716 rainboy G Oct. 24, 2021, 4:52 p.m. OK GNU C11 TESTS 65 1980 221491200
132969396 Alex_Wei G Oct. 25, 2021, 1:04 a.m. OK GNU C++14 TESTS 65 342 280678400
132974805 jiangxuancheng G Oct. 25, 2021, 3:40 a.m. OK GNU C++14 TESTS 65 389 131379200
132977871 sky123 G Oct. 25, 2021, 4:46 a.m. OK GNU C++14 TESTS 65 545 231936000
132947552 xueyijie G Oct. 24, 2021, 4:36 p.m. OK GNU C++14 TESTS 65 546 227840000
132970370 xjyxxxx G Oct. 25, 2021, 1:39 a.m. OK GNU C++14 TESTS 65 561 231833600
132943380 freakin23 G Oct. 24, 2021, 3:42 p.m. OK GNU C++14 TESTS 65 577 226816000
132972738 ast123 G Oct. 25, 2021, 2:53 a.m. OK GNU C++14 TESTS 65 654 231936000
132970126 C202044zxy G Oct. 25, 2021, 1:30 a.m. OK GNU C++14 TESTS 65 654 235827200
132944012 zhaoyunb G Oct. 24, 2021, 3:50 p.m. OK GNU C++14 TESTS 65 794 449638400
132979476 RobeZH G Oct. 25, 2021, 5:15 a.m. OK GNU C++14 TESTS 65 1028 141824000
132977693 sky123 G Oct. 25, 2021, 4:43 a.m. OK GNU C++17 TESTS 65 545 231833600
132977148 anodiebird G Oct. 25, 2021, 4:32 a.m. OK GNU C++17 TESTS 65 561 235929600
132946828 hocky G Oct. 24, 2021, 4:26 p.m. OK GNU C++17 TESTS 65 592 226918400
132936232 wzyeustia G Oct. 24, 2021, 2:23 p.m. OK GNU C++17 TESTS 65 623 51507200
132947640 lifehappiness G Oct. 24, 2021, 4:37 p.m. OK GNU C++17 TESTS 65 873 317030400
132930615 simpatine G Oct. 24, 2021, 1:34 p.m. OK GNU C++17 TESTS 65 904 99840000
132940130 bekzhan29 G Oct. 24, 2021, 3:04 p.m. OK GNU C++17 TESTS 65 904 133017600
132929375 ei133333 G Oct. 24, 2021, 1:25 p.m. OK GNU C++17 TESTS 65 951 100352000
132966601 peti1234 G Oct. 24, 2021, 10:43 p.m. OK GNU C++17 TESTS 65 967 227737600
132980359 leapfrog G Oct. 25, 2021, 5:30 a.m. OK GNU C++17 TESTS 65 1044 130969600
132977671 wangxiaojingzi G Oct. 25, 2021, 4:42 a.m. OK GNU C++17 (64) TESTS 65 452 245145600
132970976 numzero G Oct. 25, 2021, 2 a.m. OK GNU C++17 (64) TESTS 65 467 240128000
132963820 qpEDop_MuXauJloBu4 G Oct. 24, 2021, 9:10 p.m. OK GNU C++17 (64) TESTS 65 514 252006400
132979493 numzero G Oct. 25, 2021, 5:15 a.m. OK GNU C++17 (64) TESTS 65 607 244121600
132938189 m3owp1mp G Oct. 24, 2021, 2:43 p.m. OK GNU C++17 (64) TESTS 65 607 392396800
132952930 cakewalk_nahi_hota G Oct. 24, 2021, 5:56 p.m. OK GNU C++17 (64) TESTS 65 686 453836800
132973287 numzero G Oct. 25, 2021, 3:05 a.m. OK GNU C++17 (64) TESTS 65 701 244121600
132971904 numzero G Oct. 25, 2021, 2:30 a.m. OK GNU C++17 (64) TESTS 65 701 244121600
132972554 numzero G Oct. 25, 2021, 2:48 a.m. OK GNU C++17 (64) TESTS 65 717 244121600
132972613 numzero G Oct. 25, 2021, 2:49 a.m. OK GNU C++17 (64) TESTS 65 732 244121600
132930434 ProgrammerC11 G Oct. 24, 2021, 1:33 p.m. OK GNU C++20 (64) TESTS 65 420 240128000
132948712 UnstoppableChillMachine G Oct. 24, 2021, 4:52 p.m. OK GNU C++20 (64) TESTS 65 607 312524800
132981047 xuziyuan G Oct. 25, 2021, 5:41 a.m. OK GNU C++20 (64) TESTS 65 1044 116531200
132929516 Bench0310 G Oct. 24, 2021, 1:27 p.m. OK GNU C++20 (64) TESTS 65 1450 233164800
132954347 Blondie G Oct. 24, 2021, 6:17 p.m. OK GNU C++20 (64) TESTS 65 1669 231936000
132931812 Forever_Pursuit G Oct. 24, 2021, 1:43 p.m. OK GNU C++20 (64) TESTS 65 1825 328396800
132954273 WildHamburger G Oct. 24, 2021, 6:16 p.m. OK GNU C++20 (64) TESTS 65 1825 330854400
132951626 inksamurai G Oct. 24, 2021, 5:37 p.m. OK GNU C++20 (64) TESTS 65 1949 464486400
132929607 Forever_Pursuit G Oct. 24, 2021, 1:27 p.m. OK GNU C++20 (64) TESTS 65 1965 328396800
132979831 phanlong2811 G Oct. 25, 2021, 5:20 a.m. OK GNU C++20 (64) TESTS 65 1980 161996800
132969355 Spheniscine G Oct. 25, 2021, 1:02 a.m. OK Rust TESTS 65 499 60928000
132969027 Spheniscine G Oct. 25, 2021, 12:49 a.m. OK Rust TESTS 65 561 55603200

remove filters

Back to search problems