诗云panther
诗云panther
全部文章
题解
生活 篮球(1)
归档
标签
去牛客网
登录
/
注册
诗云panther的博客
全部文章
/ 题解
(共80篇)
题解 | #下一个排列#
class Solution {public: /* * * @param A int整型一维数组 * @param n int A数组长度 * @param target int整型 * @return int整型vector */ ve...
2021-08-21
2
588
题解 | #整理房间#
include <stdio.h> include <math.h> typedef struct node{ int x,y;}node;bool judge(int a1 ,int b1 ,int a2 ,int b2,int a3,int b3,int a4,in...
2021-08-20
3
470
题解 | #堆棋子#
include include using namespace std; int n , x[55] , y[55] , ans[55];void helper(); int main(){ cin>>n; for(int i=0;i<n;i++) cin>>x[...
2021-08-20
3
514
题解 | #不在数组里的最小正整数#
class Solution {public: /* * * @param A int整型一维数组 * @param n int A数组长度 * @return int整型 */ int firstMissingPositive(int A, in...
2021-08-20
3
583
题解 | #珠玑妙算#
class Result {public: vector<int> calcResult(string A, string guess) { // write code here multiset<char> s; string...
2021-08-20
3
700
题解 | #取中值#
//全排列的内部实现 include include include using namespace std; const int maxn = 7; char site[maxn] = {0};string str; void solve(int num){ if(num == str.le...
2021-08-20
3
580
题解 | #最短路径问题#
include <stdio.h> include define N 26 using namespace std;struct Node{//二叉树节点 int p1;//第一个双亲的下标,-1表示不存在 int p2;//第二个双亲的下标,-1表示不存在}tree[N]...
2021-08-19
2
647
题解 | #两个整数二进制位不同个数#
include<bits/stdc++.h> using namespace std;class solution {public: string sortstr(string str) { string str1 = "";//存放1-9数...
2021-08-19
2
578
题解 | #Anniversary#
include include include using namespace std; int main(){ int a,b; cin >> a >> b; if(a==5&&b==5) cout << 5; ...
2021-08-19
6
487
题解 | #香槟塔#
include<bits/stdc++.h> const int MAXN=200015; using namespace std;int mark[MAXN],a[MAXN],b[MAXN]; int _find(int x){ if(x==0)return x; if(a...
2021-08-19
2
657
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页