Submission #523407


Source Code Expand

Copy
#include <stdio.h>
using namespace std;

const int LENGTH = 10;

int main() {
  bool f = false;
  char str[LENGTH];
  while(true) {
    if(scanf("%s", str) == EOF) {
      break;
    }
    if(f) {
      printf(" ");
    }
    if(str[0] == 'R') {
      printf(">");
    } else if(str[0] == 'L') {
      printf("<");
    } else {
      printf("A");
    }
    f = true;
  }
  printf("\n");
  return 0;
}

Submission Info

Submission Time
Task A - スペース高橋君
User KeiyaSakabe
Language C++11 (GCC 4.9.2)
Score 100
Code Size 428 Byte
Status
Exec Time 29 ms
Memory 804 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 27 ms 692 KB
corner_1.txt 25 ms 804 KB
corner_2.txt 25 ms 796 KB
example_0.txt 25 ms 792 KB
example_1.txt 25 ms 788 KB
example_2.txt 26 ms 788 KB
maxrand_0.txt 25 ms 788 KB
maxrand_1.txt 23 ms 700 KB
maxrand_2.txt 26 ms 796 KB
random_0.txt 23 ms 796 KB
random_1.txt 29 ms 644 KB
random_2.txt 25 ms 660 KB
random_3.txt 24 ms 648 KB
random_4.txt 26 ms 796 KB