Mock CCC '18 Contest 5 J1 - Looking for the CCC

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 1.0s
Memory limit: 1G

Problem type

Given a string, determine if it contains CCC as a substring.


The string will be of length at most 10.

The string will only contain uppercase letters.

Input Specification

The input consists of a single string, the given string.

Output Specification

Output, on a single line, YES if CCC is not present in the string.

Output NO otherwise.

Sample Input 1


Sample Output 1


Sample Input 2


Sample Output 2



  • -2
    quantum  commented on Feb. 16, 2018, 1:32 a.m.
    exec yes CCC

    • 1
      kipply  commented on Feb. 16, 2018, 1:50 a.m.

      Keep Tudor safe!