关注
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] strTemp = sc.nextLine().split("]");
List<List<Integer>> map = new LinkedList();
for(String str : strTemp) {
List<Integer> path = new LinkedList<>();
for (int i = 0; i < str.length(); i++) {
if(str.charAt(i) - '0' >= 0 &;&; str.charAt(i) - '0' <= 9) {
path.add(str.charAt(i) - '0' );
}
}
map.add(new ArrayList(path));
}
boolean res = verify(map);
System.out.print(res);
}
查看原帖
点赞 评论
相关推荐
投递亚马逊等公司10个岗位 >
点赞 评论 收藏
分享
牛客热帖
正在热议
# 面试体验感最好的是哪家? #
21410次浏览 168人参与
# 怎么防止在试用期被辞退 #
37815次浏览 404人参与
# 东方财富校招 #
12900次浏览 225人参与
# 国央企求职进展汇总 #
4701次浏览 22人参与
# 四大天坑是哪四家? #
46721次浏览 145人参与
# 比亚迪求职进展汇总 #
297753次浏览 1699人参与
# 职场人,说说你的烦心事 #
1074次浏览 25人参与
# 腾讯工作体验 #
243329次浏览 2228人参与
# 携程求职进展汇总 #
12091次浏览 105人参与
# 你觉得找工作该拿大厂还是小厂练手 #
108080次浏览 1366人参与
# 来聊聊你目前的求职进展 #
377150次浏览 4422人参与
# 实习,投递多份简历没人回复怎么办 #
2016675次浏览 30931人参与
# 机械人,你最希望上岸的公司是? #
60532次浏览 1154人参与
# 设计人的面试记录 #
55054次浏览 800人参与
# 硬件人的简历怎么写 #
177702次浏览 2371人参与
# 学信网能看师兄师姐就业去向了 #
74052次浏览 214人参与
# 哪些公司面试官让你印象深刻? #
64696次浏览 636人参与
# 现在还是0offer,延毕还是备考 #
599762次浏览 5766人参与
# 听到哪句话就代表面试稳了or挂了? #
20489次浏览 96人参与
# 你的秋招简历被谁挂了? #
50751次浏览 724人参与
# 拼多多求职进展汇总 #
45547次浏览 714人参与