2779: 输出绝对值 摘要:解题思路: 这道题考察的是条件语句的应用注意事项:参考代码:a = float(input())if a >= 0: print('{:.2f}'.format(a)) #第一…… 题解列表 2022年11月27日 0 点赞 0 评论 500 浏览 评分: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 评论 586 浏览 评分:2.0
很简单的一种思路,可以不用到数组 摘要:```c //思路是先把A的因子和算出来得出B,然后判断B的因子和是否等于A,是则是亲密数 #include int main() { for(int a=2;a…… 题解列表 2022年12月07日 0 点赞 0 评论 195 浏览 评分:2.0
奇淫巧计-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); printf(…… 题解列表 2022年12月23日 0 点赞 3 评论 251 浏览 评分:2.0
编写题解 1954: 话费计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a; double sum = 0; scanf("%d",&a)…… 题解列表 2023年01月03日 0 点赞 0 评论 160 浏览 评分:2.0
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,i,b=0; int a[100]; scanf("%d%d",&…… 题解列表 2023年01月13日 0 点赞 0 评论 223 浏览 评分:2.0
2750: 字符菱形 摘要:解题思路: 直接输出注意事项:参考代码: #include<iostream>using namespace std;int main(){ char c; …… 题解列表 2023年01月24日 0 点赞 0 评论 497 浏览 评分:2.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); printf("%d",a); ret…… 题解列表 2023年01月31日 0 点赞 0 评论 220 浏览 评分:2.0
三个整数中找最大数 摘要:解题思路: 新手,适合初学者。思路很简单就三个中任挑一个比其他两个大即可 认为要懂||(或) &&(都、和) ?(非) 的知识注意事项:if语句判断时只有一条语句时可不用{ },我是为方便记忆, …… 题解列表 2023年01月31日 0 点赞 1 评论 131 浏览 评分:2.0
数字的处理与判断 摘要:```python while True: try: a = list(map(int, input())) b = a[-1: -7: -1] print(len(a)) …… 题解列表 2023年01月31日 0 点赞 0 评论 289 浏览 评分:2.0