結果

問題 No.18 うーさー暗号
ユーザー doraeeemonn
提出日時 2017-11-09 00:01:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-07 06:39:55
合計ジャッジ時間 1,107 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

input_string = list(input())
output_string = ""
count = 1
for i in range(len(input_string)):
	code = ord(input_string[i]) - count
	if code < 65:
		code += 26
	output_string += chr(code)
	count += 1
	if count == 26:
		count = 0
print(output_string)
0