結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
kosakkun
|
| 提出日時 | 2017-05-09 17:25:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 661 bytes |
| コンパイル時間 | 890 ms |
| コンパイル使用メモリ | 82,564 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-14 20:02:22 |
| 合計ジャッジ時間 | 1,590 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <sstream>
#include <cmath>
#include <set>
using namespace std;
#define REP(i,n) for(int (i)=0;(i)<(int)(n);(i)++)
#define REMOVE(Itr,n) (Itr).erase(remove((Itr).begin(),(Itr).end(),n),(Itr).end())
#define PB_VEC(Itr1,Itr2) (Itr1).insert((Itr1).end(),(Itr2).begin(),(Itr2).end())
typedef long long ll;
int main(){
string s; cin >> s;
REP(i,s.size()) {
if(s[i] >= 'a' && s[i] <= 'z') s[i] = 'A' + (s[i] - 'a');
else s[i] = 'a' + (s[i] - 'A');
}
cout << s << endl;
return 0;
}
kosakkun