結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-20 16:09:05 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 5,000 ms |
| コード長 | 407 bytes |
| コンパイル時間 | 1,419 ms |
| コンパイル使用メモリ | 102,656 KB |
| 実行使用メモリ | 17,408 KB |
| 最終ジャッジ日時 | 2024-11-22 16:36:30 |
| 合計ジャッジ時間 | 2,526 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
public class Program
{
static void Main()
{
string S = Console.ReadLine();
char[] S_ = S.ToCharArray();
string W = "";
for (int i = 0; i < S_.Length; i++)
{
if (char.IsUpper(S_[i]))
{
S_[i] = char.ToLower(S_[i]);
}
else
{
S_[i] = char.ToUpper(S_[i]);
}
}
W = new string(S_);
Console.WriteLine(W);
}
}