結果

問題 No.163 cAPSlOCK
コンテスト
ユーザー HIROPON87069639
提出日時 2016-02-14 17:08:59
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 77,752 KB
最終ジャッジ日時 2025-12-03 19:21:30
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# -*- coding: utf-8 -*-
def ch(password):
    N = len(password)
    sep = list(password)
    for i in range(0, N):
        if sep[i].islower():
            sep[i] = sep[i].upper()
        elif sep[i].isupper():
            sep[i] = sep[i].lower()
    return "".join(sep)


password = raw_input()
print ch(password)
0