Algorithm/CodeUp
[CodeUp_Java] Q1733 : I.O.I
Plitche
2022. 12. 28. 14:31
반응형
안녕하세요! Plitche(플리체)입니다.
이번 포스팅의 주제는 Q1733 I.O.I (자바, JAVA)입니다.
Intro
Question
문제 설명
입력
알파벳 한 단어가 입력된다.
출력
대문자 IOI가 입력되면, IOI is the International Olympiad in Informatics.를 출력하고, 그 외에는 I don't care.를 출력하시오.
예시
- 입력 : IOI
- 출력 : IOI is the International Olympiad in Informatics.
Solution (풀이)
- 풀이 : 메모리 11144, 시간 : 63
public class Answer1 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String gourp = br.readLine();
System.out.println(gourp.equals("IOI") ? "IOI is the International Olympiad in Informatics." : "I don't care.");
}
}
Ranking(순위)
반응형