上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 进制 阅读全文
posted @ 2022-03-13 13:59 兮何其 阅读(25) 评论(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 兮何其 阅读(47) 评论(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 兮何其 阅读(34) 评论(0) 推荐(0)
摘要: 112. 雷达设备 - AcWing题库 阅读全文
posted @ 2022-03-03 21:48 兮何其 阅读(10) 评论(0) 推荐(0)
摘要: AcWing 1232. 三体攻击(蓝桥杯C++ AB组辅导课) - AcWing 阅读全文
posted @ 2022-02-27 11:26 兮何其 阅读(12) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iostream> #include <cstring> #include <algorithm> using namespace std; void swap(int &a ,int &b) { int temp=a; a=b; b=te 阅读全文
posted @ 2022-02-27 10:32 兮何其 阅读(18) 评论(0) 推荐(0)
摘要: #include <iostream> #include <vector> using namespace std; int length,n; vector<vector<int>> ans; void find(vector<int> &a,vector<int> &t,int index){ 阅读全文
posted @ 2022-02-22 18:09 兮何其 阅读(35) 评论(0) 推荐(0)
摘要: 当用char数组时候,cin.getline(c,20); 第一个参数是char数组名,第二个是带输入的字符串的最大长度 当用string接收的时候,用getline(cin,s); 第一个是确定从键盘输入,第二个参数是string名 注意:当前面有cin时,要加上getchar(); 阅读全文
posted @ 2022-02-08 09:51 兮何其 阅读(147) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int ans = 0; for(int i = 0; i < 26; i++){//暴力枚举 bitset<32> bits;//记录 A - 阅读全文
posted @ 2022-01-31 12:34 兮何其 阅读(38) 评论(0) 推荐(0)
摘要: http://c.biancheng.net/view/7236.html 阅读全文
posted @ 2022-01-31 09:00 兮何其 阅读(17) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页