03 2022 档案

摘要:知乎 博客园 csdn blog static还有另外一个用途,它可以限制文件的使用域 阅读全文
posted @ 2022-03-30 20:11 兮何其 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <cstring> #include <algorithm> using namespace std; int main() { char s[100]; string S; cin.getline(s,10); S=s; cout<<s<< 阅读全文
posted @ 2022-03-30 11:49 兮何其 阅读(87) 评论(0) 推荐(0) 编辑
摘要:1、put()函数 cout.put(单字符/字符形变量/ASCII码); 2、get()函数 get()函数在读入数据时可包括空白符,而提取运算符“>>”在默认情况下拒绝接收空白字符。 cin.get(字符型变量) 3、getline()函数 cin.getline(字符数组, 字符个数n, 终止 阅读全文
posted @ 2022-03-30 10:33 兮何其 阅读(34) 评论(0) 推荐(0) 编辑
摘要:#define Max(x, y)((x >= y) ? x : y)//Max(x,y) 返回x和y的最大值,x,y的类型不确定 阅读全文
posted @ 2022-03-30 10:16 兮何其 阅读(6) 评论(0) 推荐(0) 编辑
摘要:ACwing 阅读全文
posted @ 2022-03-29 09:54 兮何其 阅读(34) 评论(0) 推荐(0) 编辑
摘要:博客园 阅读全文
posted @ 2022-03-28 14:35 兮何其 阅读(14) 评论(0) 推荐(0) 编辑
摘要:int arr[] = {4, 3, 5, 2, 1, 3, 2, 3}; int n = sizeof( arr ) / sizeof( *arr ); 阅读全文
posted @ 2022-03-27 10:42 兮何其 阅读(19) 评论(0) 推荐(0) 编辑
摘要:xmuoj #include<iostream> using namespace std; typedef long long ll; const ll mod = 1e9 + 7; const int N = 1e6 + 4; ll f[N][10]; void work(){ int n; ci 阅读全文
posted @ 2022-03-25 10:36 兮何其 阅读(19) 评论(0) 推荐(0) 编辑
摘要:xmuoj #include<iostream> #include<vector> using namespace std; typedef long long ll; const int N = 5e6 + 4; ll n, V, f[N], v[N], w[N], cnt[N]; struct 阅读全文
posted @ 2022-03-25 10:19 兮何其 阅读(32) 评论(0) 推荐(0) 编辑
摘要:xmuoj #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e6 + 4; ll f[N][2], n, k; const ll mod = 1e9 + 7; int main(){ 阅读全文
posted @ 2022-03-25 09:59 兮何其 阅读(32) 评论(0) 推荐(0) 编辑
摘要:ACwing 阅读全文
posted @ 2022-03-20 14:14 兮何其 阅读(28) 评论(0) 推荐(0) 编辑
摘要:xmuoj //!皮卡丘分番茄酱 #include<bits/stdc++.h> using namespace std; const int N = 1e4 + 10; int n, k; int q[N]; vector<double> v; bool iseaten(vector<double 阅读全文
posted @ 2022-03-19 16:41 兮何其 阅读(69) 评论(0) 推荐(0) 编辑
摘要:blog 阅读全文
posted @ 2022-03-19 15:02 兮何其 阅读(8) 评论(0) 推荐(0) 编辑
摘要:csdn 阅读全文
posted @ 2022-03-17 22:10 兮何其 阅读(16) 评论(0) 推荐(0) 编辑
摘要:进制 阅读全文
posted @ 2022-03-13 13:59 兮何其 阅读(20) 评论(0) 推荐(0) 编辑
摘要:借鉴更相减损术: LL gcd_sub(LL a,LL b) //化大为小,求其指数的最大公因数 { if(a<b) swap(a,b); //更相减损术总是大减小(它们的底数是一样的) if(b==1) return a; return gcd_sub(b,a/b); } 阅读全文
posted @ 2022-03-12 16:11 兮何其 阅读(43) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/byn12345/article/details/79523516?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164653713816780271536000%2522%252C%252 阅读全文
posted @ 2022-03-06 11:40 兮何其 阅读(31) 评论(0) 推荐(0) 编辑
摘要:112. 雷达设备 - AcWing题库 阅读全文
posted @ 2022-03-03 21:48 兮何其 阅读(9) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示