結果
問題 | No.163 cAPSlOCK |
ユーザー |
|
提出日時 | 2020-10-05 02:05:25 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 281 bytes |
コンパイル時間 | 581 ms |
コンパイル使用メモリ | 67,764 KB |
最終ジャッジ日時 | 2025-01-15 02:47:44 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include<iostream> #include<string> using namespace std; int main(){ string S1; cin >> S1; for(int i = 0; i <S1.length();i++){ if(isupper(S1[i])) S1[i] = tolower(S1[i]); else S1[i] = toupper(S1[i]);; } cout << S1 << endl; return 0; }