結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
![]() |
提出日時 | 2016-12-21 16:48:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 426 bytes |
コンパイル時間 | 568 ms |
コンパイル使用メモリ | 66,924 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 12:27:31 |
合計ジャッジ時間 | 1,462 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <iostream> #include <cstdio> #include <string> #include <algorithm> using namespace std; int main() { string S; cin>>S; string L("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); string s("abcdefghijklmnopqrstuvwxyz"); for(int i=0;i<S.size();i++){ for(int j=0;j<L.size();j++){ if(S[i]==L[j]){ S[i]=s[j]; break; }else if(S[i]==s[j]){ S[i]=L[j]; break; } } cout<<S[i]; } cout<<endl; return 0; }