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


Sample Output


Sample Input


Sample Output



  • 1
    quantum  commented on Feb. 15, 2018, 8:32 p.m.
    exec yes CCC

    • 1
      kipply  commented on Feb. 15, 2018, 8:50 p.m.

      Keep Tudor safe!