牛客网暑期ACM多校训练营(第四场)C:Chiaki Sequence Reloaded(数位DP)
链接:https://www.nowcoder.com/acm/contest/142/C时间限制:C/C++1秒,其他语言2秒空间限制:C/C++131072K,其他语言262144K64bitIOFormat:%lld题目描述Chiakiisinterestedinaninfinitesequencea1,a2,a3,...,a1,a2,a3,...,whichdefinedasfollows