[编程入门]超精简28行代码解决(容易理解) 摘要:解题思路:使用结构指针存放信息注意事项:参考代码:struct stu { char xh[10]; char xm[10]; int xf[3]; }; char …… 题解列表 2023年08月19日 0 点赞 0 评论 538 浏览 评分:4.0
迭代法求平方根,逐句讲解 摘要:参考代码:#include <stdio.h>#include <math.h>// 定义一个宏,用于计算两个数之间的差的绝对值#define ABS(x) ((x) > 0 ? (x) : -(x)…… 题解列表 2023年08月19日 0 点赞 0 评论 638 浏览 评分:9.9
用二维数组思想打印dna 摘要:解题思路:注意事项:需要单独打印第一行,否则出现的DNA会有重复部分参考代码:#include<stdio.h>int main(){ int i,j,a,b,n; scanf("%d",&n); w…… 题解列表 2023年08月18日 0 点赞 0 评论 542 浏览 评分:0.0
1303: 统计数字(C++ STL) #STLmap```c++#include#include#include#include#includeusingnamespacestd;mapnums;vectorvec;longlongn;intmain(){scanf("%d",&n);vec.resize(n);for(inti=0;i 题解列表 2023年08月18日 0 点赞 0 评论 655 浏览 评分:0.0
又是一个动态规划的题 摘要:#include<iostream> using namespace std; int main() { string s; while(getline(cin,s)) …… 题解列表 2023年08月18日 0 点赞 0 评论 569 浏览 评分:0.0
题解 2807 YHLX 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int R, Y; long int M; scanf("%…… 题解列表 2023年08月17日 0 点赞 0 评论 666 浏览 评分:6.0
题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100int main(){ int n, age[N]; int i, sum=0; float…… 题解列表 2023年08月17日 0 点赞 0 评论 592 浏览 评分:6.0
题解 2792: 三角形判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if …… 题解列表 2023年08月17日 0 点赞 0 评论 798 浏览 评分:9.9
题解 2791: 计算邮资 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; char b; scanf("%d %c", &a, &b); if (…… 题解列表 2023年08月17日 0 点赞 0 评论 539 浏览 评分:0.0
题解 2790: 分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f", &a); if ((int)a>=0&&(int)a…… 题解列表 2023年08月17日 0 点赞 0 评论 548 浏览 评分:0.0