結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-30 10:16:12 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 329 ms / 5,000 ms |
| コード長 | 557 bytes |
| コンパイル時間 | 8,733 ms |
| コンパイル使用メモリ | 171,836 KB |
| 実行使用メモリ | 190,508 KB |
| 最終ジャッジ日時 | 2025-10-30 10:16:31 |
| 合計ジャッジ時間 | 17,653 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (112 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string inputPass = Console.ReadLine()!;
List<char> output = new List<char>();
foreach (char c in inputPass)
{
if (char.IsUpper(c))
{
output.Add(char.ToLower(c));
}
else
{
output.Add(char.ToUpper(c));
}
}
for (int i = 0; i < output.Count; i++)
{
Console.Write(output[i]);
}
Console.WriteLine();
}
}