c++的答案liiuleshi 摘要:解题思路:公式注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ double n; cin>>n; printf("c…… 题解列表 2022年08月11日 0 点赞 1 评论 224 浏览 评分:4.3
题解 2758: 打印ASCII码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a = 0; scanf("%c\n", &a); printf("%d\n", a); return…… 题解列表 2023年03月01日 0 点赞 0 评论 806 浏览 评分:4.3
三个数最大值 摘要:解题思路:条件表达式注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d%d%d",&a,…… 题解列表 2025年02月15日 36 点赞 2 评论 3955 浏览 评分:4.3
矩形面积交 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ double a1,a2,b1,b2,c1,c2,d1,d2,e1,e2,f1,f2; scanf(…… 题解列表 2017年10月22日 1 点赞 0 评论 2088 浏览 评分:4.2
两边之和大于第三边 两边之差小于第三边-题解(C语言代码)注意不要出现死循环 不然会出现输出超限 摘要:#include int main(){ int a,b,c; while(scanf("%d %d %d",&a,&b,&c)!=EOF){ if(a100){ sc…… 题解列表 2019年08月04日 0 点赞 0 评论 3799 浏览 评分:4.2
蓝桥杯2022年第十三届省赛真题-质因数个数 摘要:解题思路:基于算术基本定理注意事项:参考代码:#include<bits/stdc++.h> int main(){ long long n,ans = 0,index; int sum; …… 题解列表 2022年05月06日 0 点赞 0 评论 1897 浏览 评分:4.2
第n小的质数(简单易懂) 摘要:解题思路:求最小质数,实际上也就是最小素数。题目中要求第n个最小质数,利用数组从小到大存放即可;其中的k<=n,表示已经找到第n个最小质数,用来作为判断条件退出for循环注意事项:一般写法会时间超限,…… 题解列表 2023年03月30日 2 点赞 1 评论 909 浏览 评分:4.2
优质题解 ✔✔✔ 双向BFS+最简题解 [c++] 摘要: *cntMat[x]:矩阵x累计所花的步数(从起点到现在的状态累积所用的步数) dirMat[…… 题解列表 2020年12月11日 0 点赞 5 评论 3098 浏览 评分:4.1
C语言程序设计教程(第三版)课后习题5.8 (Java代码) 摘要:import java.util.Scanner;public class Main { public static int wage(int a){ …… 题解列表 2017年07月04日 5 点赞 0 评论 1788 浏览 评分:4.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static int isprime(int X)…… 题解列表 2017年07月14日 1 点赞 0 评论 1651 浏览 评分:4.0