結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-10 21:01:34 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 5,000 ms |
| コード長 | 457 bytes |
| コンパイル時間 | 15,157 ms |
| コンパイル使用メモリ | 170,676 KB |
| 実行使用メモリ | 184,608 KB |
| 最終ジャッジ日時 | 2025-11-10 21:01:52 |
| 合計ジャッジ時間 | 11,295 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (103 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using System.Collections.Generic;
using System.Text;
class Program
{
static void Main()
{
var line = Console.ReadLine().ToCharArray();
foreach(var s in line)
{
int num = (int)s;
if(num > 90)
{
Console.Write((char)(num - 32));
}
else
{
Console.Write((char)(num + 32));
}
}
}
}