判断能否被3、5、7整除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void) { int a; scanf("…… 题解列表 2025年11月01日 1 点赞 0 评论 527 浏览 评分:2.0
2786: 判断能否被3、5、7整除 摘要:解题思路:不用循环,只用条件判断语句注意事项:参考代码:a = int(input())if a % 3 == 0 and a % 5 == 0 and a % 7 == 0: print(&#…… 题解列表 2022年11月29日 0 点赞 0 评论 896 浏览 评分:2.0
判断能否被3、5、7整除 , 满分通过 摘要:解题思路:满分代码注意事项:int长度不够,需要+long参考代码:#includeint main(){ long int a,n; scanf("%ld",&n); …… 题解列表 2023年10月10日 0 点赞 0 评论 802 浏览 评分:5.3
2786: 判断能否被3、5、7整除(c语言解法) 摘要:解题思路:用if - else if - else 来写,括号里面配合&&和||来增加条件注意事项:只有if和else if后面可以加()写条件,else的后面不能加()写条件参考代码:#includ…… 题解列表 2023年07月03日 0 点赞 0 评论 1225 浏览 评分:6.0
2786: 判断能否被3、5、7整除 摘要:#include int main() { int x; // 读取输入的整数 scanf("%d", &x); int div…… 题解列表 2025年03月17日 1 点赞 0 评论 719 浏览 评分:6.0
分支结构-判断能否被3、5、7整除 摘要:#include #include int main() { int n; scanf("%d",&n); if(n%3==0&&n%5==0&&n%7==0) …… 题解列表 2024年01月22日 0 点赞 1 评论 897 浏览 评分:6.0
c++使用bool变量的简便方法 #includeusingnamespacestd;intmain(){inta;cin>>a;boolcon3=(a%3==0);\\bool变量与if-else语句搭配使用,bool已定义好,if-else语句书写量减少, 题解列表 2025年10月27日 2 点赞 0 评论 363 浏览 评分:7.0
判断能否被3、5、7整除(浅卡一个bug)通俗易懂 摘要:解题思路:短注意事项:无参考代码:#include<stdio.h>int main(){ long long int n; scanf("%lld", &n); if (n % 3 == 0) p…… 题解列表 2023年01月27日 0 点赞 0 评论 1435 浏览 评分:8.8
(超简单版)的判断能否被3,5,7整除 摘要:解题思路:直接一个简单的for循环来做,不用if语句,因为太多了,不简便注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&…… 题解列表 2022年11月11日 0 点赞 3 评论 776 浏览 评分:8.8
判断能否被3、5、7整除代码 摘要:解题思路:注意事项:注意 else if 的使用方法参考代码:#include <stdio.h>#include <stdio.h>int main(){ int m; scanf("%…… 题解列表 2022年10月23日 0 点赞 1 评论 1159 浏览 评分:9.3