結果

問題 No.163 cAPSlOCK
ユーザー HIROPON87069639
提出日時 2016-02-14 17:08:59
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 50 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 06:31:16
合計ジャッジ時間 1,046 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- 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