P1019 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main() { int n; scanf("%d", &n); int a[n], b[n…… 题解列表 2018年08月09日 0 点赞 0 评论 968 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:核心算法与前面无异注意事项:编译器用的是devc++,数据类型没有用浮点数,而用的long long int参考代码:#include<stdio.h>int main(){ long lo…… 题解列表 2018年08月09日 0 点赞 0 评论 817 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a ,b,c=0;a=2,b=3;c=a+b;printf("%d",c);}…… 题解列表 2018年08月09日 0 点赞 1 评论 304 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d\n%d\n%d\n%d\n",&a,&b,&c,&t…… 题解列表 2018年08月09日 0 点赞 0 评论 631 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.5 (C++代码) 摘要:解题思路: 1、n用数组将成员从1到n进行保存,记录成员。 2、定义一个j(j一直在1-3往复),用一个while+一个for(里面定义 i)循环,满足条件的数组 …… 题解列表 2018年08月09日 1 点赞 0 评论 971 浏览 评分:6.0
简单粗暴可AC 摘要:解题思路:直接暴力注意事项:注意输出-1参考代码:#include<stdio.h>int main(){ int a[10005][4]; int n,x,y,m,u; scanf("%d",&u)…… 题解列表 2018年08月09日 1 点赞 0 评论 794 浏览 评分:4.0
矩阵最大值 (C++代码)可AC 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main(){ int m,n; while(cin>>n…… 题解列表 2018年08月09日 3 点赞 0 评论 1729 浏览 评分:6.4
C语言训练-谁家孩子跑最慢* (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include <math.h> …… 题解列表 2018年08月09日 0 点赞 0 评论 1396 浏览 评分:0.0
矩阵最大值 (C++代码)(可AC) 摘要:#include <iostream> #include <stdio.h> #include <string> #include <cstring> using namespace std;…… 题解列表 2018年08月09日 1 点赞 0 评论 1131 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:本题目利用if()语句注意事项:注意a的取值范围书写,例如a>0&&a<=9,不要写成0<a<=9;参考代码:#include <stdio.h>main(){ int a,d,c,w,q,…… 题解列表 2018年08月09日 0 点赞 0 评论 727 浏览 评分:0.0