提出 #523299
ソースコード 拡げる
using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program
{
static void Main(string[] args)
{
string[] s = io.r<string>(' ');
for (int i = 0; i < s.Count(); i++)
{
if (s[i] == "Left")
{
s[i] = "<";
}
else if (s[i] == "Right")
{
s[i] = ">";
}
else if (s[i] =="AtCoder")
{
s[i] = "A";
}
}
io.w(string.Join(" ", s));
io.wflush();
}
}
namespace LIB
{
public class io
{
private const int WMAX = 1000;
private static StringBuilder S = new StringBuilder();
public static T r<T>() { return util.parse<T>(r()); }
public static T[] r<T>(char s = ' ') { return r().Split(s).Select(util.parse<T>).ToArray(); }
public static T[] r<T>(int l) { T[] r = new T[l]; for (int i = 0; i < l; i++) { r[i] = r<T>(); } return r; }
public static T[][] r<T>(int l, char s = ' ') { T[][] r = new T[l][]; for (int i = 0; i < l; i++) { r[i] = r<T>(s); } return r; }
private static string r() { return Console.ReadLine(); }
public static void w(object v, bool lf = true) { S.Append(util.parse<string>(v)); if (lf == true) { S.Append('\n'); } if (S.Length >= WMAX) { wflush(); } }
public static void wflush() { Console.Write(S.ToString()); S.Length = 0; }
}
public class util
{
public static T parse<T>(object value) { return (T)(Convert.ChangeType(value, typeof(T))); }
}
public class memo<Key, Result>
{
private Dictionary<Key, Result> R;
public memo() { R = new Dictionary<Key, Result>(); }
public Result exec(Key k, Func<Key, Result> f) { Result r; if (R.ContainsKey(k)) { r = R[k]; } else { r = f(k); R.Add(k, r); } return r; }
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - スペース高橋君 |
| ユーザ | nokonoko |
| 言語 | C# (Mono 3.2.1.0) |
| 得点 | 100 |
| コード長 | 1973 Byte |
| 結果 | AC |
| 実行時間 | 129 ms |
| メモリ | 10036 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| corner_0.txt | AC | 123 ms | 10032 KiB |
| corner_1.txt | AC | 121 ms | 9992 KiB |
| corner_2.txt | AC | 120 ms | 10012 KiB |
| example_0.txt | AC | 121 ms | 10004 KiB |
| example_1.txt | AC | 124 ms | 10032 KiB |
| example_2.txt | AC | 120 ms | 10020 KiB |
| maxrand_0.txt | AC | 122 ms | 10036 KiB |
| maxrand_1.txt | AC | 129 ms | 9976 KiB |
| maxrand_2.txt | AC | 126 ms | 10024 KiB |
| random_0.txt | AC | 123 ms | 10028 KiB |
| random_1.txt | AC | 129 ms | 10020 KiB |
| random_2.txt | AC | 121 ms | 10020 KiB |
| random_3.txt | AC | 119 ms | 10020 KiB |
| random_4.txt | AC | 120 ms | 9980 KiB |