結果

問題 No.163 cAPSlOCK
ユーザー laneguelanegue
提出日時 2020-04-01 08:29:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 50 ms / 5,000 ms
コード長 416 bytes
コンパイル時間 830 ms
コンパイル使用メモリ 61,064 KB
実行使用メモリ 22,604 KB
最終ジャッジ日時 2023-09-08 10:03:54
合計ジャッジ時間 3,055 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
20,384 KB
testcase_01 AC 48 ms
22,420 KB
testcase_02 AC 49 ms
22,360 KB
testcase_03 AC 50 ms
20,492 KB
testcase_04 AC 49 ms
22,532 KB
testcase_05 AC 49 ms
22,412 KB
testcase_06 AC 49 ms
20,396 KB
testcase_07 AC 50 ms
22,476 KB
testcase_08 AC 49 ms
22,528 KB
testcase_09 AC 49 ms
20,440 KB
testcase_10 AC 49 ms
20,540 KB
testcase_11 AC 48 ms
20,356 KB
testcase_12 AC 48 ms
20,460 KB
testcase_13 AC 48 ms
22,604 KB
testcase_14 AC 48 ms
20,388 KB
testcase_15 AC 49 ms
20,616 KB
testcase_16 AC 49 ms
20,376 KB
testcase_17 AC 48 ms
20,444 KB
testcase_18 AC 48 ms
20,404 KB
testcase_19 AC 48 ms
22,424 KB
testcase_20 AC 48 ms
20,396 KB
testcase_21 AC 47 ms
20,472 KB
testcase_22 AC 49 ms
20,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
public class Program
{
    static void Main()
    {
        string s = Console.ReadLine();
        for (int i = 0; i < s.Length; i++)
        {
            if (Char.IsLower(s, i))
            {
                Console.Write(Char.ToUpper(s[i]));
            }
            else
            {
                Console.Write(Char.ToLower(s[i]));
            }
        }
        Console.WriteLine();
    }
}
0