Created
October 28, 2017 06:34
-
-
Save suenagasuenaga7/2c0213ac420a3ae778e0d24e8911d1a7 to your computer and use it in GitHub Desktop.
ARC 022 A
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class Main{ | |
public static void main(String[] args){ | |
Scanner sc = new Scanner(System.in); | |
String S = sc.next(); | |
String target = S.toLowerCase(); | |
int i = target.indexOf("i"); | |
if(i == -1){ | |
System.out.println("NO"); | |
return; | |
} | |
int j = target.indexOf("c",i); | |
if(j == -1){ | |
System.out.println("NO"); | |
return; | |
} | |
int k = target.indexOf("t",j); | |
if(k == -1){ | |
System.out.println("NO"); | |
return; | |
} | |
System.out.println("YES"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment