ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 백준 10988 JAVA
    ETC/Algorithm 2023. 5. 19. 23:16
    import java.io.*;
    
    public class Main {
        public static void main(String[] args) throws IOException {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
    
            StringBuilder sb = new StringBuilder(br.readLine());
    
            int result = sb.toString().equals(sb.reverse().toString()) ? 1 : 0;
    
            bw.write(String.valueOf(result));
            bw.flush();
        }
    }

    댓글

Designed by black7375.