結果
| 問題 | No.491 10^9+1と回文 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-03-12 12:51:50 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 179 ms / 1,000 ms | 
| コード長 | 181 bytes | 
| コンパイル時間 | 408 ms | 
| コンパイル使用メモリ | 6,912 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-01 08:35:39 | 
| 合計ジャッジ時間 | 21,063 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 103 | 
ソースコード
#yuki_491 n=int(raw_input()) n/=1000000001 res=0 for i in xrange(1,10**5): v=s=t=str(i) v=v[::-1] s+=v t+=v[1:len(v)] if int(s)<=n: res+=1 if int(t)<=n: res+=1 print res
