题解列表
C语言程序设计教程(第三版)课后习题10.3 (C语言代码)
摘要:解题思路:注意事项:注意n,m,max,min初始值对程序的影响。参考代码:#include<stdio.h>void input(int a[]);void action(int a[]);void……
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)
摘要:解题思路:注意事项:题干说的是第n次落下时参考代码:# include <stdio.h>int main(){ double i, m, n, h = 0.0, h1; scanf("%lf %lf……
C语言程序设计教程(第三版)课后习题6.8 (C语言代码)
摘要:解题思路:用数组来解这道题比较简单;注意事项:for循环中的if条件与后面的总和(h = a[i] / b[i])易倒换,导致出现垃圾值。参考代码:# include <stdio.h>int mai……
蓝桥杯算法提高VIP-栅格打印问题 (C++代码)
摘要:#include<iostream>
using namespace std;
int main(){
int m,n;
cin>>m>>n;
for(int i=0……
蓝桥杯算法提高VIP-淘淘的名单 (C++代码)
摘要:#include<iostream>
using namespace std;
int main(){
int n;
string str;
cin>>n;
……
蓝桥杯算法提高VIP-格式化数据输出 (C++代码)
摘要:注意事项:注意"---------------------------------------------------"一定是和"COUNTRY AREA(10K km2) POP.(10K……
Manchester-C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)
摘要:解题思路:把1150 题的加法换为减法,分母换为i的平方;#include <stdio.h>
int main()
{
double t = 1;
int m……
优质题解
Manchester- C语言训练-计算一个整数N的阶乘(多方法回合)
摘要:解题思路:思路1.根据公式n!=1*2*3*...n;#include <stdio.h>
int main()
{
int n,jc=1;
scanf("%d",&n);
for(……
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)
摘要:解题思路:利用数组的下标来找规律 然后用if语句实现最终求和注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3] = { 0 }; int i, j; ……