結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-03-05 11:18:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 233 bytes |
| コンパイル時間 | 457 ms |
| コンパイル使用メモリ | 56,856 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 14:15:15 |
| 合計ジャッジ時間 | 1,277 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin>>s;
for(int i=0;i<s.size();i++){
if(s[i]>='a'&&s[i]<='z') cout<<(char)(s[i]-'a'+'A');
else cout<<(char)(s[i]-'A'+'a');
}
cout<<endl;
}
kongarishisyamo