JXH001
JXH001
全部文章
分类
归档
标签
去牛客网
登录
/
注册
JXH001的博客
全部文章
(共30篇)
题解 | #找位置#
#include<iostream> #include<string.h> using namespace std; typedef struct { char x; int num; }S; void binarysearch(S *a,int n) { int i...
2024-02-15
0
195
题解 | #打印极值点下标#
#include<iostream> using namespace std; typedef struct { int tag; int x; }k; int main() { k arr[100]; int n; while (cin >> n) { fo...
2024-02-15
0
203
题解 | #找最小数#
#include<iostream> #include<algorithm> using namespace std; typedef struct { int x; int y; }T; bool compx(T left, T right) { if (left.x...
2024-02-15
0
164
题解 | #查找#
#include<iostream> #include<algorithm> using namespace std; int main() { int n,num,x; while (cin >> n) { int arr[n]; for (int...
2024-02-15
0
150
题解 | #找x#
#include<iostream> #include<algorithm> using namespace std; int main() { int n,x,i; int arr[201]; while (cin >> n) { for (int ...
2024-02-15
0
188
题解 | #整数奇偶排序#
#include<iostream> #include<algorithm> using namespace std; bool compare1(int left, int right) { if (left > right) { return true; ...
2024-02-14
0
200
题解 | #特殊排序#
#include<iostream> #include<algorithm> using namespace std; int main() { int n; while (cin>>n) { int array[n]; for (int i = 0...
2024-02-14
0
199
题解 | #成绩排序#
#include<iostream> #include<algorithm> #include<cstdio> using namespace std; typedef struct { int sequence; string name; int grad...
2024-02-14
0
166
题解 | #成绩排序#
#include<iostream> #include<algorithm> using namespace std; typedef struct { int number; int grade; }student; bool comp(student left,st...
2024-02-13
0
169
题解 | #排序#
#include <stdio.h> #include<iostream> #include <algorithm> #include<cstdio> using namespace std; int main() { int a[101]; in...
2024-02-13
0
146
首页
上一页
1
2
3
下一页
末页