結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
No
|
| 提出日時 | 2015-04-19 09:55:35 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 5,000 ms |
| + 35µs | |
| コード長 | 643 bytes |
| 記録 | |
| コンパイル時間 | 1,803 ms |
| コンパイル使用メモリ | 103,296 KB |
| 実行使用メモリ | 18,304 KB |
| 最終ジャッジ日時 | 2026-08-06 18:14:39 |
| 合計ジャッジ時間 | 2,174 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 Programming
{
class Program
{
static void Main(string[] args)
{
string S = Console.ReadLine();
string str = "";
for (int i = 0; i < S.Length; i++)
{
if(char.IsUpper(S,i)){
str += S.Substring(i, 1).ToLower();
}
else
{
str += S.Substring(i, 1).ToUpper();
}
}
Console.WriteLine(str);
}
}
}
No