結果

問題 No.163 cAPSlOCK
ユーザー moon17moon17
提出日時 2022-05-14 18:03:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 174 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 71,424 KB
最終ジャッジ日時 2023-09-30 09:59:22
合計ジャッジ時間 3,381 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,352 KB
testcase_01 AC 76 ms
71,392 KB
testcase_02 AC 74 ms
71,088 KB
testcase_03 AC 74 ms
71,228 KB
testcase_04 AC 77 ms
71,168 KB
testcase_05 AC 77 ms
71,048 KB
testcase_06 AC 77 ms
71,080 KB
testcase_07 AC 76 ms
71,232 KB
testcase_08 AC 77 ms
71,172 KB
testcase_09 AC 76 ms
71,272 KB
testcase_10 AC 76 ms
71,184 KB
testcase_11 AC 77 ms
71,356 KB
testcase_12 AC 78 ms
71,156 KB
testcase_13 AC 77 ms
71,396 KB
testcase_14 AC 75 ms
71,424 KB
testcase_15 AC 77 ms
71,080 KB
testcase_16 AC 77 ms
71,292 KB
testcase_17 AC 76 ms
71,072 KB
testcase_18 AC 76 ms
71,224 KB
testcase_19 AC 77 ms
71,140 KB
testcase_20 AC 77 ms
71,360 KB
testcase_21 AC 75 ms
71,268 KB
testcase_22 AC 76 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = ""

d = ord('a')-ord('A')
for i in range(len(S)):
    j = ord(S[i])
    if j>=ord('a'):
        ans += chr(j-d)
    else:
        ans += chr(j+d)
print(ans)
0