牛客226545250号
牛客226545250号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客226545250号的博客
全部文章
(共45篇)
题解 | 小苯送礼物
#include <iostream> #include <vector> #include <algorithm> using namespace std; struct Info{ int power; int y; int i; /...
2025-08-27
0
14
题解 | 尼科彻斯定理
#include <iostream> using namespace std; int main(){ int n; cin>>n; int first = n*(n-1) + 1; // 第一个数 string res; for...
2025-08-27
0
12
题解 | 计算日期到天数转换
#include <iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int count = 0; int arr[13] = {...
2025-08-27
0
18
题解 | 百钱买百鸡问题
#include <iostream> using namespace std; int main() { for (int i = 0; i <= 25; ++i) { for (int j = 0; j <= 33; ++j) { ...
2025-08-27
0
18
题解 | 查找输入整数二进制中1的个数
#include <iostream> using namespace std; int main(){ int m,n; cin>>m>>n; int count_m = 0; int count_n = 0; whi...
2025-08-27
0
13
题解 | 放苹果
#include <iostream> using namespace std; int countWays(int m,int n){ if(m == 0){ return 1; } if(n == 0){ return 0;...
2025-08-26
0
19
题解 | 查找组成一个偶数最接近的两个素数
#include <iostream> #include <vector> #include <cmath> #include <list> using namespace std; bool isPrim(int num){ if(num ...
2025-08-26
0
18
题解 | 完全数计算
#include <iostream> #include <vector> using namespace std; int main(){ int n; cin>>n; vector<int> res; if(n =...
2025-08-26
0
17
题解 | 不要三句号的歪
#include <iostream> #include <vector> #include <sstream> using namespace std; int main(){ string str; cin>>str; i...
2025-08-26
0
19
题解 | 杨辉三角的变形
#include <iostream> using namespace std; int main(){ int n; cin>>n; if(n <= 2){ cout << -1 << endl; ...
2025-08-26
0
15
首页
上一页
1
2
3
4
5
下一页
末页