結果

問題 No.400 鏡
ユーザー CroweaCrowea
提出日時 2019-01-24 15:19:15
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 400 bytes
コンパイル時間 816 ms
コンパイル使用メモリ 63,336 KB
実行使用メモリ 22,536 KB
最終ジャッジ日時 2023-10-14 09:38:43
合計ジャッジ時間 2,185 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
22,504 KB
testcase_01 AC 50 ms
22,512 KB
testcase_02 AC 49 ms
20,412 KB
testcase_03 AC 50 ms
22,444 KB
testcase_04 AC 50 ms
20,448 KB
testcase_05 AC 50 ms
22,536 KB
testcase_06 AC 50 ms
22,476 KB
testcase_07 AC 50 ms
20,572 KB
testcase_08 AC 50 ms
22,444 KB
testcase_09 AC 49 ms
20,560 KB
testcase_10 AC 50 ms
22,424 KB
testcase_11 AC 48 ms
18,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

class Program
{
    const char L_Arrow = '<';
    const char R_Arrow = '>';
    static void Main(string[] args)
    {
        var input = Console.ReadLine().ToCharArray();
        Array.Reverse(input);
        for (int i=0; i<input.Length; i++)
        {
            input[i] = (input[i] == L_Arrow) ? R_Arrow : L_Arrow;
        }
        Console.WriteLine(new string(input));
    }
}
0