C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i,a,b; scanf("%d%d",&m,&n); for(i=(m>n)…… 题解列表 2017年07月23日 0 点赞 0 评论 749 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d%d%d",&a,&b,&c); …… 题解列表 2017年07月23日 0 点赞 0 评论 1112 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题11.3 (C语言代码) 摘要:#include<stdio.h> char id[100][100]; char name[100][100]; int a[100][3]; void input(int i) { …… 题解列表 2017年07月24日 0 点赞 1 评论 503 浏览 评分:8.0
C二级辅导-公约公倍 (C语言代码) 摘要:#include<stdio.h> int main(void) { int n,m,i,t,j; scanf("%d%d",&m,&n); if(m>n) t=m,…… 题解列表 2017年07月24日 0 点赞 0 评论 1130 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:定义一个结构体变量(年、月、日),以平年为准,通过数组给每个月初始化天数,条件判断是否为闰年,如果是闰年,那么2月份为29天,通过遍历,计算出是第几天。如果是平年,则2月份为28天,计算出是…… 题解列表 2017年07月25日 5 点赞 0 评论 2463 浏览 评分:8.0
C语言考试练习题_一元二次方程 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double X1,X2,a,b,c,deta,p,q,t; sca…… 题解列表 2017年07月27日 0 点赞 0 评论 1070 浏览 评分:8.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() { double x,result=0; …… 题解列表 2017年07月28日 0 点赞 0 评论 1374 浏览 评分:8.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:for (int i = -100; i <=150; i=i+5) 参考代码:#include <stdio.h> void ctof(int c) { doubl…… 题解列表 2017年07月28日 0 点赞 0 评论 930 浏览 评分:8.0
数字整除 (C++代码)——(22行代码)真的只需要两个变量就够了 摘要:解题思路:先让我吐槽一会。。。真正的懒人是不会多用一个变量的,,,为什么要用大数除法,为什么要利用题里给的公式,为什么要加上各种指针,,,作为一名合格的懒人,,,我这些都没用,,,我懒我骄傲hhhhh…… 题解列表 2017年07月28日 23 点赞 19 评论 2290 浏览 评分:8.0
开心的金明 (C++代码) 摘要:动态规划:背包问题 #include<iostream> #include<cstring> #include<algorithm> using namespace std; int dp[…… 题解列表 2017年07月28日 5 点赞 3 评论 1491 浏览 评分:8.0