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