模拟赛题
给出 nnn,求 ∑i=1ni×fi\sum^n_{i=1} i\times f_i∑i=1ni×fi,其中 fif_ifi 表示 iii 的数位和,答案对 998244353998244353998244353 取模
n≤1018n\le10^{18}n≤1018