Submission #1308105


Source Code Expand

import java.io.*;
import java.util.*;
 
public class Main {
    private static boolean debug = false;
    private static boolean elapsed = false;
 
    private static PrintWriter _out = new PrintWriter(System.out);
    private static PrintWriter _err = new PrintWriter(System.err);
 
    private void solve(Scanner sc) {
        String s = sc.next();
        s = s.replaceAll(",", " ");
        _out.println(s);
    }
    private long C(long n, long r) {
        long res = 1;
        for (long i = n; i > n - r; --i) {
            res *= i;
        }
        for (long i = r; i > 1; --i) {
            res /= i;
        }
        return res;
    }
    private long P(long n, long r) {
        long res = 1;
        for (long i = n; i > n - r; --i) {
            res *= i;
        }
        return res;
    }
    /*
     * 10^10 > Integer.MAX_VALUE = 2147483647 > 10^9
     * 10^19 > Long.MAX_VALUE = 9223372036854775807L > 10^18
     */
    public static void main(String[] args) {
        long S = System.currentTimeMillis();
 
        Scanner sc = new Scanner(System.in);
        new Main().solve(sc);
        _out.flush();
 
        long G = System.currentTimeMillis();
        if (elapsed) {
            _err.println((G - S) + "ms");
        }
        _err.flush();
    }
}

Submission Info

Submission Time
Task A - Haiku
User unirita135
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 1327 Byte
Status AC
Exec Time 95 ms
Memory 21844 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_01.txt, subtask_1_02.txt, subtask_1_03.txt, subtask_1_04.txt, subtask_1_05.txt, subtask_1_06.txt, subtask_1_07.txt
Case Name Status Exec Time Memory
sample_01.txt AC 95 ms 19796 KB
sample_02.txt AC 91 ms 17492 KB
sample_03.txt AC 89 ms 19668 KB
subtask_1_01.txt AC 90 ms 21844 KB
subtask_1_02.txt AC 88 ms 19796 KB
subtask_1_03.txt AC 90 ms 21588 KB
subtask_1_04.txt AC 88 ms 20948 KB
subtask_1_05.txt AC 89 ms 19796 KB
subtask_1_06.txt AC 89 ms 20692 KB
subtask_1_07.txt AC 93 ms 21844 KB