Acaibird
Acaibird
全部文章
分类
个人笔记(18)
题解(14)
归档
标签
去牛客网
登录
/
注册
Acaibird的博客
全部文章
(共30篇)
STL交集,并集函数set_union,set_intersection,set_difference
//#include <bits/stdc++.h> #include <functional> #include <iostream> #include <cstdio> #include <algorithm> #include <...
2022-09-26
0
367
cin成员函数
cin.fail();格式错误,未读取到预期参数值类型;指针不变,设置流状态为failbit; cin.bad();输入发生毁灭性错误,导致io不稳定 cin.eof();遇到文件终止符 cin.good(); cin.get(char c); cin.get(char c,int ,终止字符); ...
2022-09-21
0
317
求字符串的周期
两个案例之间换行输出: 除开第一个案例,其他的直接输出答案中之前先输出一个换行; //#include <bits/stdc++.h> #include <functional> #include <iostream> #include <cstdio>...
2022-09-21
0
415
求多边形面积公式(已经知道顶点坐标)
链接 int t; cin>>t; while(t--) { int n; cin>>n; for(int i=1;i<=n;i++){ double x,y,x0,y0,sum = 0.0; cin ...
2022-08-29
0
328
cin,cout流对象
1.cout<<endl;立即输出输出缓冲区的数据,并且刷新缓冲区;如果是cout<<'\n'则不会刷新缓冲区,只是会换行。 2.cerr直接输出无缓冲区; 3.clog有缓冲区; 4.cin.get(char *,n,delimiter) 只是读取n-1个字符给字符指针所在...
2022-08-21
0
0
错排递归公式
链接
2022-08-18
0
254
读取一行
链接
2022-08-04
0
188
对象指针,this指针
#include <iostream> using namespace std; class student { string name; int id; char gender; public: student(string a, int b, ch...
C++
2022-08-01
0
271
题解 | #[CQOI2009]中位数图# 数组的前缀、后缀和
#include <bits/stdc++.h> using namespace std; int main() { int n, b; scanf("%d %d", &n, &b); i...
C++
数组
2022-07-27
0
351
题解 | #机器翻译#
模拟这个过程 solution 1 判断单词是否在内存之中,我们用数组实现。如果以单词值为下标的数组vis值不为0,则表示这个单词在内存之中,遇到同样的单词,下标相同,数组元素值相同不为0,则不需要从外存词典读入。则实现了单词是否在内存的判断。 #include <stdio.h> #i...
2022-07-23
0
308
首页
上一页
1
2
3
下一页
末页