結果

問題 No.163 cAPSlOCK
ユーザー maicune
提出日時 2019-08-27 19:27:05
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 270 bytes
コンパイル時間 1,270 ms
コンパイル使用メモリ 160,200 KB
実行使用メモリ 10,144 KB
最終ジャッジ日時 2024-11-17 00:31:03
合計ジャッジ時間 10,495 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 RE * 16 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s,t,ans;
    cin>>s;
    transform(s.begin(),s.end(),t.begin(),::toupper);
    for(int i=0;i<s.size();++i){
        if(s[i]==t[i])ans+=tolower(t[i]);
        else ans+=t[i];
    }
    cout<<ans<<endl;
}
0