結果
問題 | No.491 10^9+1と回文 |
ユーザー |
👑 ![]() |
提出日時 | 2021-04-07 01:43:47 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 308 bytes |
コンパイル時間 | 321 ms |
コンパイル使用メモリ | 82,156 KB |
実行使用メモリ | 76,408 KB |
最終ジャッジ日時 | 2024-06-12 05:01:26 |
合計ジャッジ時間 | 9,400 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | MLE * 3 |
other | MLE * 103 |
ソースコード
from itertools import productN=int(input())X=0for i in range(1,5):for T in product(range(10),repeat=i):if T[0]==0:continuex=""for t in T:x+=str(t)y=int(x+"0"*(9-i)+x[::-1])if y%(10**9+1)==0 and y<=N:X+=1print(X)