积木画(c++) ```cpp#includeusingnamespacestd;typedeflonglongll;constintN=1e7+5;constintMOD=1e9+7;intn;intdp[N][4];intg[4][4]={{1,1,1,1}, 题解列表 2022年05月09日 0 点赞 0 评论 1830 浏览 评分:6.0
Tom数的解法 #1、定义```cpp#include#includeusingnamespacestd;char*str;inttom;```#2、输入看似很困难,其实用这个方法就变得很轻松:```cppwhile(cin>>str){tom=0;intlen=strlen(str);}```它的处理方法是:每次输 题解列表 2022年05月09日 0 点赞 0 评论 1251 浏览 评分:9.9
X进制减法(C++) ```cpp#includeusingnamespacestd;typedeflonglongll;constintN=1e5+5;constintMOD=1e9+7;intn;vectora,b;intmain(){cin>>n;intma, 题解列表 2022年05月09日 0 点赞 1 评论 1926 浏览 评分:8.4
[编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;float seqSum(short n); //有规律数列求和int main()…… 题解列表 2022年05月09日 0 点赞 0 评论 518 浏览 评分:0.0
[编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c ; cin>>a>>b>>c…… 题解列表 2022年05月09日 0 点赞 0 评论 477 浏览 评分:0.0
[编程入门]利润计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() { int profit = 0; float a…… 题解列表 2022年05月09日 0 点赞 0 评论 591 浏览 评分:9.9
[编程入门]分段函数求值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() { int x = 0; cin >> x; …… 题解列表 2022年05月09日 0 点赞 0 评论 786 浏览 评分:9.9
1007: [编程入门]分段函数求值 摘要:#include<iostream>#include<string.h>using namespace std;int main(){ int x,y; cin>>x; if(x<1) { y=x;…… 题解列表 2022年05月09日 0 点赞 2 评论 1232 浏览 评分:9.9
[编程入门]求和训练 解题思路:这道题可以分成三步来思考,运用for循环,先求1~a之和(s+=i)再求1~b的平方和(s1+=i*i)最后求1~c的倒数和(s2+=1.0/i)注意事项:s、s1、s2都是double类型,因为有倒数(我认为最好全都设置成double, 题解列表 2022年05月08日 0 点赞 0 评论 572 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 解题思路:因为有四种类型的字符需要统计,所以我们可以建立四个累加器来计算,同时运用for语句扫遍字符串,用if语句判断四种类型(islower(s[i])||isupper(s[i]),isdigit(s[i]),s[i]=="",和else)注意事项:字母有大小写之分, 题解列表 2022年05月08日 0 点赞 0 评论 616 浏览 评分:9.9