結果
問題 | No.163 cAPSlOCK |
ユーザー | Hidetoshi Kamata |
提出日時 | 2022-05-06 17:18:18 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 438 ms / 5,000 ms |
コード長 | 583 bytes |
コンパイル時間 | 9,744 ms |
コンパイル使用メモリ | 144,324 KB |
実行使用メモリ | 164,224 KB |
最終ジャッジ日時 | 2023-09-19 06:29:41 |
合計ジャッジ時間 | 21,483 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 436 ms
30,364 KB |
testcase_01 | AC | 436 ms
30,312 KB |
testcase_02 | AC | 435 ms
32,272 KB |
testcase_03 | AC | 436 ms
30,244 KB |
testcase_04 | AC | 435 ms
30,372 KB |
testcase_05 | AC | 435 ms
30,472 KB |
testcase_06 | AC | 435 ms
30,492 KB |
testcase_07 | AC | 435 ms
30,564 KB |
testcase_08 | AC | 438 ms
30,492 KB |
testcase_09 | AC | 437 ms
30,292 KB |
testcase_10 | AC | 435 ms
30,052 KB |
testcase_11 | AC | 438 ms
30,240 KB |
testcase_12 | AC | 437 ms
29,948 KB |
testcase_13 | AC | 437 ms
29,860 KB |
testcase_14 | AC | 436 ms
29,988 KB |
testcase_15 | AC | 433 ms
32,068 KB |
testcase_16 | AC | 435 ms
32,200 KB |
testcase_17 | AC | 434 ms
32,220 KB |
testcase_18 | AC | 437 ms
30,348 KB |
testcase_19 | AC | 437 ms
30,240 KB |
testcase_20 | AC | 437 ms
30,464 KB |
testcase_21 | AC | 437 ms
30,228 KB |
testcase_22 | AC | 435 ms
164,224 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 132 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/
ソースコード
using System; using System.Text; class Program { static void Main(string[] args) { var inputString = Console.ReadLine(); var inputArray = inputString.ToCharArray(); var outputString = new StringBuilder(); foreach (var c in inputArray) { if (char.IsUpper(c)) { outputString.Append(c.ToString().ToLower()); } else { outputString.Append(c.ToString().ToUpper()); } } Console.WriteLine(outputString.ToString()); } }