编写题解 1058: 二级C语言-求偶数和 摘要:解题思路:优化步骤,在输入的时候同时判断是否为偶数注意事项:注意数组定义的时间和位置参考代码:#include <stdio.h>int main(){ int k,x = 0; scanf("%d"…… 题解列表 2022年04月08日 0 点赞 0 评论 504 浏览 评分:9.9
二级C语言-求偶数和(2022年4月9日16:54:13) 摘要:# include # include int main() { int n,i; int sum = 0; scanf("%d",&n); int * b = (int…… 题解列表 2022年04月09日 0 点赞 0 评论 283 浏览 评分:0.0
C++求偶数和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define N 1000int main(){ int n,a[N],sum=0,i; c…… 题解列表 2022年04月26日 0 点赞 0 评论 620 浏览 评分:4.7
二级C语言-求偶数和 摘要:解题思路:用%2写注意事项:是%2不是/2;参考代码:#include<bits/stdc++.h>using namespace std;int n,s,z;int main(){ cin>…… 题解列表 2022年05月05日 0 点赞 0 评论 150 浏览 评分:0.0
二级C语言-求偶数和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int t,n,a,s;int main(){ cin>>n;//输入 for(in…… 题解列表 2022年05月09日 0 点赞 0 评论 171 浏览 评分:0.0
境界还是不够高啊 摘要:解题思路:注意事项:看了别人的python题解,很绝,两行代码搞定,用print(sum(i for i in if i%2==0)input()print(sum([i for i in map(i…… 题解列表 2022年05月13日 0 点赞 1 评论 221 浏览 评分:9.9
二级C语言-求偶数和 摘要:解题思路:用%做注意事项:%2参考代码:#include<bits/stdc++.h>using namespace std;int n,s,z;int main(){ cin>>n; for…… 题解列表 2022年05月18日 0 点赞 0 评论 186 浏览 评分:0.0
大力解题,每天一练 摘要:解题思路:1、题意不是很明确,整数(unsigned int) n的长度是未知的,在这种情况下还需要输入n长度的数。2、n取值范围位 1-最大unsigned int(65535) ,这里仁者见仁智者…… 题解列表 2022年06月07日 0 点赞 0 评论 889 浏览 评分:0.0
数组累加法!!!!! 摘要:解题思路:注意事项:用2求模判断奇偶数参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); int a[n];…… 题解列表 2022年06月26日 0 点赞 0 评论 195 浏览 评分:0.0
编写题解 1058: 二级C语言-求偶数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n = 0; int i = 0; int sum = 0; scan…… 题解列表 2022年07月30日 0 点赞 0 评论 108 浏览 评分:0.0