結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
tenkyu9
|
| 提出日時 | 2017-11-27 02:27:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 536 bytes |
| コンパイル時間 | 635 ms |
| コンパイル使用メモリ | 85,084 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 11:56:27 |
| 合計ジャッジ時間 | 1,347 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include<random>
#include<ctime>
#include<cstdlib>
using namespace std;
int main(){
string s;
string abc="abcdefghijklmnopqrstuvwxyz";
string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
cin >> s;
for(int i=0; i<s.size(); i++){
for(int j=0; j<26; j++){
if(s[i]==abc[j]){
s[i]=ABC[j];
} else if(s[i]==ABC[j]){
s[i]=abc[j];
}
}
}
cout << s << endl;
return 0;
}
tenkyu9