文章列表

筛选

笔记(关于递归的)

摘要:题目:不用循环,递归升序输出1-100 参考代码: ```c #include int print(int a) { if(a……

一种利用switch_case特性的巧妙解法

摘要:# 一种利用switch_case特性的巧妙解法——减少代码量 ## 原题提供 企业发放的奖金根据利润I提成。 利润I低于或等于100000元的,奖金可提10%; 利润高于100000元,……

冒泡排序代码

摘要:#include <bits/stdc++.h> using namespace std; typedef long long ll ; ll a[1000] ; int main() { ……

数组模拟阶乘计算

摘要:```cpp #include using namespace std; const int N = 1e4+10; int ans[N]; int main() { int n; c……

前六章复习赛题目E

摘要:#include <bits/stdc++.h> using namespace std; int main() {    int a,sum=0;    cin>>a;    for(i……

保留两位小数(备忘)(常用)

摘要:##四舍五入到小数点后两位 float sum=round(sum*100)/100;         10.523——10.52 ##舍入到小数点后两位 float sum=floor(sum……