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.

Constraints

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

CCC

Sample Output 1

NO

Sample Input 2

TUDOR

Sample Output 2

YES

Comments


  • -2
    quantum  commented on Feb. 16, 2018, 1:32 a.m.
    #!/bin/sh
    exec yes CCC
    

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

      Keep Tudor safe!