結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
gedy01221406
|
| 提出日時 | 2019-10-09 22:14:58 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 325 bytes |
| コンパイル時間 | 863 ms |
| コンパイル使用メモリ | 65,920 KB |
| 最終ジャッジ日時 | 2025-01-07 21:23:18 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <iostream>
//#include <numeric>
//#include <vector>
//#include <cstdint>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = 0; i < str.length(); i++) {
char c = str[i];
if (c < 0x61) {
c = c + 0x20;
}
else {
c = c - 0x20;
}
cout << c;
}
return 0;
}
gedy01221406