牛客263号
牛客263号
全部文章
分类
题解(44)
归档
标签
去牛客网
登录
/
注册
牛客263号的博客
全部文章
(共65篇)
题解 | #元组的操作#
lists = [3, 6, 9, 0, 5, 8]tuples1 = tuple(lists)n = int(input())print(tuples1[3:])if n not in tuples1: for i in range(3): lists.append(n) ...
2022-06-30
0
0
题解 | #加号运算符重载#
#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
267
题解 | #友元全局函数#
#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
254
题解 | #密码游戏#
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
首页
上一页
1
2
3
4
5
6
7
下一页
末页