結果

問題 No.163 cAPSlOCK
ユーザー AtriaAtria
提出日時 2019-11-10 19:03:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 50 ms / 5,000 ms
コード長 690 bytes
コンパイル時間 750 ms
コンパイル使用メモリ 59,244 KB
実行使用メモリ 22,516 KB
最終ジャッジ日時 2023-10-13 07:50:28
合計ジャッジ時間 3,088 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
20,484 KB
testcase_01 AC 49 ms
20,484 KB
testcase_02 AC 50 ms
20,524 KB
testcase_03 AC 47 ms
20,440 KB
testcase_04 AC 49 ms
20,468 KB
testcase_05 AC 49 ms
20,556 KB
testcase_06 AC 48 ms
20,552 KB
testcase_07 AC 50 ms
20,476 KB
testcase_08 AC 48 ms
22,472 KB
testcase_09 AC 49 ms
20,488 KB
testcase_10 AC 48 ms
22,508 KB
testcase_11 AC 47 ms
18,440 KB
testcase_12 AC 48 ms
20,600 KB
testcase_13 AC 47 ms
20,500 KB
testcase_14 AC 47 ms
20,428 KB
testcase_15 AC 48 ms
22,500 KB
testcase_16 AC 48 ms
22,516 KB
testcase_17 AC 49 ms
20,648 KB
testcase_18 AC 49 ms
20,592 KB
testcase_19 AC 48 ms
20,500 KB
testcase_20 AC 47 ms
20,656 KB
testcase_21 AC 47 ms
20,500 KB
testcase_22 AC 46 ms
20,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;

namespace CP
{
    class Atria
    {
        static void Main(string[] args)
        {
            string s = ReadLine();
            var sb = new StringBuilder();
            for (int i = 0; i < s.Length; i++)
            {
                if (char.IsUpper(s[i]))
                {
                    sb.Append(char.ToLower(s[i]));
                }
                else
                {
                    sb.Append(char.ToUpper(s[i]));
                }
            }
            WriteLine(sb.ToString());

        }
    }
}
0