chong_0428
chong_0428
全部文章
分类
归档
标签
去牛客网
登录
/
注册
chong_0428的博客
全部文章
(共63篇)
题解 | #查找学生信息#
while True: try: ide = [] name = [] sex = [] age = [] flag = 0 n = int(input()) for i...
2024-03-06
0
174
题解 | #剩下的树#
while True: try: arr=[] L, M = map(int, input().split()) for i in range(L+1): arr.append(1) for i in r...
2024-03-06
0
146
题解 | #最大序列和#
# def max(a, b): # if a>b: # return a # else: # return b def seqmax(s): dp=[0]*1000000 A = [0] k=1 for i i...
2024-03-06
0
165
题解 | #今年的第几天?#
def Day(y, m, d): day = 0 if y % 400 == 0 or (y % 4 == 0 and y % 100 !=0): f = 1 else: f=0 for i in range(1, 13): ...
2024-03-06
0
183
题解 | #求最大最小数#
while True: try: n = int(input()) a = list(map(int, input().split())) res = sorted(a) print("%d %d"%(res...
2024-03-06
0
164
题解 | #成绩排序#
#include<stdio.h> int main(){ int n, a[100], b[100]; scanf("%d", &n); for (int i=0; i<n; i++) scanf("%...
2024-03-06
0
177
题解 | #手机键盘#
def keyborard(s): arr = [1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,4,1,2,3,1,2,3,4] group = [1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,6,7,7,7,8,8,8,8] ...
2024-03-05
0
168
题解 | #反序输出#
while True: try: s = input() print(s[::-1]) except: break
2024-03-05
0
140
题解 | #守形数#
def fen(n): arr = [] while int(n): t = n %10 arr.append(t) n =int(n/10) return arr def shouxing(...
2024-03-04
0
218
题解 | #查找#
def find(a, b): for i in b: c=0 for j in a: if i == j: c+=1 print('YES') ...
2024-03-04
0
226
首页
上一页
1
2
3
4
5
6
7
下一页
末页