走在算法之路
走在算法之路
全部文章
分类
归档
标签
去牛客网
登录
/
注册
走在算法之路的博客
全部文章
(共43篇)
题解 | #计算商场折扣#
import java.util.*; public class Main { public static void main(String[] args) { Scanner console = new Scanner(System.in); int pri...
2024-09-11
1
109
题解 | #四舍五入#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ...
2024-09-08
0
98
题解 | #简单运算#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ...
2024-09-08
1
100
题解 | #重载运算#
class Coordinate(): def __init__(self,a, b): self.a = a self.b = b def add(self, t): x = self.a + t.a y = self...
2024-06-22
1
163
题解 | #修改属性2#
class Employee: def __init__(self, name, salary): self.name = name self.salary = salary def printclass(self): try: ...
2024-06-22
0
143
题解 | #班级管理#
class Student: def __init__(self, a, b, c, d): self.姓名 = a self.学号 = b self.学生得分 = c self.作业等级 = d def show(s...
2024-06-22
0
170
题解 | #修正错误的字母#
print(input().replace('a*', 'ab'))
2024-06-21
0
173
题解 | #单词造句#
lines = [line for line in iter(input, '0')] print(' '.join(lines))
2024-06-21
1
165
题解 | #列表中第一次出现的位置#
print(input().split().index('NiuNiu'))
2024-06-21
1
157
题解 | #数学幂运算#
a, b = map(int, input().split()) print(pow(a, b)) print(pow(b, a))
2024-06-21
0
155
首页
上一页
1
2
3
4
5
下一页
末页