present_
present_
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
present_的博客
全部文章
(共33篇)
题解 | #链表分割#
import java.util.*; /* public class ListNode { int val; ListNode next = null; ListNode(int val) { this.val = val; } }*/ publ...
2024-09-05
0
60
题解 | #字符串最后一个单词的长度#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner sc =...
2024-08-05
0
116
题解 | #淘汰排名最后的学生#
s = input().split(" ") lst = [] for i in s: lst.append(i) for i in range(3): lst.pop() print(lst)
2024-06-13
0
158
题解 | #删除好友#
s = input().split(" ") name = input() lst = [] for i in s: lst.append(i) lst.remove(name) print(lst)
2024-06-13
0
171
题解 | #删除简历#
s = input().split(" ") lst = [] for i in s: lst.append(i) del lst[0] print(lst)
2024-06-13
0
154
题解 | #增加派对名单(二)#
s = input().split(" ") lst = [] for i in s: lst.append(i) lst.insert(0, "Allen") print(lst)
2024-06-13
0
141
题解 | #增加派对名单(一)#
s = input().split(" ") lst = [] for i in s: lst.append(i) lst.append("Allen") print(lst)
2024-06-13
0
155
题解 | #列表的长度#
s = input().split(" ") lst = [] for i in s: lst.append(i) print(len(lst))
2024-06-13
0
125
题解 | #生成数字列表#
s = input().split(" ") lst = [] for i in s: lst.append(int(i)) print(lst)
2024-06-13
0
145
题解 | #生成列表#
s = input().split(" ") lst = [] for i in s: lst.append(i) print(lst)
2024-06-13
0
146
首页
上一页
1
2
3
4
下一页
末页