結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-27 19:27:05 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 1,010 ms |
| コンパイル使用メモリ | 179,928 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-05-12 04:20:31 |
| 合計ジャッジ時間 | 3,472 ms |
|
ジャッジサーバーID (参考情報) |
tmp-judge_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 RE * 17 |
ソースコード
#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;
}