Codeforces Round 918 div4
Codeforces Round 918 (div 4) Problem A Use the frequency to determine the element that appears once. Problem B Have a set for each row and column with "ABC" and remove characters in specific (r, c) pairs. And there will remain a single set with just one character. Problem C Determine if the sum is a squared integer. Can use math.sqrt to determine this. Problem D Create string of C and V for identifying the consonants and vowels. create a deque to store the locations of dots. Iterate over the CV string, and anytime you find CC, that means it must be CVC was the prior syllable. Cause you found a CVCCXXX, The other pattern that can appear is if XCVCVX, if you see VCV, that means there must be a CVCVX, You know there was a CV pattern before the CV of most recent. Which the most recent could be a CVC, you don't know what X is ...