SWEA 1928 Base64 Decoder

Jmnote (토론 | 기여)님의 2018년 12월 16일 (일) 21:26 판 (→‎개요)

1 개요

SWEA 1928 Base64 Decoder
SW Expert 아카데미
# 문제 풀이

틀:SWEA 난이도 2-3

2 C++

3 Java

import java.util.Scanner;
import java.util.Base64;
public class Solution {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int T = sc.nextInt();
        for(int t=1; t<=T; t++) {
            String encoded = sc.next();
            String decoded = new String(Base64.getDecoder().decode(encoded));
            System.out.format("#%d %s\n", t, decoded);
        }
    }
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}