結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-01-23 19:24:59 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 317 bytes |
| 記録 | |
| コンパイル時間 | 575 ms |
| コンパイル使用メモリ | 59,384 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 03:42:31 |
| 合計ジャッジ時間 | 1,268 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 20 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
using namespace std;
int main(){
string str;
cin >> str;
for(int i=0;i<str.size();i++){
if(str[i]>='a'&&str[i]<='z') str[i]+=32;
else if(str[i]>='A'&&str[i]<='Z') str[i]-=32;
}
cout << str;
return 0;
}
focus