結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
tntan
|
| 提出日時 | 2015-12-15 05:37:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 346 bytes |
| コンパイル時間 | 717 ms |
| コンパイル使用メモリ | 69,500 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-15 12:59:47 |
| 合計ジャッジ時間 | 1,539 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
#include<fstream>
#include<iomanip>
#include<vector>
#include<cctype>
#include<algorithm>
using namespace std;
int main()
{
string s, t;
cin >> s;
for (int i = 0; i < static_cast<int>(s.size()); i++)
{
if (islower(s[i]))t += toupper(s[i]);
else t += tolower(s[i]);
}
cout << t << endl;
return 0;
}
tntan