結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2015-03-12 23:23:16 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 512 ms |
コンパイル使用メモリ | 68,672 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-24 20:00:37 |
合計ジャッジ時間 | 1,289 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include<cstdio> #include<cmath> #include<iostream> #include<algorithm> #include<queue> using namespace std; int main(){ string str; cin >> str; for(int i=0;i<str.size();i++){ if(95<=str[i]) str[i]-=32; else str[i]+=32; } cout << str << endl; return 0; }