Submission #523316


Source Code Expand

Copy
import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.regex : regex;
import std.container;
import std.bigint;


void main()
{
  auto str = readln.chomp.split;
  string[] res;
  foreach (s; str) {
    auto c = s[0];
    if (c == 'L') res ~= "<";
    else if (c == 'R') res ~= ">";
    else res ~= "A";
  }
  res.join(" ").writeln;
}

Submission Info

Submission Time
Task A - スペース高橋君
User Fuh
Language D (DMD 2.066.1)
Score 100
Code Size 462 Byte
Status
Exec Time 29 ms
Memory 932 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 776 KB
corner_1.txt 27 ms 932 KB
corner_2.txt 26 ms 804 KB
example_0.txt 27 ms 928 KB
example_1.txt 25 ms 800 KB
example_2.txt 29 ms 840 KB
maxrand_0.txt 26 ms 928 KB
maxrand_1.txt 27 ms 800 KB
maxrand_2.txt 27 ms 804 KB
random_0.txt 25 ms 916 KB
random_1.txt 28 ms 796 KB
random_2.txt 26 ms 924 KB
random_3.txt 27 ms 796 KB
random_4.txt 28 ms 728 KB