perper__
perper__
全部文章
分类
归档
标签
去牛客网
登录
/
注册
perper__的博客
全部文章
(共5篇)
题解 | 分解质因数
#include <bits/stdc++.h> using namespace std; using ll=long long; auto isprime(ll n)->bool{ if(n<2)return false; if(n==2||n==3)ret...
2026-02-05
1
27
题解 | 田忌赛马
#include <bits/stdc++.h> using namespace std; bool a[3]; int main(){ vector<int> q(3),t(3); for(int i=0;i<3;i++){ cin&g...
2026-01-29
0
22
题解 | 无限长正整数排列字符串
#include <bits/stdc++.h> using namespace std; int main(){ int n,i=1; cin>>n; string s; while(1){ s+=to_string(i); ...
2025-11-09
0
33
题解 | 记数问题
#include <bits/stdc++.h> using namespace std; int main(){ string s; int n,x; cin>>n>>x; vector <int> v(10); ...
2025-11-06
1
38
题解 | 求四位数各个数位之和
#include <bits/stdc++.h> using namespace std; int main() { string s; int sum = 0; cin >> s; for (int i = 0; i < s.size...
2025-11-02
0
34