bcxp
bcxp
全部文章
题解
归档
标签
去牛客网
登录
/
注册
bcxp的博客
全部文章
/ 题解
(共72篇)
题解 | #十进制整数转十六进制字符串#
#include <string> using namespace std; #include<algorithm> string toHexString(int n); //该函数可以将10进制转换为任意的radix进制数,n是要转换的十进制数 string intToA(...
2022-06-18
0
434
题解 | #个人所得税计算程序#
// write your code here...... #include<algorithm> #include<vector> #include<iomanip> using namespace std; class Employee { pri...
2022-06-16
0
353
题解 | #判断元素是否出现#
#include<bits/stdc++.h> #include<map> using namespace std; int main(){ //write your code here...... map<int,string>ma; int n,m...
2022-04-18
0
305
题解 | #查找#
来自专栏
#include<bits/stdc++.h> using namespace std; int main(){ set<int>s; //write your code here...... int n,m,x,a; cin>>n>>m...
2022-04-18
6
364
题解 | #去除字符串中重复的字符#
#include <iostream> // write your code here...... #include<set> using namespace std; int main() { char str[100] = { 0 }; cin.get...
2022-04-18
0
287
题解 | #返回每个顾客不同订单的总金额#
使用右连接,以Orders表为基准 select cust_id,sum(item_price*quantity)as total_ordered from OrderItems a right join Orders b on a.order_num=b.order_num group by c...
2022-04-17
0
248
题解 | #最后k个元素#
#include<bits/stdc++.h> using namespace std; int main(){ int n,k; vector<int>a; // write your code here...... cin>>n>>k...
2022-04-17
0
323
题解 | #智能排队系统#
#include <iostream> #include <deque> using namespace std; class Guest { public: string name; bool vip; Guest(string name, bo...
2022-04-17
0
296
题解 | #多态实现求面积体积#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2022-04-17
0
270
题解 | #返回购买 prod_id 为 BR01 的产品的所有顾客的电子邮件(一)#
嵌套查询 多结果in select cust_email from Customers where cust_id in( select cust_id from Orders where order_num in( select order_num ...
2022-04-16
0
329
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页