会find就很好做了 摘要: ```cpp #include using namespace std; #define endl '\n' const int N=105; string s; int…… 题解列表 2024年04月28日 0 点赞 0 评论 684 浏览 评分:9.9
不使用函数,更加简单明了 摘要:解题思路:注意事项:注意输入时由于字符之间有空格,用%s输入比较保险参考代码:#includeint main(){ int n,i,j,t1=0,t2=0,t3=0,t4=0; scanf("%d"…… 题解列表 2024年04月28日 0 点赞 0 评论 485 浏览 评分:9.9
超绝相差解法 摘要:解题思路:1 3 5-1 3 =5注意事项:参考代码:#includeusing namespace std;int main(){ int m,n; cin>>m>>n; int sum1=0; i…… 题解列表 2024年04月28日 0 点赞 0 评论 561 浏览 评分:9.9
涉及一点小学数学方法解题 摘要:解题思路:遍历出有0的位置,然后计算包含0的矩形的长和宽,各自减2相乘即可注意事项:参考代码:#include<stdio.h> int main(){ int n,i,j,p,q,x=0,y=0; …… 题解列表 2024年04月28日 0 点赞 0 评论 511 浏览 评分:9.9
信息学奥赛一本通T1290-采药 摘要:解题思路:典型01背包注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 1e…… 题解列表 2024年04月28日 0 点赞 0 评论 320 浏览 评分:9.9
信息学奥赛一本通T1291-数字组合 摘要:解题思路:01 背包, f[j] 表示和为j的方案数, 当j = 0 时, 方案为一个数字都不选,此时方案数为1注意事项:参考代码:#include<iostream> #include<algor…… 题解列表 2024年04月28日 0 点赞 0 评论 884 浏览 评分:9.9
极简-c++语言初学者思路*通俗易懂 摘要:#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 6; i <=…… 题解列表 2024年04月28日 0 点赞 0 评论 441 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:用取余来求出对应的下标注意事项:注意用另外一个数组d存储数据参考代码:#include<stdio.h>int main(){ int a,b; int index; ch…… 题解列表 2024年04月29日 0 点赞 0 评论 345 浏览 评分:9.9
c代码注意找到规律 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h>int main(){ int n,i,j=0,k; scanf("%d",&n); char a…… 题解列表 2024年04月29日 0 点赞 0 评论 421 浏览 评分:9.9
简单的a+b C语言题解 摘要:解题思路:因为本题要求多组测试数据,所以我们要用while循环来写a+b,输入写在循环的条件里,然后在输出里写入公式就可以直接输出答案了。注意事项:1.注意,本题中在输入前必须写入~(取反),不然会输…… 题解列表 2024年04月29日 2 点赞 0 评论 669 浏览 评分:9.9