Submission #523743


Source Code Expand

Copy
package com.company;

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);

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

            switch (in){
                case IN_LEFT:
                    System.out.print(OUT_LEFT);
                    break;
                case IN_RIGHT:
                    System.out.print(OUT_RIGHT);
                    break;
                case IN_ATCODER:
                    System.out.print(OUT_ATCODER);
                    break;
            }

            if (sc.hasNext()) System.out.print(" ");

        }

    }

}

Submission Info

Submission Time
Task A - スペース高橋君
User oqrusk
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 966 Byte
Status
Exec Time 433 ms
Memory 22452 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 example_0.txt, example_1.txt, example_2.txt
All 0 / 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 355 ms 22412 KB
corner_1.txt 353 ms 22452 KB
corner_2.txt 348 ms 22324 KB
example_0.txt 351 ms 22316 KB
example_1.txt 344 ms 22320 KB
example_2.txt 433 ms 22324 KB
maxrand_0.txt 346 ms 22316 KB
maxrand_1.txt 353 ms 22440 KB
maxrand_2.txt 349 ms 22452 KB
random_0.txt 354 ms 22316 KB
random_1.txt 352 ms 22324 KB
random_2.txt 360 ms 22444 KB
random_3.txt 354 ms 22320 KB
random_4.txt 356 ms 22320 KB