文章列表
2997(亲测有效)
摘要:```cpp
#include
using namespace std;
int main(){
cout……
2006题解(加经验)
摘要:#include<iostream>using namespace std;int main(){ int a; cin>>a; if(a>0)cout<<"positive"<<e……
n的阶乘定义为n!=1*2*3*……*n 如3!=6 n!通常最后会有很多0,如5!=120 最后有一个0,现在统计n!去除末尾的0后,最后k位是多少
摘要:#include<stdio.h>#include<math.h>int main(){ int n,k; scanf("%d%d",&n,&k); long long sum=1;……
带分数 (dfs)c++
摘要:题目描述100 可以表示为带分数的形式:100 = 3 + 69258 / 714。还可以表示为:100 = 82 + 3546 / 197。注意特征:带分数中,数字1~9分……
重开(acwing):快速排序
摘要://先排序后递归 左右边界要扩大1
#include<iostream>
using namespace std;
const int N=10010;
int n,a[N];
void q……
精品文章
大连交通大学五年制C语言试卷一 考试笔记
摘要:第1题C语言源程序文件经过C编译程序编译后生成的目标文件的后缀为( )。A. .exe 解析:可执行文件的后缀B. .c 解析:源文件的后缀C. .obj 解析 :编译后目标文件的……
stdbool.h头文件的作用
摘要:1、使用后可以使用ture和false来表示真假
2、在不能使用该头文件前,bool类型实际上是int类型,只能用1和0来表示真假……