melon.
melon.
全部文章
分类
归档
标签
去牛客网
登录
/
注册
melon.的博客
全部文章
(共117篇)
题解 | #兔子的序列#
from math import sqrt len = int(input()) nums = map(int,input().split()) max = 0 for i in nums: if int(sqrt(i)) ** 2 != i: if max < ...
2023-01-02
0
156
题解 | #重载运算#
class Coordinate: def __init__(self,x,y): self.x = x self.y = y def __str__(self): return f'({self.x}, {self.y})' ...
2023-01-01
1
244
题解 | #修改属性2#
class Employee: def __init__(self,name,salary): self.name = name self.salary = salary def printclass(self): return f...
2023-01-01
1
238
题解 | #修改属性2#
class Employee: def __init__(self,name,salary): self.name = name self.salary = salary def setattr(self): self.age = ...
2023-01-01
4
285
题解 | #修改属性1#
class Employee: def __init__(self,name,salary): self.name = name self.salary = salary def fuck(self): return f"{self...
2023-01-01
0
228
题解 | #班级管理#
class Student: def __init__(self,name,student_id,score,grade): self.name = name self.student_id = student_id self.sco...
2023-01-01
3
365
题解 | #素数回文#
def f(n): # 判断n是否为素数 if n == 2: return 'prime' for i in range(2,int(n ** 0.5)): # 6 if n % i == 0: return 'nop...
2022-12-25
1
285
题解 | #球的表面积#
from math import pi r = [1, 2, 4, 9, 10, 13] def f(n): return 4 * pi * n * n for i in r: print(f'{f(i):.2f}')
2022-12-25
1
263
题解 | #函数求差#
x = int(input()) y = int(input()) def f(a,b): return a - b print(f(x,y),f(y,x),sep = '\n')
2022-12-25
0
210
题解 | #兔子的数量#
def f(n): if n < 3: return n + 1 return f(n - 1) + f(n - 2) n = int(input()) print(f(n))
2022-12-25
2
345
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页