3010 奇偶数之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum1=0,sum2 =0; cin>>…… 题解列表 2024年06月09日 0 点赞 0 评论 60 浏览 评分:0.0
3010: 奇偶数之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,s=0,d=0; cin>>n; …… 题解列表 2024年06月09日 0 点赞 0 评论 82 浏览 评分:0.0
奇数偶数和 摘要:解题思路: 用两次循环分别跑一遍奇数和与偶数和注意事项:参考代码: #include<stdio.h>int main(){ int m,i,j; int a=0,n=0; …… 题解列表 2023年03月11日 0 点赞 0 评论 90 浏览 评分:0.0
3010: 奇偶数之和(超简单) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; long long…… 题解列表 2024年01月08日 0 点赞 0 评论 60 浏览 评分:0.0
编写题解 3010: 奇偶数之和 摘要:解题思路:注意事项:参考代码:n=int(input())j=0o=0for i in range(1,n+1): if i%2==0: o+=i else: …… 题解列表 2024年02月28日 0 点赞 0 评论 104 浏览 评分:0.0
奇偶数之和(题目的意思是包括n的) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); int odd=0,even=0;//odd是…… 题解列表 2023年10月08日 0 点赞 0 评论 86 浏览 评分:0.0
奇偶数之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,s=0,t=0; scanf("%d",&n); for(i=0;i<=n;i…… 题解列表 2022年12月25日 0 点赞 0 评论 144 浏览 评分:0.0
奇偶求和!!! 摘要:解题思路:选判断奇数和偶数,再加就行了注意事项:参考代码:#include<stdio.h>int main(){ int n,odd=0,even=0; scanf("%d",&n); …… 题解列表 2023年11月25日 0 点赞 0 评论 77 浏览 评分:0.0
3010: 奇偶数之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,s=0,d=0; cin>>n; …… 题解列表 2024年06月09日 0 点赞 0 评论 69 浏览 评分:0.0
使用俩个for循环 摘要:解题思路:注意奇数是从1开始偶数从2开始注意事项:参考代码:#include<stdio.h>int main(){ int N,Sum1=0,Sum2=0; scanf("%d",&N)…… 题解列表 2023年02月08日 0 点赞 0 评论 115 浏览 评分:0.0