-
[Baekjoon Online Judge] 2743번: 단어 길이 재기문제 풀이/Baekjoon Online Judge 2021. 1. 8. 19:50
import java.io.*; public class Baekjoon2743 { public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out)); String s = bufferedReader.readLine(); bufferedWriter.write(String.valueOf(s.length())); bufferedWriter.flush(); bufferedReader.close(); bufferedWriter.close(); } }
간단하게 문자열의 길이를 출력하는 문제이다.
'문제 풀이 > Baekjoon Online Judge' 카테고리의 다른 글
[Baekjoon Online Judge] 9251번: LCS (0) 2021.01.08 [Baekjoon Online Judge] 10808번: 알파벳 개수 (0) 2021.01.08 [Baekjoon Online Judge] 10773번: 제로 (0) 2021.01.08 [Baekjoon Online Judge] 10953번: A+B - 6 (0) 2021.01.08 [Baekjoon Online Judge] 2941번: 크로아티아 알파벳 (0) 2021.01.05