一直不习惯用while,这次解出来啦 摘要:解题思路:用while语句,if判断语句,奇数的判断方法语句余数不为零即可注意事项:别忘了题目给的数字范围哦参考代码:#include "stdio.h"int main(){ int m,n; in…… 题解列表 2023年01月11日 0 点赞 0 评论 237 浏览 评分:0.0
土办法。感觉这题目没说仔细 摘要:解题思路:题目并没有说明m,n 的奇偶性,但根据大家发的题解,好像有默认。。我发一个没默认的土办法。:)注意事项:要想清楚在range里的参数范围到底要不要+1参考代码:m,n = map(int,i…… 题解列表 2025年02月25日 0 点赞 0 评论 415 浏览 评分:0.0
题解 2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,sum = 0; scanf("…… 题解列表 2025年01月25日 0 点赞 0 评论 326 浏览 评分:0.0
2801: 奇数求和题解 摘要:解题思路:注意事项:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ int n,m;cin…… 题解列表 2024年12月29日 0 点赞 0 评论 286 浏览 评分:0.0
送分了........ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,p=0,q=0,sum=0; scanf("%d %d",&a,&b); …… 题解列表 2024年11月26日 0 点赞 0 评论 332 浏览 评分:0.0
python 2801: 奇数求和 摘要:参考代码:m, n = map(int, input().split()) sum = 0 for i in range(m, n + 1): if i % 2 != 0: …… 题解列表 2024年03月12日 0 点赞 0 评论 296 浏览 评分:0.0
奇数求和C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i,sum=0; scanf("%d %d",&m,&n); for(i=m;…… 题解列表 2024年02月17日 0 点赞 0 评论 315 浏览 评分:0.0
写题解 2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,sum=0; cin>>a>>b; …… 题解列表 2024年01月10日 0 点赞 0 评论 95 浏览 评分:0.0
2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2024年01月10日 0 点赞 0 评论 128 浏览 评分:0.0
2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int m,n,sum=0; cin>…… 题解列表 2023年11月17日 0 点赞 0 评论 236 浏览 评分:0.0