結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
machy
|
| 提出日時 | 2015-06-11 12:24:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 397 bytes |
| コンパイル時間 | 514 ms |
| コンパイル使用メモリ | 59,756 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-06 15:34:25 |
| 合計ジャッジ時間 | 1,327 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
typedef long long LL;
int main(){
string s;
cin >> s;
for(int i = 0; i < s.size(); i++){
if('A' <= s[i] && s[i] <= 'Z'){
cout << (char)(s[i] - 'A' + 'a');
}else{
cout << (char)(s[i] - 'a' + 'A');
}
}
cout << endl;
return 0;
}
machy