Submission #523895


Source Code Expand

Copy
import java.util.*;

public class Main {

    static final String IN_LEFT = "Left";
    static final  String IN_RIGHT = "Right";
    static final  String IN_ATCODER = "AtCoder";

    static final  String OUT_LEFT = "<";
    static final  String OUT_RIGHT = ">";
    static final  String OUT_ATCODER = "A";


    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        String out = "";
        while (sc.hasNext()){
            String in = sc.next();

            switch (in){
                case IN_LEFT:
                    out += OUT_LEFT;
                    break;
                case IN_RIGHT:
                    out += OUT_RIGHT;
                    break;
                case IN_ATCODER:
                    out += OUT_ATCODER;
                    break;
            }

            if (sc.hasNext()) out+= " ";

        }
        System.out.println(out);

    }

}

Submission Info

Submission Time
Task A - スペース高橋君
User oqrusk
Language Java (OpenJDK 1.7.0)
Score 100
Code Size 957 Byte
Status
Exec Time 398 ms
Memory 23928 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 example_0.txt, example_1.txt, example_2.txt
All 100 / 100 corner_0.txt, corner_1.txt, corner_2.txt, example_0.txt, example_1.txt, example_2.txt, maxrand_0.txt, maxrand_1.txt, maxrand_2.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt
Case Name Status Exec Time Memory
corner_0.txt 398 ms 23928 KB
corner_1.txt 373 ms 23820 KB
corner_2.txt 369 ms 23816 KB
example_0.txt 365 ms 23856 KB
example_1.txt 377 ms 23816 KB
example_2.txt 377 ms 23816 KB
maxrand_0.txt 374 ms 23820 KB
maxrand_1.txt 379 ms 23816 KB
maxrand_2.txt 372 ms 23816 KB
random_0.txt 374 ms 23776 KB
random_1.txt 380 ms 23780 KB
random_2.txt 390 ms 23864 KB
random_3.txt 380 ms 23820 KB
random_4.txt 378 ms 23792 KB