2021年9月全国计算机等级考试真题(二级C语言) 考试笔记 摘要:1、1)填空题,有的空 末尾写了';'分号,有的没有,这是一个坑! 2)填空,其它题目有与答案一样的表达式,能复制就复制过来 改改,自己多敲一个空格都导致答案错! 3)…… 文章列表 2023年03月22日 0 点赞 1 评论 702 浏览 评分:9.9
题目 1038: [编程入门]宏定义练习之三角形面积 摘要:#include #include #define S(a,b,c) t = (a+b+c)/2; int main() { int a,b,c; float t,area; scanf…… 文章列表 2023年03月21日 0 点赞 0 评论 184 浏览 评分:9.9
题目 1463: 蓝桥杯基础练习VIP-Sine之舞 摘要:#include<iostream> using namespace std; void Anprint(int N) { for(int i=0;i<N;i++) { cou…… 文章列表 2023年03月21日 0 点赞 0 评论 111 浏览 评分:0.0
题目 1051: [编程入门]结构体之成绩统计2 摘要:#include<stdio.h> #define num 100 typedef struct stu{ char sno[10]; char name[20]; …… 文章列表 2023年03月21日 0 点赞 0 评论 162 浏览 评分:9.9
我的我的我的知识点 摘要:1,用gets(s)输入时 s是用char来说明的字符;11111111111111111111111111111111111111111111111111111111111111111111…… 文章列表 2023年03月19日 0 点赞 0 评论 136 浏览 评分:0.0
水仙花数判断 摘要:#include<stdio.h>#include<math.h>int main(){ int n ,a,b,c; //a,b,c 用来存放每个位的值 scanf("%d",&n);…… 文章列表 2023年03月18日 0 点赞 0 评论 137 浏览 评分:0.0
数字三角形 动态规划 摘要:```cpp 动态规划 dp[i][j]=max(dp[i-1][j],d[i-1][j] 实际上就是记录走过的路以达到优化算法的目的 基础思想 记录每一目的地的最优路径 #include …… 文章列表 2023年03月12日 0 点赞 0 评论 190 浏览 评分:9.9
贴一个线段树的基础模板 摘要:自用 ```cpp #define ll long long const int N = 1e5 + 5; ll a[N]; class S_tree { private: // …… 文章列表 2023年03月09日 0 点赞 0 评论 205 浏览 评分:9.9
三角形输出 摘要:样例输入: 2 样例输出: A BBB 样例输入: 3 样例输出: A BBB CCCCC tips : stri…… 文章列表 2023年03月06日 0 点赞 0 评论 142 浏览 评分:0.0