結果
| 問題 |
No.238 Mr. K's Another Gift
|
| コンテスト | |
| ユーザー |
Tawara
|
| 提出日時 | 2015-07-31 18:36:46 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 170 bytes |
| コンパイル時間 | 442 ms |
| コンパイル使用メモリ | 76,988 KB |
| 実行使用メモリ | 266,476 KB |
| 最終ジャッジ日時 | 2024-07-17 22:59:35 |
| 合計ジャッジ時間 | 5,467 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 5 MLE * 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"
Tawara