結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
iodo_shiba
|
| 提出日時 | 2018-08-08 14:49:21 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 481 bytes |
| コンパイル時間 | 427 ms |
| コンパイル使用メモリ | 58,612 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 15:12:39 |
| 合計ジャッジ時間 | 1,250 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.cpp: In lambda function:
main.cpp:17:9: warning: control reaches end of non-void function [-Wreturn-type]
17 | });
| ^
ソースコード
#include<iostream>
#include<cctype>
#include<string>
#include<algorithm>
int main(){
std::string intention;
std::cin >> intention;
std::transform(intention.begin(),intention.end(),intention.begin(),
[](char c)->char{
if(std::isupper(c)){
return std::tolower(c);
}
else if(std::islower(c)){
return std::toupper(c);
}
});
std::cout<<intention<<std::endl;
return 0;
}
iodo_shiba