二进制分类(C语言) 摘要:解题思路:暴力(笑注意事项:数据范围是从1到1000(包括1和1000),并不需要自己输入。参考代码:#include<stdio.h>int main(){ int i, s, A = 0, B =…… 题解列表 2022年11月22日 0 点赞 0 评论 586 浏览 评分:2.0
编写题解 2819: 数字反转 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n,m=0; cin>>n; while(n){ m=m*10+n%10;//每…… 题解列表 2022年11月24日 0 点赞 3 评论 423 浏览 评分:2.0
2778: 判断数正负 摘要:解题思路: while循环控制输入 if条件判断控制范围注意事项:参考代码:while 1: a = int(input()) if a <= -1E9 or a >= 1E9: #…… 题解列表 2022年11月27日 0 点赞 0 评论 584 浏览 评分:2.0
2779: 输出绝对值 摘要:解题思路: 这道题考察的是条件语句的应用注意事项:参考代码:a = float(input())if a >= 0: print('{:.2f}'.format(a)) #第一…… 题解列表 2022年11月27日 0 点赞 0 评论 718 浏览 评分: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 评论 778 浏览 评分:2.0
很简单的一种思路,可以不用到数组 摘要:```c //思路是先把A的因子和算出来得出B,然后判断B的因子和是否等于A,是则是亲密数 #include int main() { for(int a=2;a…… 题解列表 2022年12月07日 0 点赞 0 评论 419 浏览 评分:2.0
奇淫巧计-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); printf(…… 题解列表 2022年12月23日 0 点赞 3 评论 536 浏览 评分:2.0
编写题解 1954: 话费计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a; double sum = 0; scanf("%d",&a)…… 题解列表 2023年01月03日 0 点赞 0 评论 363 浏览 评分:2.0
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,i,b=0; int a[100]; scanf("%d%d",&…… 题解列表 2023年01月13日 0 点赞 0 评论 372 浏览 评分:2.0
2750: 字符菱形 摘要:解题思路: 直接输出注意事项:参考代码: #include<iostream>using namespace std;int main(){ char c; …… 题解列表 2023年01月24日 0 点赞 0 评论 695 浏览 评分:2.0