1028 求一元二次方程(注意元素类型的强制转换) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>void hanshu(int a,int b,int c){ int s=b*b-4*a*c; if(…… 题解列表 2024年05月14日 0 点赞 0 评论 467 浏览 评分:0.0
简单易懂的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ int i,j,len,sum; …… 题解列表 2024年05月14日 0 点赞 0 评论 583 浏览 评分:0.0
1027 最大公约数与最小公倍数(只求最大公约数即可求解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gongyueshu(int m,int n){ int max; if(m>n) { for(int i=n;i>=1;i-…… 题解列表 2024年05月14日 0 点赞 0 评论 517 浏览 评分:0.0
[编程入门]利润计算 摘要:解题思路:需要对不用利润,使用if分支来运行注意事项:审题清晰,对不同利润使用不同if分支参考代码:#include <stdio.h>int main() { int i; scanf(…… 题解列表 2024年05月13日 0 点赞 0 评论 593 浏览 评分:9.9
编写题解 1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> void count(char* str,int* …… 题解列表 2024年05月13日 0 点赞 0 评论 484 浏览 评分:6.0
不用结构体我照样写!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int number = 0;int i = 0;int year = 0;int month = 0;int day = 0;//这…… 题解列表 2024年05月12日 1 点赞 0 评论 507 浏览 评分:10.0
题解 2883: 矩阵加法 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=100;int …… 题解列表 2024年05月12日 0 点赞 0 评论 454 浏览 评分:0.0
计算矩阵边缘元素之和 ```cpp#includeusingnamespacestd;typedeflonglongll;constintN=1e3;inta[N][N];intmain(){lln,m,sum=0;cin>>n>>m;for(inti=1;ia[i][j];}}for(inti=1;i 题解列表 2024年05月12日 0 点赞 0 评论 578 浏览 评分:9.9
解 2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=100;int …… 题解列表 2024年05月12日 0 点赞 0 评论 546 浏览 评分:0.0
编写题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N=50; i…… 题解列表 2024年05月12日 0 点赞 0 评论 483 浏览 评分:0.0