結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2018-02-24 11:35:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 329 bytes |
コンパイル時間 | 509 ms |
コンパイル使用メモリ | 56,164 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-13 04:44:17 |
合計ジャッジ時間 | 1,494 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 20 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { int i; char s[101],ans[101]; cin >> s; for (i = 0; i <= 100; i++) { if (isupper(s[i]) != 0) { ans[i] = toupper(s[i]); } if (islower(s[i]) != 0) { ans[i] = tolower(s[i]); } } cout << ans << "\n"; return 0; }