結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
![]() |
提出日時 | 2019-05-03 17:50:28 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 1,245 ms |
コンパイル使用メモリ | 160,048 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 15:54:48 |
合計ジャッジ時間 | 2,157 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < s.size(); i++) { if (isupper(s.at(i))) { s.at(i) = tolower(s.at(i)); } else if (islower(s.at(i))) { s.at(i) = toupper(s.at(i)); } } cout << s << endl; }