結果
| 問題 | No.18 うーさー暗号 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-03-01 01:02:57 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 11 ms / 5,000 ms | 
| コード長 | 587 bytes | 
| コンパイル時間 | 80 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-07 06:26:08 | 
| 合計ジャッジ時間 | 719 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 13 | 
ソースコード
#!/usr/bin/env python # -*- coding: utf-8 -*- # 標準入力から一行分を読み出し、文字列として格納する。 input_string = raw_input() # 読み込んだ文字列をスペースで分割する。 # split_first = first.split() # それぞれをint型に変換する。 #A = int(split_first[0]) #B = int(split_first[1]) output_string = "" i = 1 for string in input_string: nextstr = ord(string)-i%26 if (nextstr<65): nextstr = nextstr + 26 elif (nextstr>90): nextstr = nextstr - 26 output_string = output_string + chr(nextstr) i = i+1 print output_string
