11 2020 档案
11.14 补题
摘要:7-1 阅览室,感觉思路还好,但是写的太繁琐了,借鉴一下过的代码,又写了一遍;,代码: #include<bits/stdc++.h> using namespace std; int s[1010],w[1010]; int main() { int n; cin>>n; while(n--) { 阅读全文
posted @ 2020-11-22 13:52 小灰灰的父亲 阅读(125) 评论(0) 推荐(0)
11.8 补题
摘要:7-2 就是按照大佬的思路就是先从第一个座位开始坐,然后按照规则加上去,先把每一个队伍的编号都存起来,在最后输出: #include <cstdio> #include <algorithm> #include <iomanip> #include <iostream> #include <cmat 阅读全文
posted @ 2020-11-15 17:31 小灰灰的父亲 阅读(114) 评论(0) 推荐(0)
10.31 补题
摘要:6.求最长 的连续因子,思路就是从2找到sqrt(n) 然后取最大的,但是改了半天还是wa了一个点,代码: #include<bits/stdc++.h> using namespace std; #define LL long long vector<int>p; int main() { LL 阅读全文
posted @ 2020-11-08 20:37 小灰灰的父亲 阅读(85) 评论(0) 推荐(0)