代码太难写
代码太难写
全部文章
分类
归档
标签
去牛客网
登录
/
注册
代码太难写的博客
全部文章
(共196篇)
题解 | #构造函数#
#include <iostream> #include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 i...
2023-05-15
1
268
题解 | #长方形的关系#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; wi...
2023-05-15
2
271
题解 | #设计立方体类#
#include <cstdlib> #include <iostream> using namespace std; #include <bits/stdc++.h> class Cube { private: int length; ...
2023-05-12
0
263
题解 | #输出水仙花数#
#include <iostream> #include "cmath" using namespace std; int main() { cout<<153<<endl; cout<<370<<endl; cout&...
2023-05-12
0
235
题解 | #结构体简单使用#
#include <iostream> #include <string> using namespace std; using student = struct student{ // write your code here...... int age...
2023-05-11
0
272
题解 | #使用字符函数统计字符串中各类型字符的个数#
#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str); int whitespace = 0;...
2023-05-11
0
310
题解 | #创建二维动态数组#
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; // write your code here...... int **nums = new int...
2023-05-11
0
213
题解 | #字符的个数#
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; // write your code here...... int s1 = 0,s2 = 0...
2023-05-11
0
241
题解 | #字符串拼接#
#include <iostream> #include <string> using namespace std; int main() { string s1, s2; getline(cin, s1); getline(cin...
2023-05-11
0
243
题解 | #规律数列求和#
#include <iostream> using namespace std; int main() { // write your code here...... cout<<11111111100; return 0; }
2023-05-07
0
190
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页