求[X,Y]内被除3余1并且被除5余3的整数的和-题解(C++代码) 摘要: #include using namespace std; int main() { int a,b; cin>>a>>b; int i,s=0; for(i=a;i…… 题解列表 2020年03月12日 0 点赞 0 评论 425 浏览 评分:0.0
C++:递归函数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;void ko ( int x , int y , long long &…… 题解列表 2025年04月25日 0 点赞 0 评论 137 浏览 评分:0.0
1166求[X,Y]内被除3余1并且被除5余3的整数的和(for循环遍历) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int X, Y; cin >> X >> Y; long long …… 题解列表 2024年07月10日 0 点赞 0 评论 356 浏览 评分:0.0
因为其它题不会,所以只会做简单题的臭猜币一个 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d%d",&x,&y); if(x>y) { …… 题解列表 2023年03月03日 0 点赞 1 评论 199 浏览 评分:0.0
求[X,Y]内被除3余1并且被除5余3的整数的和 摘要:```c #include int main(){ int x,y; long long sum=0; scanf("%d%d",&x,&y); for(;x…… 题解列表 2023年02月05日 0 点赞 0 评论 183 浏览 评分:0.0
求[X,Y]内被除3余1并且被除5余3的整数的和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,i,s=0; scanf("%d%d",&x,&y); for(i=x;i<y;i++) { …… 题解列表 2022年12月22日 0 点赞 0 评论 142 浏览 评分:0.0
求[X,Y]内被除3余1并且被除5余3的整数的和!!!!!! 摘要:解题思路:注意事项:sum要赋一个初值,不然会随机分配一个值。参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int x,y,…… 题解列表 2022年07月04日 0 点赞 0 评论 186 浏览 评分:0.0
求[X,Y]内被除3余1并且被除5余3的整数的和(python) 摘要:m,n = map(int,input().split())if m > n: m,n = n,msum = 0for i in range(m,n): if i%3 == 1 and …… 题解列表 2021年12月20日 0 点赞 0 评论 311 浏览 评分:0.0
求[X,Y]内被除3余1并且被除5余3的整数的和 摘要:解题思路:有点基础的都能看懂,这可能是我在ACM训练中看到的最简单的题目了了!17:10:51注意事项:参考代码:#include<stdio.h>int main(){ int x,y; int s…… 题解列表 2021年11月30日 0 点赞 0 评论 307 浏览 评分:0.0
1166好兄弟,可以的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int sum=0,X,i,Y;scanf("%d %d",&X,&Y); for(i=X;i>=X&&i<=…… 题解列表 2021年11月10日 0 点赞 0 评论 211 浏览 评分:0.0