摘要: 一道非常愚蠢的模拟题 值得庆祝的是,从题解找到了比较两个字符串是否相同的函数 数据费心费力为了卡我这个只比较第一二三个字母的造了这么一组数据 2someguysomeotherguysomeotherguy1500 1someguysomeguy500 1someotherguy 答案: someg 阅读全文
posted @ 2019-10-08 11:53 sdzmq 阅读(222) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstdio> using namespace std; int ans=0,n,k; int work(int x){ int num=0; for(;x;x-=x&-x) num++; return num; } int main(){ 阅读全文
posted @ 2019-10-08 10:55 sdzmq 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 杨辉三角的带权应用,杨辉三角用组合数推,(记得从二开始),什么数组该赋什么值想好了再写 阅读全文
posted @ 2019-10-08 10:51 sdzmq 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 说实话我真没思路 阅读全文
posted @ 2019-10-08 10:45 sdzmq 阅读(122) 评论(0) 推荐(0) 编辑