結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
SAIKI_R_A
|
| 提出日時 | 2019-07-11 17:39:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 411 bytes |
| コンパイル時間 | 593 ms |
| コンパイル使用メモリ | 63,616 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 00:08:12 |
| 合計ジャッジ時間 | 1,327 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(void)
{
const int big_small='a'-'A';
string s;
cin>>s;
for(int i=0;i<s.size();i++)
{
if(s[i]>='a')
{
char tmp=s[i]-big_small;
cout<<tmp;
}
else
{
char tmp=s[i]+big_small;
cout<<tmp;
}
}
cout<<endl;
}
SAIKI_R_A