-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQ2744.java
More file actions
29 lines (26 loc) ยท 902 Bytes
/
Q2744.java
File metadata and controls
29 lines (26 loc) ยท 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* Date: 2018. 10. 23.
* Author: inhyuck | https://github.com/inhyuck
* Solution URL: https://github.com/inhyuck/problem-solving
* Title: ๋์๋ฌธ์ ๋ฐ๊พธ๊ธฐ
* description: ๋๋ฌธ์๋ ์๋ฌธ์๋ก, ์๋ฌธ์๋ ๋๋ฌธ์๋ก ๋ฐ๊พธ๋ ๋ฌธ์
* Problem URL: https://www.acmicpc.net/problem/2744
*/
package io.inhyuck.basic;
import java.util.Scanner;
public class Q2744 {
public static void main(String[] args) {
String input = new Scanner(System.in).nextLine();
StringBuilder builder = new StringBuilder();
char temp;
for (int i = 0; i < input.length(); i++) {
temp = input.charAt(i);
if (temp < 97) {
builder.append(String.valueOf((char)(temp + 32)));
} else {
builder.append(String.valueOf((char)(temp - 32)));
}
}
System.out.println(builder);
}
}