watears
watears
全部文章
分类
归档
标签
去牛客网
登录
/
注册
watears的博客
全部文章
(共9篇)
题解 | #求最大最小数#
#include <iostream> #include <set> using namespace std; int main() { int n; while (cin >> n) { // 注意 while 处理多个 case ...
2024-03-25
0
212
题解 | #玛雅人的密码#
#include<bits/stdc++.h> using namespace std; string tmp; int n; void bfs(string t) { queue<pair<string, int> >q; q.push({t,...
2024-03-25
0
262
题解 | #球的半径和体积#
#include<bits/stdc++.h> using namespace std; int main() { vector<double>v; double t; while (cin >> t) { v.push...
2024-03-25
0
272
题解 | #成绩排序#
#include <bits/stdc++.h> using namespace std; set<pair<int,int>>s; int main() { int t;cin>>t; int a,c; while(cin...
2024-03-25
0
269
题解 | #整数拆分#
#include <iostream> using namespace std; int dp[1000005]={0}; int main() { //每个数唯一二进制表示,可看作多重背包 int n; cin>>n; dp[0]=1; ...
2024-03-25
0
292
题解 | #质因数的个数#
#include <iostream> using namespace std; int res=0; inline void find(int n) { for(int i=2;i<=n;i++) if(n%i==0){ res++; ...
2024-03-25
0
324
题解 | #代理服务器#
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; set<string > s,pre;//s服务器,pre访问地址 while(n...
2024-03-24
0
292
题解 | #约数的个数#
#include <iostream> using namespace std; //1e9开根号大概是3*10^4,再*1000直接能暴力跑 int main() { int n; cin>>n; while(n--) { ...
2024-03-24
0
253
题解 | #成绩排序#
#include <bits/stdc++.h> using namespace std; struct sc{ string name; int score; }; bool cmp1(sc a,sc b){ return a.score<b.scor...
2024-03-24
0
237