wydxry
wydxry
全部文章
题解
归档
标签
去牛客网
登录
/
注册
wydxry的博客
全部文章
/ 题解
(共86篇)
题解 | #判断元素是否出现#
#include<bits/stdc++.h> using namespace std; int main(){ //write your code here...... int n, m, x; unordered_map<int, int> mp; ...
C++
2022-04-15
0
336
题解 | #智能排队系统#
#include <iostream> #include <deque> using namespace std; class Guest { public: string name; bool vip; Guest(string name, bo...
C++
2022-04-14
0
332
题解 | #数字在升序数组中出现的次数#
class Solution { public: int GetNumberOfK(vector<int> data ,int k) { if (data.size() == 0) return 0; int l = 0, r = data.siz...
C++
2022-04-14
0
359
题解 | #和为S的两个数字#
class Solution { public: vector<int> FindNumbersWithSum(vector<int> array,int sum) { int i = 0, j = array.size() - 1; ...
C++
2022-04-14
0
313
题解 | #创建二维动态数组#
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; // write your code here...... int** a = new int*[n...
C++
2022-04-12
0
295
题解 | #求长方体表面积#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
C++
2022-04-11
0
332
题解 | #重写子类计算逻辑#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { this->x = x;...
C++
2022-04-11
0
333
题解 | #子类中调用父类构造#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { ...
C++
2022-04-11
0
326
题解 | #重载小于号#
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
C++
2022-04-11
0
329
题解 | #数组类的拷贝构造函数#
#include<bits/stdc++.h> using namespace std; class Array{ private: int n;//数组大小 int *a;//数组 public: Array(){ cin>>n; a=new...
C++
2022-04-11
5
580
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页