結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2015-03-12 23:25:57 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 489 bytes |
コンパイル時間 | 735 ms |
コンパイル使用メモリ | 68,692 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-24 20:34:17 |
合計ジャッジ時間 | 1,540 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <cstdio> #include <cmath> #include <iostream> #include <vector> #include <list> #include <algorithm> int main() { /* default begin */ long i, j, k; long n, m; //long temp; long t; std::vector<long> v; bool b; /* default end */ std::string str; std::cin >> str; for(i = 0; i < str.length(); i++) { if( str[i] <= 'Z') { str[i] += 'a' - 'A'; } else { str[i] -= 'a' - 'A'; } } std::cout << str << std::endl; return 0; }