摘要: #include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false) ,cin.tie(0), cout.tie(0); //#pragma GCC optimize(3,"Ofast","inlin 阅读全文
posted @ 2022-03-25 21:15 qingyanng 阅读(16) 评论(0) 推荐(0) 编辑
摘要: https://ac.nowcoder.com/acm/contest/30880/E \(nump >= logx - k, x<=1e12,k <=10\) logx 约为39,范围内对于一个数最多只用看是否存在大于等于39个质因子。 为了找出最大的那个质因子,让x取10e12,k取10,有29 阅读全文
posted @ 2022-03-25 20:04 qingyanng 阅读(47) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1656/problem/D 明显奇数直接rangk等于2 偶数: #include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false) 阅读全文
posted @ 2022-03-25 10:46 qingyanng 阅读(31) 评论(0) 推荐(0) 编辑