結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-29 08:29:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 395 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-28 21:20:39 |
| 合計ジャッジ時間 | 1,219 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
# coding: utf-8
import string
s = str(input())
s_i = 0
A =string.ascii_uppercase
array_A = [i for i in A]
num = [int(i+1) for i in range(len(array_A))]
ans = []
for j in range(len(s)):
s_i += 1
a_i = array_A.index(s[j])
if s_i == len(array_A):
s_i = 0
ans.append(array_A[a_i-s_i])
else:
ans.append(array_A[a_i-s_i])
for a in ans:
print(*a , end="")