摘要: "K好数" cpp / 不难的动态规划 / include include using namespace std; int main(){ int k, l; int dp[105][105]; cin k l; memset(dp, 0, sizeof(dp)); for(int i=1; i 阅读全文
posted @ 2019-02-13 17:47 A-Little-Nut 阅读(217) 评论(0) 推荐(0) 编辑
摘要: "最大最小公倍数" cpp include using namespace std; / getlcd()求两个数的最大公约数 / long long int getlcd(long long int a, long long int b){ return (a%b==0?b:getlcd(b, a 阅读全文
posted @ 2019-02-13 17:45 A-Little-Nut 阅读(204) 评论(0) 推荐(0) 编辑
摘要: "区间k大数查询" cpp include include include using namespace std; bool cmp(const int& a, const int& b){ return a b; } int main(){ int n; cin n; vector vi(n+1 阅读全文
posted @ 2019-02-13 17:43 A-Little-Nut 阅读(152) 评论(0) 推荐(0) 编辑
摘要: "Eurodiffusion" cpp / 并未完全AC / include include include using namespace std; int c;//国家数目(即货币数目) int cas=0;//测试组数 const int motif=1000000; struct CTR{/ 阅读全文
posted @ 2019-02-13 17:41 A-Little-Nut 阅读(594) 评论(0) 推荐(1) 编辑