結果
問題 | No.163 cAPSlOCK |
ユーザー | funakoshi |
提出日時 | 2019-06-25 17:31:00 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 51 ms / 5,000 ms |
コード長 | 1,227 bytes |
コンパイル時間 | 3,393 ms |
コンパイル使用メモリ | 103,676 KB |
実行使用メモリ | 22,648 KB |
最終ジャッジ日時 | 2023-09-05 06:43:53 |
合計ジャッジ時間 | 5,990 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 49 ms
18,448 KB |
testcase_01 | AC | 49 ms
18,412 KB |
testcase_02 | AC | 50 ms
20,488 KB |
testcase_03 | AC | 50 ms
20,600 KB |
testcase_04 | AC | 51 ms
22,468 KB |
testcase_05 | AC | 50 ms
20,444 KB |
testcase_06 | AC | 50 ms
18,528 KB |
testcase_07 | AC | 49 ms
20,680 KB |
testcase_08 | AC | 49 ms
20,452 KB |
testcase_09 | AC | 49 ms
18,468 KB |
testcase_10 | AC | 50 ms
20,524 KB |
testcase_11 | AC | 50 ms
20,436 KB |
testcase_12 | AC | 50 ms
22,520 KB |
testcase_13 | AC | 50 ms
22,524 KB |
testcase_14 | AC | 50 ms
22,548 KB |
testcase_15 | AC | 50 ms
20,656 KB |
testcase_16 | AC | 50 ms
20,504 KB |
testcase_17 | AC | 51 ms
20,540 KB |
testcase_18 | AC | 50 ms
20,556 KB |
testcase_19 | AC | 51 ms
20,676 KB |
testcase_20 | AC | 50 ms
22,648 KB |
testcase_21 | AC | 49 ms
20,448 KB |
testcase_22 | AC | 50 ms
20,520 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string[] bigabc = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" }; string[] smallabc = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" }; string pass = ""; for(int i=0;i<input.Length;i++) { string temp = input.Substring(i, 1); for(int j=0;j<bigabc.Length;j++) { if(temp==bigabc[j]) { pass = pass + smallabc[j]; break; } else if(temp==smallabc[j]) { pass = pass + bigabc[j]; break; } } } Console.WriteLine(pass); } } }