。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。3004(C++) 摘要:#include<iostream>using namespace std;int main(){ int A,B,C; cin>>A>>B>>C; cout<<(A*0.2)+(B…… 文章列表 2023年02月05日 0 点赞 0 评论 215 浏览 评分:9.9
作为初学者学习C语言时犯过的错与心得 摘要:第一:刚开始时不太适应,老是忘记一个语句后面接分号隔开。第二:格式问题。我作为一个初学者经常不注意格式的美观,格式排版的好对于后续检查程序有很大帮助。第三:学习C语言需要很强的逻辑思维,这方面得努力培…… 文章列表 2023年02月09日 0 点赞 0 评论 194 浏览 评分:9.9
取整的调用 摘要:取整函数介绍,对a进行取整:一、(int)a取整方式是舍弃小数部分,是强制格式转换二、以下函数floor和ceil以及round要调用数学库,且返回值都是双精度浮点型,注意格式转换(1)floor(a…… 文章列表 2023年02月15日 0 点赞 0 评论 375 浏览 评分:9.9
题目 1155: C语言训练-阶乘和数* 摘要:#include <stdio.h>#include <math.h>void main(){ int s,s1,t,n; int i,j=0,k; int temp,t1; …… 文章列表 2023年02月24日 0 点赞 0 评论 226 浏览 评分:9.9
题目 1162: 密码 摘要:#include<stdio.h>#include <math.h>void main(){ char mm[20],*p; int i,m,sz,zm,dzm,qt; int d1…… 文章列表 2023年02月27日 0 点赞 0 评论 197 浏览 评分:9.9
使用编程解决四省联考数学T16(C++) 摘要:问题描述:  ------------ 解题思路: 直接暴搜,DF…… 文章列表 2023年03月03日 0 点赞 0 评论 328 浏览 评分:9.9
贴一个线段树的基础模板 摘要:自用 ```cpp #define ll long long const int N = 1e5 + 5; ll a[N]; class S_tree { private: // …… 文章列表 2023年03月09日 0 点赞 0 评论 297 浏览 评分:9.9
数字三角形 动态规划 摘要:```cpp 动态规划 dp[i][j]=max(dp[i-1][j],d[i-1][j] 实际上就是记录走过的路以达到优化算法的目的 基础思想 记录每一目的地的最优路径 #include …… 文章列表 2023年03月12日 0 点赞 0 评论 264 浏览 评分:9.9
题目 1051: [编程入门]结构体之成绩统计2 摘要:#include<stdio.h> #define num 100 typedef struct stu{ char sno[10]; char name[20]; …… 文章列表 2023年03月21日 0 点赞 0 评论 250 浏览 评分: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 评论 267 浏览 评分:9.9