結果
問題 | No.400 鏡 |
ユーザー | fujita |
提出日時 | 2023-05-09 15:43:01 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 861 bytes |
コンパイル時間 | 9,073 ms |
コンパイル使用メモリ | 146,344 KB |
実行使用メモリ | 162,996 KB |
最終ジャッジ日時 | 2023-08-17 07:27:29 |
合計ジャッジ時間 | 9,827 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 44 ms
26,064 KB |
testcase_01 | AC | 44 ms
26,000 KB |
testcase_02 | AC | 45 ms
27,904 KB |
testcase_03 | AC | 45 ms
26,336 KB |
testcase_04 | AC | 45 ms
26,248 KB |
testcase_05 | AC | 44 ms
26,248 KB |
testcase_06 | AC | 44 ms
25,968 KB |
testcase_07 | AC | 45 ms
26,408 KB |
testcase_08 | AC | 46 ms
26,228 KB |
testcase_09 | AC | 45 ms
26,052 KB |
testcase_10 | AC | 45 ms
26,024 KB |
testcase_11 | AC | 44 ms
162,996 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 127 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System; namespace yukicoder { class Program { static void Main(string[] args) { var str = Console.ReadLine(); string[] strings1= new string[str.Length]; //string[] strings2 = new string[str.Length]; for(int i = 0; i < str.Length; i++) { strings1[i] = str.Substring(i, 1); } for(int j = 0; j < strings1.Length; j++) { if (strings1[j] == "<") { strings1[j] = ">"; } else if (strings1[j] == ">") { strings1[j] = "<"; } } for(int k = strings1.Length - 1; k >= 0; k--) { Console.Write(strings1[k]); } } } }