結果
| 問題 |
No.238 Mr. K's Another Gift
|
| コンテスト | |
| ユーザー |
Tawara
|
| 提出日時 | 2015-07-31 16:10:14 |
| 言語 | Python2 (2.7.18) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 216 bytes |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 13,752 KB |
| 最終ジャッジ日時 | 2024-07-17 22:56:36 |
| 合計ジャッジ時間 | 3,876 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 4 TLE * 1 -- * 35 |
ソースコード
s = list(raw_input()) N = len(s) H = (N+1)>>1 alf = [chr(97+i) for i in xrange(26)] for i in xrange(N+1): for a in alf: s.insert(i,a) if s[:H] == s[-H:][::-1]: print "".join(s) quit() s.pop(i) print "NA"
Tawara