結果
問題 | No.400 鏡 |
ユーザー |
![]() |
提出日時 | 2023-05-09 15:43:01 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 861 bytes |
コンパイル時間 | 9,179 ms |
コンパイル使用メモリ | 168,524 KB |
実行使用メモリ | 182,656 KB |
最終ジャッジ日時 | 2024-11-26 02:18:51 |
合計ジャッジ時間 | 10,699 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (93 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.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]);}}}}