結果

問題 No.163 cAPSlOCK
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 15:34:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 454 bytes
コンパイル時間 2,474 ms
コンパイル使用メモリ 104,124 KB
実行使用メモリ 23,492 KB
最終ジャッジ日時 2023-09-25 12:48:54
合計ジャッジ時間 4,843 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
23,344 KB
testcase_01 AC 52 ms
21,304 KB
testcase_02 AC 52 ms
21,448 KB
testcase_03 AC 52 ms
23,352 KB
testcase_04 AC 52 ms
21,340 KB
testcase_05 AC 52 ms
23,476 KB
testcase_06 AC 52 ms
21,452 KB
testcase_07 AC 54 ms
21,232 KB
testcase_08 AC 53 ms
21,324 KB
testcase_09 AC 55 ms
21,348 KB
testcase_10 AC 53 ms
23,376 KB
testcase_11 AC 53 ms
23,364 KB
testcase_12 AC 53 ms
23,492 KB
testcase_13 AC 53 ms
21,472 KB
testcase_14 AC 52 ms
19,260 KB
testcase_15 AC 53 ms
21,472 KB
testcase_16 AC 53 ms
21,488 KB
testcase_17 AC 53 ms
23,288 KB
testcase_18 AC 53 ms
23,356 KB
testcase_19 AC 52 ms
23,372 KB
testcase_20 AC 53 ms
21,452 KB
testcase_21 AC 52 ms
21,308 KB
testcase_22 AC 53 ms
21,356 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    public void Solve()
    {
        char[] S = Console.ReadLine().ToArray();

        for (int i = 0; i < S.Length; i++)
        {
            if (char.IsUpper(S[i])) { S[i] = char.ToLower(S[i]); }
            else { S[i] = char.ToUpper(S[i]); }
        }
        Console.WriteLine(new String(S));
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0