编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,sum,N; scanf("%d",&N); for(i=1;i<=N;i++) { …… 题解列表 2022年11月23日 0 点赞 0 评论 422 浏览 评分:0.0
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100;i<=999;i++) { a=i/100; b=i/10%1…… 题解列表 2022年11月23日 0 点赞 0 评论 388 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,x=0,y=0; float c,i,z=0.0,sum; sc…… 题解列表 2022年11月23日 0 点赞 0 评论 443 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){long long int i,j=1,n,Sn=0; scanf("%d",&n); if(n<=20) { …… 题解列表 2022年11月23日 0 点赞 0 评论 392 浏览 评分:0.0
宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include <stdio.h># define f(a, b, c) max = a>b?(b>c?a:(a>c?a:c)) : (b<c?c:b) int …… 题解列表 2022年11月22日 0 点赞 0 评论 488 浏览 评分:9.9
十几行代码直接搞定好叭 摘要:解题思路:#include <stdio.h> int main() { int n,i,t; scanf("%d",&n); double a[n+1],an,max;//不用i…… 题解列表 2022年11月22日 0 点赞 2 评论 1103 浏览 评分:9.6
1042: [编程入门]电报加密(c语言代码超简单) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[1000]; int i; gets(a); for(i=0;…… 题解列表 2022年11月22日 0 点赞 0 评论 548 浏览 评分:0.0
最常规的解法-C语言 摘要:解题思路: 题目要求是多组输入,所以要使用EOF这个关键字;然后是输入输出部分的话,如果输入的第二个数小于153,则直接输出NO如果大于153直接输出在范围内的水仙花数。注意事项: 注意细节,别…… 题解列表 2022年11月22日 0 点赞 0 评论 755 浏览 评分:0.0
这学生难道不得用我的ojbk函数(微笑) 代码附在下面,函数在下面根据不及格为假,及格为真,***采用异或***,不同输出真,相同输出假,刚好符合题意。#includeintmain(void){inta,b;scanf("%d%d",&a,&b);printf("%d",ojbk(a)^ojbk(b));return0;}intojbk(i 题解列表 2022年11月22日 0 点赞 1 评论 709 浏览 评分:9.9
C语言暴力解决这道题 摘要:解题思路: 暴力枚举注意事项:参考代码:#include<stdio.h> int main() { int a,b,c; int k = 0; int sum = 0; …… 题解列表 2022年11月22日 0 点赞 0 评论 643 浏览 评分:0.0