結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2019-11-19 07:50:36 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 24 ms / 5,000 ms |
コード長 | 744 bytes |
コンパイル時間 | 1,069 ms |
コンパイル使用メモリ | 110,324 KB |
実行使用メモリ | 26,760 KB |
最終ジャッジ日時 | 2024-10-03 06:20:35 |
合計ジャッジ時間 | 2,119 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Text; using System.Linq; namespace ConsoleApp11 { class Program { static void Main(string[] args) { string str1; string str2; string S = Console.ReadLine(); S.ToArray(); for(int i = 0; i < S.Length; i++) { if (char.IsLower(S[i])) { str1 = S[i].ToString().ToUpper(); Console.Write(str1); } else if (char.IsUpper(S[i])) { str2 = S[i].ToString().ToLower(); Console.Write(str2); } } Console.WriteLine(); } } }