Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suenagasuenaga7/2c0213ac420a3ae778e0d24e8911d1a7 to your computer and use it in GitHub Desktop.
Save suenagasuenaga7/2c0213ac420a3ae778e0d24e8911d1a7 to your computer and use it in GitHub Desktop.
ARC 022 A
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