三角形判断 摘要:解题思路:要注意公式即两边之和大于第三边注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c)…… 题解列表 2022年11月11日 0 点赞 0 评论 658 浏览 评分:9.0
结构体之成绩统计2 摘要:#include<stdio.h>#include<malloc.h>struct student { char id[20]; char name[30]; int score[3…… 题解列表 2022年11月11日 0 点赞 0 评论 590 浏览 评分:0.0
分段函数(分支法) 摘要:解题思路:就是简单的分支来控制这个函数注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f",&a); if(a>=0&…… 题解列表 2022年11月11日 0 点赞 0 评论 972 浏览 评分:9.7
汽车与走路(非常简单版) 摘要:解题思路:咱只要比较时间,因此用分支来判断情况就欧克注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f",&a); i…… 题解列表 2022年11月11日 0 点赞 0 评论 681 浏览 评分:9.0
strlen函数在visual stdio2022里是算上\n的在他这编译器上则不算害我搞了好久 摘要:解题思路:注意事项:参考代码:在这里的编译器#include<stdio.h>#include<string.h>void main(){ char a[101]={0}; char d[…… 题解列表 2022年11月11日 0 点赞 2 评论 911 浏览 评分:0.0
do while循环 + fabs( )浮点数绝对值函数的使用,非常简单 摘要: #include #include int main() { double x, m, n; scanf("%lf", &x); n = x; do { …… 题解列表 2022年11月11日 0 点赞 0 评论 560 浏览 评分:0.0
编写题解 2930: 派 摘要:解题思路:注意事项:找了好久的原因,才知道应该这样来算pi(1)double pai=acos(-1.0);(2)double eps=1e-5;参考代码:#include<stdio.h>#incl…… 题解列表 2022年11月11日 0 点赞 0 评论 634 浏览 评分:9.9
一种超简单的方法 摘要:解题思路: 利用数组将55以内全部计算出注意事项: 参考代码:#include<stdio.h>int fun(int n){ int a[…… 题解列表 2022年11月11日 0 点赞 0 评论 464 浏览 评分:9.9
10行代码完成--通俗易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ // 2020为庚子,根据2020重新排序天干地支,使a[…… 题解列表 2022年11月11日 0 点赞 0 评论 637 浏览 评分:9.9
收集瓶盖赢大奖 摘要:解题思路:就是简单的判断注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); if(a>=10||…… 题解列表 2022年11月11日 0 点赞 0 评论 1062 浏览 评分:9.9