03 2022 档案
摘要:知乎 博客园 csdn blog static还有另外一个用途,它可以限制文件的使用域
阅读全文
摘要:#include <iostream> #include <cstring> #include <algorithm> using namespace std; int main() { char s[100]; string S; cin.getline(s,10); S=s; cout<<s<<
阅读全文
摘要:1、put()函数 cout.put(单字符/字符形变量/ASCII码); 2、get()函数 get()函数在读入数据时可包括空白符,而提取运算符“>>”在默认情况下拒绝接收空白字符。 cin.get(字符型变量) 3、getline()函数 cin.getline(字符数组, 字符个数n, 终止
阅读全文
摘要:#define Max(x, y)((x >= y) ? x : y)//Max(x,y) 返回x和y的最大值,x,y的类型不确定
阅读全文
摘要:int arr[] = {4, 3, 5, 2, 1, 3, 2, 3}; int n = sizeof( arr ) / sizeof( *arr );
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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(){
阅读全文
摘要: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
阅读全文
摘要:借鉴更相减损术: LL gcd_sub(LL a,LL b) //化大为小,求其指数的最大公因数 { if(a<b) swap(a,b); //更相减损术总是大减小(它们的底数是一样的) if(b==1) return a; return gcd_sub(b,a/b); }
阅读全文
摘要:https://blog.csdn.net/byn12345/article/details/79523516?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164653713816780271536000%2522%252C%252
阅读全文