結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-27 06:43:15 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 295 bytes |
| コンパイル時間 | 471 ms |
| コンパイル使用メモリ | 63,764 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-05 08:49:20 |
| 合計ジャッジ時間 | 1,241 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
char c;
cin >> s;
for (int i = 0; i < (int)s.size(); i++){
c = s[i];
if (isupper(c)){
s[i] = tolower(c);
} else {
s[i] = toupper(c);
}
}
cout << s << endl;
return 0;
}