結果

問題 No.400 鏡
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-06-26 02:05:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 420 bytes
コンパイル時間 2,582 ms
コンパイル使用メモリ 101,476 KB
実行使用メモリ 22,576 KB
最終ジャッジ日時 2023-09-13 14:03:53
合計ジャッジ時間 3,273 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
18,496 KB
testcase_01 AC 49 ms
22,528 KB
testcase_02 AC 50 ms
18,472 KB
testcase_03 AC 51 ms
22,576 KB
testcase_04 AC 50 ms
20,528 KB
testcase_05 AC 50 ms
20,492 KB
testcase_06 AC 52 ms
20,528 KB
testcase_07 AC 52 ms
20,504 KB
testcase_08 AC 51 ms
22,552 KB
testcase_09 AC 51 ms
20,536 KB
testcase_10 AC 50 ms
20,476 KB
testcase_11 AC 51 ms
22,468 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;
using System.Collections.Generic;

class No400{
    static void Main(){
        var str=Console.ReadLine();
        var list=new List<string>();
        foreach(var c in str){
            if(c=='<')list.Add(">");
            else list.Add("<");
        }
        list.Reverse();
        foreach(var l in list){
          Console.Write(l);  
        }
        Console.WriteLine();
    }
}
0