結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
machy
|
| 提出日時 | 2015-06-11 12:24:15 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 397 bytes |
| 記録 | |
| コンパイル時間 | 413 ms |
| コンパイル使用メモリ | 78,516 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-28 05:22:44 |
| 合計ジャッジ時間 | 1,104 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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