第一次用pair数对 摘要:#include<bits/stdc++.h> using namespace std; pair<int,int>a[10]; int main() { int sum1=0,sum2=…… 题解列表 2024年07月29日 0 点赞 0 评论 158 浏览 评分:0.0
【欧拉筛法】哥德巴赫曾猜测 摘要:```cpp #include using namespace std; const int N = 32770; int prime[N];//存储质数 int num[N];//标注是…… 题解列表 2024年07月27日 0 点赞 0 评论 216 浏览 评分:0.0
好用的STL双端队列(1) 摘要:#include<bits/stdc++.h> using namespace std; deque<int>q; int main() { char c[1000]; c…… 题解列表 2024年07月26日 0 点赞 0 评论 132 浏览 评分:0.0
好用的STL双端队列 摘要:#include<bits/stdc++.h> using namespace std; deque<char>q; int main() { char c[100]; while(c…… 题解列表 2024年07月26日 0 点赞 0 评论 202 浏览 评分:0.0
2936: 简单算术表达式求值 摘要:```cpp #include using namespace std; int js(int a,char c,int b){ if(c=='+') cout…… 题解列表 2024年07月25日 0 点赞 0 评论 345 浏览 评分:0.0
1157: 亲和数 摘要:```cpp #include using namespace std; int qhs(int x,int y){ int a=0,b=0; for(int i=1;i…… 题解列表 2024年07月25日 0 点赞 0 评论 155 浏览 评分:0.0
编写题解 2247: 蓝桥杯算法提高-输出三个整数的最大数 摘要:```cpp #include using namespace std; int max(int a,int b,int c){ couta>>b>>c; max(a,b,c); r…… 题解列表 2024年07月25日 0 点赞 0 评论 149 浏览 评分:0.0
利用数组的方法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<vector>int main() { int m = 0; cin >> …… 题解列表 2024年07月25日 0 点赞 0 评论 211 浏览 评分:0.0
编写题解 1010: [编程入门]利润计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,f; char s[200]; a=…… 题解列表 2024年07月24日 0 点赞 0 评论 236 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:```cpp #include using namespace std; int a[100]; int hy(int n,int m){ for(int i=n-m+1;im; hy…… 题解列表 2024年07月24日 2 点赞 0 评论 277 浏览 评分:9.9