結果
問題 |
No.238 Mr. K's Another Gift
|
ユーザー |
![]() |
提出日時 | 2015-07-31 18:26:25 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 170 bytes |
コンパイル時間 | 51 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 15,004 KB |
最終ジャッジ日時 | 2024-07-17 22:59:22 |
合計ジャッジ時間 | 4,146 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 5 TLE * 1 -- * 34 |
ソースコード
s = list(raw_input()) N = len(s) H = (N+1)>>1 for i in xrange(N+1): s.insert(i,s[N-i-(i<H)]) if s[:H] == s[-H:][::-1]: print "".join(s) quit() s.pop(i) print "NA"