Algorithm/Algorithm__hackerrank-Java

End-of-file

말하는감자 2022. 6. 21. 15:47
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Solution {

    public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
        Scanner scanner = new Scanner(System.in);
        int i = 0;
        while(scanner.hasNext()) {
            i++;
            System.out.println(i + " " + scanner.nextLine());
        }
    }
}

'Algorithm > Algorithm__hackerrank-Java' 카테고리의 다른 글

Currency Formatter  (0) 2022.06.21
Date And Time  (0) 2022.06.21
Introduction - Java Datatypes  (0) 2022.06.21
Introduction - Java Loops II  (0) 2022.06.21
Introduction - Java Output Formatting  (0) 2022.06.21