Submission #523404


Source Code Expand

Copy
using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;


class Program {
	static int[] oya;
	static void Main(string[] args) {


		char[] cs = new char[] { ' ', ',' };
		//int[] vals = parseAry(Console.ReadLine().Split(cs));
		//int val = int.Parse(Console.ReadLine());
		//string str = Console.ReadLine();
		//string[] strs = Console.ReadLine().Split(cs);

		//int[] vals = parseAry(Console.ReadLine().Split(cs));
		//int n = vals[0];
		//int res=0;

		string[] strs = Console.ReadLine().Split(cs);





		int n = strs.Length;

		string res = "";

		for (int i = 0; i < n; i++) {

			if (strs[i] == "Left") { res += "< "; }
			if (strs[i] == "Right") { res += "> "; }
			if (strs[i] == "AtCoder") { res += "A "; }
		}

		res = res.Remove(res.Length-1, 1);

		//score[i] = int.Parse(Console.ReadLine());
		Console.WriteLine(res);

		return;
	}



	// String[]をint[]に変換
	static int[] parseAry(string[] str) {
		int[] nums = new int[str.Length];
		for (int i = 0; i < str.Length; i++) { nums[i] = int.Parse(str[i]); }
		return nums;
	}


	//文字列を1文字ずつString[]に入れる
	static string[] strAry(String str) {
		string[] re = new string[str.Length];
		for (int i = 0; i < str.Length; i++) { re[i] = str[i].ToString(); }
		return re;
	}

}

Submission Info

Submission Time
Task A - スペース高橋君
User Rainin
Language C# (Mono 3.2.1.0)
Score 100
Code Size 1355 Byte
Status AC
Exec Time 110 ms
Memory 8624 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 14
Set Name Test Cases
Sample example_0.txt, example_1.txt, example_2.txt
All 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 AC 107 ms 8624 KB
corner_1.txt AC 108 ms 8580 KB
corner_2.txt AC 108 ms 8592 KB
example_0.txt AC 106 ms 8616 KB
example_1.txt AC 107 ms 8580 KB
example_2.txt AC 107 ms 8572 KB
maxrand_0.txt AC 107 ms 8496 KB
maxrand_1.txt AC 110 ms 8596 KB
maxrand_2.txt AC 105 ms 8564 KB
random_0.txt AC 107 ms 8496 KB
random_1.txt AC 106 ms 8496 KB
random_2.txt AC 107 ms 8492 KB
random_3.txt AC 108 ms 8548 KB
random_4.txt AC 107 ms 8576 KB