摘要:
数位dp 专题先来模板:int dfs(int i,int s,bool e) ///枚举第i位,第i位前一位的数字为s,e表示前缀是否已达到上界。(如果未达到,则枚举0000...~9999..,反之枚举0000...~abcd...){ if(i==-1) return 1; if(... 阅读全文
摘要:
Labs_test1 B - Boredom 线性dpB -BoredomTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 456CDescription... 阅读全文
摘要:
Labs_test1 A - Fedya and Maths 欧拉定理A -Fedya and MathsTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces... 阅读全文