牛客575029355号
牛客575029355号
全部文章
分类
题解(45)
归档
标签
去牛客网
登录
/
注册
牛客575029355号的博客
全部文章
(共56篇)
题解 | 长方形的关系
#include <iostream> using namespace std; class rectangle { private: int length, width; public: void set(int x, int y) { length = x; width...
2026-04-24
0
8
题解 | 十进制整数转十六进制字符串
#include <iostream> #include <string> using namespace std; string toHexString(int n); int main() { int n; cin >> n; ...
2026-04-24
0
7
题解 | 重写子类计算逻辑
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { this->x = x;...
2026-04-23
0
10
题解 | 点和圆的关系
#include <iostream> #include <cmath> #include <string> using namespace std; class Pointer { public: int x; int y; Pointer(int x,...
2026-04-23
0
7
题解 | 设计立方体类
#include <iostream> using namespace std; class Cube { public: Cube(int length, int width, int height) { this->length = length; this-&g...
2026-04-23
0
7
题解 | 函数实现计算一个数的阶乘
#include <iostream> using namespace std; long long factorial(int n); int main() { int n = 0; cin >> n; if (n > 1) { cout <&l...
2026-04-23
0
9
题解 | 统计字符串中子串出现的次数
#include <cstring> #include <iostream> #include <string> using namespace std; int main() { char str[100] = { 0 }; char substr[100...
2026-04-23
0
14
题解 | 比较字符串大小
#include <iostream> using namespace std; int mystrcmp(const char* src, const char* dst); int main() { char s1[100] = { 0 }; char s2[100] = {...
2026-04-23
0
9
题解 | 规律数列求和
#include <iostream> using namespace std; int main() { long sum = 9; long old = sum; // write your code here...... for(int i = 2...
2026-04-21
0
7
题解 | #决策树的生成与训练-信息熵的计算#
import pandas as pd from math import log def calcInfoEnt(): datas = pd.read_csv('dataSet.csv',header=None) labels = datas.iloc[:,-1].value_co...
2023-10-06
0
374
首页
上一页
1
2
3
4
5
6
下一页
末页