結果

問題 No.163 cAPSlOCK
ユーザー cccccc
提出日時 2022-07-14 17:44:06
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 437 ms / 5,000 ms
コード長 425 bytes
コンパイル時間 9,779 ms
コンパイル使用メモリ 143,520 KB
実行使用メモリ 165,588 KB
最終ジャッジ日時 2023-09-08 08:14:45
合計ジャッジ時間 21,306 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 431 ms
30,792 KB
testcase_01 AC 429 ms
30,956 KB
testcase_02 AC 431 ms
30,860 KB
testcase_03 AC 431 ms
30,768 KB
testcase_04 AC 429 ms
30,848 KB
testcase_05 AC 430 ms
30,596 KB
testcase_06 AC 432 ms
32,204 KB
testcase_07 AC 429 ms
30,956 KB
testcase_08 AC 428 ms
29,948 KB
testcase_09 AC 434 ms
30,772 KB
testcase_10 AC 434 ms
30,944 KB
testcase_11 AC 436 ms
30,772 KB
testcase_12 AC 431 ms
30,628 KB
testcase_13 AC 437 ms
30,456 KB
testcase_14 AC 430 ms
30,740 KB
testcase_15 AC 431 ms
30,788 KB
testcase_16 AC 433 ms
30,648 KB
testcase_17 AC 436 ms
32,860 KB
testcase_18 AC 432 ms
30,836 KB
testcase_19 AC 430 ms
30,704 KB
testcase_20 AC 432 ms
30,956 KB
testcase_21 AC 432 ms
30,740 KB
testcase_22 AC 433 ms
165,588 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 160 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/

ソースコード

diff #

using System;
class Program
{
    static void Main()
    {
        var st = Console.ReadLine().ToString();
        var ans = "";

        foreach(var i in st)
        {
            if (char.IsUpper(i))
            {
                ans += char.ToLower(i);
            }
            else if (char.IsLower(i))
            {
                ans += char.ToUpper(i);
            }
        }
        Console.WriteLine(ans);
    }
}
0