10845 A+B(1)(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long a,b; while(scanf("%lld%lld",&a,&b)!=EOF) { pr…… 题解列表 2024年05月29日 0 点赞 1 评论 683 浏览 评分:0.0
编写题解 1042: [编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> void count(char* str){ …… 题解列表 2024年05月29日 0 点赞 0 评论 778 浏览 评分:0.0
1084素数的判断(函数判断) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void shuchu(int n){ if(n==0||n==1)//题目包括了这两个,但它们不是素数 return ; if(n=…… 题解列表 2024年05月29日 0 点赞 0 评论 400 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> void matha(float a,float b,float c,double delta)…… 题解列表 2024年05月29日 0 点赞 0 评论 375 浏览 评分:0.0
1083Hello, world!(一个while解决) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int a; while(scanf("%d",&a)!=EOF&&a!=&…… 题解列表 2024年05月29日 0 点赞 0 评论 782 浏览 评分:0.0
编写题解 1049: [编程入门]结构体之时间设计 摘要:```c #include struct Data{ int year; int month; int day; }data; int main() { …… 题解列表 2024年05月29日 0 点赞 0 评论 284 浏览 评分:9.9
1093字符逆序(一个while和for循环) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[105]; char c; int i=0; while(sc…… 题解列表 2024年05月29日 0 点赞 0 评论 556 浏览 评分:0.0
编写题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> int count(int num) { int i; for(i=…… 题解列表 2024年05月28日 0 点赞 0 评论 473 浏览 评分:0.0
水仙花数判断(c语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ int a=0,b=0,c=0; for(int i=100;i<1000;i++){ …… 题解列表 2024年05月28日 0 点赞 0 评论 294 浏览 评分:0.0
求和训练(c语言) 摘要:解题思路:注意事项:进行倒数和相加时,需要为1.0/c,如果为1/c,结果会比原值小;参考代码:#include <stdio.h> void fun(int a,int b,int c){ i…… 题解列表 2024年05月28日 0 点赞 0 评论 466 浏览 评分:0.0