結果
問題 | No.1217 せしすせそ |
ユーザー | ccc |
提出日時 | 2022-08-08 12:57:18 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 915 bytes |
コンパイル時間 | 7,232 ms |
コンパイル使用メモリ | 158,012 KB |
実行使用メモリ | 174,872 KB |
最終ジャッジ日時 | 2023-10-19 03:25:53 |
合計ジャッジ時間 | 8,743 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 59 ms
29,212 KB |
testcase_01 | AC | 58 ms
29,212 KB |
testcase_02 | AC | 58 ms
29,212 KB |
testcase_03 | AC | 60 ms
29,212 KB |
testcase_04 | AC | 58 ms
29,212 KB |
testcase_05 | AC | 59 ms
29,212 KB |
testcase_06 | AC | 59 ms
29,212 KB |
testcase_07 | AC | 58 ms
29,212 KB |
testcase_08 | AC | 58 ms
29,212 KB |
testcase_09 | AC | 58 ms
29,212 KB |
testcase_10 | AC | 58 ms
29,212 KB |
testcase_11 | AC | 60 ms
29,212 KB |
testcase_12 | AC | 60 ms
174,872 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (100 ms)。 MSBuild のバージョン 17.7.3+8ec440e68 (.NET) main -> /home/judge/data/code/bin/Release/net7.0/main.dll main -> /home/judge/data/code/bin/Release/net7.0/publish/
ソースコード
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var inpAlph = Console.ReadLine(); var charNotAlph = new List<char>(); var charAlph = new List<char>(); var result = new List<char>(); foreach(var x in "abcdefghijklmnopqrstuvwxyz") { if (inpAlph.Contains(x)) { continue; } else { charNotAlph.Add(x); } } foreach(var i in inpAlph) { if (charAlph.Contains(i)) { result.Add(i); } else { charAlph.Add(i); } } string S = String.Join("", result); string T = String.Join("", charNotAlph); Console.WriteLine($"{T}to{S}"); } }