-
[java]백준 자동완성 24883번알고리즘 문제풀이/백준(자바) 2023. 5. 18. 20:54
코드
import java.util.Scanner; public class BOJ_24883 { public static void main(String[] args) { Scanner in = new Scanner(System.in); String a=in.next(); if (a.equals("n") || a.equals("N")) { System.out.println("Naver D2"); }else{ System.out.println("Naver Whale"); } in.close(); } }
링크
https://www.acmicpc.net/problem/24883
'알고리즘 문제풀이 > 백준(자바)' 카테고리의 다른 글
[java]백준 문자열 반복 2675번 (0) 2023.05.20 [java]백준 과제 안 내신 분..? 5597번 (0) 2023.05.19 [java]백준 심부름 가는 길 5554번 (0) 2023.05.17 [java]백준 마이크로소프트 로고 5338번 (0) 2023.05.16 [java]백준 나머지 3052번 (0) 2023.05.15