新手简单快速解决!!! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0, x = 0, y = 0; cin …… 题解列表 2023年11月05日 0 点赞 0 评论 134 浏览 评分:0.0
3010 奇偶数之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum1=0,sum2 =0; cin>>…… 题解列表 2024年06月09日 0 点赞 0 评论 79 浏览 评分:0.0
奇偶数之和 摘要:解题思路:主要就是分别表示出奇数和偶数,我用k表示,如果k为奇数则i进行奇数相加,k为偶数则进行偶数的相加。注意事项:参考代码:#include<iostream>using namespace st…… 题解列表 2024年05月02日 0 点赞 0 评论 139 浏览 评分: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 评论 169 浏览 评分: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 评论 107 浏览 评分: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 评论 119 浏览 评分:0.0
3010: 奇偶数之和(超简单) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; long long…… 题解列表 2024年01月08日 0 点赞 0 评论 75 浏览 评分:0.0
奇偶求和!!! 摘要:解题思路:选判断奇数和偶数,再加就行了注意事项:参考代码:#include<stdio.h>int main(){ int n,odd=0,even=0; scanf("%d",&n); …… 题解列表 2023年11月25日 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 评论 104 浏览 评分:0.0
奇偶数之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a=0,b=0; cin>>n; …… 题解列表 2023年07月01日 0 点赞 0 评论 177 浏览 评分:0.0