結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-06-25 17:31:00 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 5,000 ms |
| コード長 | 1,227 bytes |
| コンパイル時間 | 1,283 ms |
| コンパイル使用メモリ | 104,192 KB |
| 実行使用メモリ | 17,536 KB |
| 最終ジャッジ日時 | 2024-06-23 03:01:30 |
| 合計ジャッジ時間 | 2,121 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.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);
}
}
}
funakoshi