printf基础练习2 (C语言代码) 摘要:解题思路:使用转换语句注意事项:八进制和十六进制有前缀,如果使用%o,%d,%x,是不会带有前缀的。参考代码:#inlcude <stdio.h>int main(){ int a,b; …… 题解列表 2018年05月29日 0 点赞 0 评论 508 浏览 评分:0.0
小白思路,简单,易理解 摘要:解题思路:小白思路注意事项:参考代码:# include<stdio.h>int main(){ int i,n; double sum=0,sum2=0; double a1 = …… 题解列表 2018年05月29日 0 点赞 0 评论 645 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:将牛分为四类:当年会产出,次年会产出,两年后会产出以及三年后会产出,即设一个数组a[4],第一年四个元素值为1 0 0 0;第二年则有1 0 0 1;第三年则为1 0 1 1;第三年则为1 …… 题解列表 2018年05月29日 0 点赞 0 评论 626 浏览 评分:0.0
字符串中间和后边*号删除 (C语言代码) 摘要:解题思路:提交是错的注意事项:自己电脑上是对的,帮忙看看参考代码:#include <string.h>#include<stdio.h>void fun(char *a){ int i,j,n,x=…… 题解列表 2018年05月29日 0 点赞 0 评论 767 浏览 评分:0.0
【亲和数】 (C语言代码) 摘要:解题思路: m控制行数,循环里面输入两个数,通过求出一个数的真约数来与另一个数进行比较注意事项: 1.真约数不可能大于原数的一般,故只需i>=a/2; 2.可…… 题解列表 2018年05月29日 1 点赞 0 评论 647 浏览 评分:0.0
明明的随机数 (C语言代码) 摘要:#include <stdio.h> int main(){ int m,i,j,t,count=0;scanf("%d",&m); int a[m],b[m]; for(i=0;i<m…… 题解列表 2018年05月29日 0 点赞 0 评论 937 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:参考代码:#include<stdio.h>struct Date{ int year; int month; int day; int leap; int count;…… 题解列表 2018年05月29日 0 点赞 0 评论 567 浏览 评分:0.0
校门外的树 (C语言代码) 摘要:#include<stdio.h> int main(){ int m,n,i,j,count=0; scanf("%d%d",&m,&n); int t[m+1],a[n][2];//…… 题解列表 2018年05月29日 0 点赞 0 评论 468 浏览 评分:0.0
C二级辅导-计负均正 (C语言代码) 摘要:#include <stdio.h> int main(){ int sum=0,count=0,n,i; for(i=0;i<20;i++){ scanf("%d",&n);//读入…… 题解列表 2018年05月29日 0 点赞 0 评论 912 浏览 评分:0.0
方砖问题 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args…… 题解列表 2018年05月29日 0 点赞 0 评论 978 浏览 评分:0.0