2030ssxx
2030ssxx
全部文章
分类
归档
标签
去牛客网
登录
/
注册
2030ssxx的博客
TA的专栏
0篇文章
0人订阅
王道机试指南
0篇文章
0人学习
全部文章
(共102篇)
题解 | #简单密码#
#include <iostream> using namespace std; int main() { string start,end,x; while (getline(cin,start)) { getline(cin,x); ...
2024-08-25
0
100
题解 | #密码翻译#
#include <iostream> using namespace std; int main() { string a; // while (cin >> a )直接这样会导致输入是空格是就停止输入,判断为下一个字符串 while(getli...
2024-08-25
0
100
题解 | #特殊乘法#
#include <iostream> using namespace std; int main() { string a,b; while (cin >> a >> b) { int t=0; for(int ...
2024-08-24
0
107
题解 | #找位置#
#include <iostream> #include <cstring> using namespace std; int main() { string a; while (cin >> a ) { int len=a.le...
2024-08-24
0
109
题解 | #打印极值点下标#
#include <iostream> using namespace std; int main() { int k; while (cin >> k) { int jz[k]; for(int i=0;i<k;i+...
2024-08-24
0
118
题解 | #找最小数#
#include <iostream> #include <algorithm> using namespace std; struct Pair{ int a; int b; }; bool cmp (Pair x,Pair y) { if(x.a=...
2024-08-24
0
117
题解 | #查找#
#include <iostream> #include <algorithm> using namespace std; int a[100]; int BS(int target,int n) { int left=0;int right=n-1; whi...
2024-08-24
0
104
题解 | #找x#
#include <iostream> using namespace std; int main() { int n; while (cin >> n) { int a[n]; for(int i=0;i<n;i++...
2024-08-24
0
107
题解 | #奥运排序问题#
//不知道为什么和标准答案不一样 //方法1:对比与正确输出的区别,猜测问题所在 //方法2:输出错误处的上下全部结果,找出与正确答案的区别 #include <iostream> #include <algorithm> using namespace std; str...
2024-08-23
0
132
题解 | #小白鼠排队#
#include <iostream> #include <algorithm> using namespace std; struct mice{ int weight; string color; }; bool cmp(mice x,mice y) { ...
2024-08-22
0
103
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页