結果

問題 No.163 cAPSlOCK
ユーザー Kozuma
提出日時 2017-12-22 14:54:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 214 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-12-17 23:09:29
合計ジャッジ時間 1,846 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

list = [i for i in input()]

diff = ord('a') - ord('A')

strings = []

for i in list:
	if ord(i) < ord('a'):
		strings.append(chr(ord(i) + diff))
	else:
		strings.append(chr(ord(i) - diff))

print("".join(strings))
0