L456
L456
全部文章
分类
归档
标签
去牛客网
登录
/
注册
L456的博客
全部文章
(共33篇)
题解 | #素数#
#include <bits/stdc++.h> using namespace std; bool is_sushu(int a) { bool res=true; for(int i=2;i<=sqrt(a);i++) { if(a%i==0) { res...
2024-03-20
1
261
题解 | #搬水果#
#include <bits/stdc++.h> using namespace std; int main() { int n,m; while(cin>>n) { if(!n) break; priority_queue<int,vector<...
2024-03-19
2
224
题解 | #怪异的洗牌#
#include <bits/stdc++.h> using namespace std; int main() { int n,k; while(cin>>n>>k) { int a[n]; if(!n&&!k) break; ...
2024-03-19
1
268
题解 | #数字阶梯求和#
#include <bits/stdc++.h> using namespace std; //大数加法 string addString(string a,string b) { string res; int carry=0; int i=a.size()-1...
2024-03-19
0
249
题解 | #排名#
#include <bits/stdc++.h> using namespace std; struct arc{ string num; int grade; }; bool cmp(arc a,arc b) { if(a.grade==b.grade) return sto...
2024-03-18
0
237
题解 | #开门人和关门人#
#include <bits/stdc++.h> using namespace std; struct arc{ string num; string ct; string lt; }; int change(string s) { int t; t=stoi(s.sub...
2024-03-18
0
198
题解 | #还是A+B#
#include <bits/stdc++.h> using namespace std; int main(){ string sa,sb; int k; while(cin>>sa>>sb>>k) { int res; if(sa...
2024-03-17
0
183
题解 | #统计字符#
#include <bits/stdc++.h> using namespace std; int main() { string s1,s2; while(getline(cin,s1)) { map<char,int> myMap; if(s1==&quo...
2024-03-17
2
211
题解 | #火星A+B#
#include <bits/stdc++.h> using namespace std; int sushu[26]; vector<string> addString(vector<string> &s1,int i,vector<string...
2024-03-17
0
243
题解 | #火星A+B#
#include <bits/stdc++.h> using namespace std; int sushu[26]; vector<string> addString(vector<string> &s1,int i,vector<string...
2024-03-17
0
230
首页
上一页
1
2
3
4
下一页
末页