Skip to content

Commit f442deb

Browse files
authored
[BOJ] 32929 UOS 문자열 (B5)
1 parent 1e19a7e commit f442deb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

정건우/5주차/260129.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//https://www.acmicpc.net/problem/32929
2+
import java.util.Scanner;
3+
4+
public class BOJ_B5_32929_UOS문자열 {
5+
public static void main(String[] args) {
6+
Scanner scann = new Scanner(System.in);
7+
8+
int N = scann.nextInt();
9+
char [] arr = "UOS".toCharArray();
10+
11+
N = (N-1)%3;
12+
13+
System.out.println(arr[N]);
14+
}
15+
}

0 commit comments

Comments
 (0)