牛客263号
牛客263号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客263号的博客
全部文章
/ 题解
(共44篇)
题解 | #加号运算符重载#
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
C++
2022-06-27
0
0
题解 | #友元类#
#include<bits/stdc++.h> using namespace std; class phone{ // write your code here...... friend class myphone; private: int price; public: ...
C++
2022-06-27
0
259
题解 | #友元全局函数#
#include <iostream> using namespace std; class Person { // write your code here...... friend void showAge(Person& p); public: ...
C++
2022-06-27
0
268
题解 | #构造函数#
#include <iostream> #include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 i...
C++
2022-06-27
0
259
题解 | #长方形的关系#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; wi...
C++
2022-06-27
0
330
题解 | #比较长方形的面积大小#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; wi...
C++
2022-06-25
1
303
题解 | #设计立方体类#
#include <iostream> using namespace std; class Cube { // write your code here...... public: void setLength(int x){ ...
C++
2022-06-24
0
255
题解 | #密码游戏#
a = input() b = [] for i in range(len(a)): x = (int(a[i])+3)%9 b.append(x) b[0], b[2] = b[2], b[0] b[1], b[3] = b[3], b[1] for i in b: pri...
Python3
2022-06-24
126
3035
题解 | #九九乘法表#
a = int(input()) for i in range(1,a+1): for j in range(1,i+1): print(str(i)+"*"+str(j)+"="+str(i*j), end=" ") print()
Python3
2022-06-24
2
317
题解 | #编写函数实现两数交换(引用方式)#
#include <iostream> using namespace std; // write your code here...... int a(int& m,int& n){ int temp = m; m = n; n = temp;...
C++
2022-06-24
0
253
首页
上一页
1
2
3
4
5
下一页
末页