Written by
java-style
on
on
백준 4659 - 비밀번호 발음하기
백준 4659 - 비밀번호 발음하기
https://www.acmicpc.net/problem/4659
★ 풀이
귀찮은 구현문제, 풀이는 생략
★ 소스 코드
import java.io.*; import java.util.*; // 좋은 코드 흡수하기! public class Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) throws IOException { String input = ""; while(!(input = br.readLine()).equals("end")) { if(case1(input) && case2(input) && case3(input)) { bw.write("<"+input+"> is acceptable.
"); }else { bw.write("<"+input+"> is not acceptable.
"); } } bw.flush(); } static boolean case1(String s) { for(int i =0; i
from http://sweet-smell.tistory.com/120 by ccl(A) rewrite - 2021-11-29 05:02:29