본문 바로가기
알고리즘 & 자료구조/백준

백준 10988_1

by 신재권 2022. 2. 1.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main10988_1 {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str = br.readLine();	
		StringBuffer sb = new StringBuffer(str);	
		String tmp = sb.reverse().toString();

		if(str.equals(tmp)) {
			System.out.println(1);
		}else {
			System.out.println(0);
		}
		
	}
	
	
	
}

'알고리즘 & 자료구조 > 백준' 카테고리의 다른 글

백준 9996  (0) 2022.02.03
백준 11655  (0) 2022.02.02
백준 1159  (0) 2022.01.31
백준 10988  (0) 2022.01.30
백준 2979  (0) 2022.01.29