結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
nenuon
|
| 提出日時 | 2017-02-27 18:39:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 644 bytes |
| コンパイル時間 | 529 ms |
| コンパイル使用メモリ | 79,068 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-11 19:41:27 |
| 合計ジャッジ時間 | 1,175 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
using namespace std;
#define ll long long
#define PI acos(-1.0)
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
int main(){
string s;
getline(cin, s);
//小文字を大文字に大文字を小文字に
FOR(i, 0, s.length()){
if(isupper(s[i])) s[i] = tolower(s[i]);
else if(islower(s[i])) s[i] = toupper(s[i]);
}
cout << s << endl;
}
nenuon