結果

問題 No.163 cAPSlOCK
コンテスト
ユーザー object1234
提出日時 2026-02-05 18:42:22
言語 Python3
(3.14.3 + numpy 2.4.2 + scipy 1.17.0)
結果
AC  
実行時間 160 ms / 5,000 ms
コード長 157 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,514 ms
コンパイル使用メモリ 20,684 KB
実行使用メモリ 15,484 KB
最終ジャッジ日時 2026-02-05 18:42:29
合計ジャッジ時間 5,827 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

string = input()
result = ""
for s in string:
    if s.islower():
        result += s.upper()
    elif s.isupper():
        result += s.lower()
print(result)
0