結果

問題 No.163 cAPSlOCK
ユーザー あかりきあかりき
提出日時 2021-02-09 22:01:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 246 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 82,120 KB
実行使用メモリ 60,192 KB
最終ジャッジ日時 2024-07-07 04:00:23
合計ジャッジ時間 1,682 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,752 KB
testcase_01 AC 33 ms
52,396 KB
testcase_02 AC 32 ms
52,832 KB
testcase_03 AC 42 ms
58,564 KB
testcase_04 AC 42 ms
59,192 KB
testcase_05 AC 33 ms
53,184 KB
testcase_06 AC 34 ms
53,304 KB
testcase_07 AC 38 ms
60,064 KB
testcase_08 AC 37 ms
59,364 KB
testcase_09 AC 38 ms
59,584 KB
testcase_10 AC 34 ms
52,132 KB
testcase_11 AC 34 ms
52,268 KB
testcase_12 AC 36 ms
60,192 KB
testcase_13 AC 35 ms
59,168 KB
testcase_14 AC 37 ms
59,628 KB
testcase_15 AC 38 ms
59,232 KB
testcase_16 AC 37 ms
59,900 KB
testcase_17 AC 37 ms
58,632 KB
testcase_18 AC 34 ms
51,988 KB
testcase_19 AC 34 ms
53,600 KB
testcase_20 AC 33 ms
52,120 KB
testcase_21 AC 33 ms
52,764 KB
testcase_22 AC 40 ms
58,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=list(input())
ans=[]
c=[chr(i) for i in range(97, 97+26)]
C=[chr(i) for i in range(65, 65+26)]
for i in range(len(s)):
  for j in range(26):
    if s[i]==c[j]:
      ans.append(C[j])
    if s[i]==C[j]:
      ans.append(c[j])
print(''.join(ans))
0