結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2015-08-27 21:04:31 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 328 bytes |
| 記録 | |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 74,352 KB |
| 実行使用メモリ | 81,908 KB |
| 最終ジャッジ日時 | 2026-04-02 08:53:51 |
| 合計ジャッジ時間 | 1,202 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
int main() {
std::string password;
std::cin >> password;
for (int i = 0; i < password.length(); i++) {
if (password[i] >= 'A' && password[i] <= 'Z') {
password[i] += 32;
}
else {
password[i] -= 32;
}
}
std::cout << password << std::endl;
return 0;
}
hanorver