阿里8.23笔试ac情况统计


#阿里笔试##阿里巴巴#
全部评论
我不配去阿里.......
点赞 回复
分享
发布于 2021-08-23 20:06
我不配去阿里
点赞 回复
分享
发布于 2021-08-23 20:07
滴滴
校招火热招聘中
官网直投
第一题不说了 第二题不就是个01背包问题么,但是没写对 存水量就是物品价值 距离x2就是物品重量 总油量就是背包容量 道路不通的话就是价值0重量0 然后逐个遍历求最大值就行了
点赞 回复
分享
发布于 2021-08-23 20:08
我不配去阿里
点赞 回复
分享
发布于 2021-08-23 20:09
第一题不知道为什么,用例都是对的,编译通过率0,有大佬帮忙看一下错哪里了吗? public class Main {     public static void main(String[] args) {         Scanner in = new Scanner(System.in);         int n = in.nextInt();         List<List<Integer>> lists = new ArrayList<>();         for (int i = 0; i < 3; i++) {             List<Integer> lists2 = new ArrayList<>();             for (int j = 0; j < n; j++) {                 int a = in.nextInt();                 lists2.add(a);             }             Collections.sort(lists2);             lists.add(lists2);         }
点赞 回复
分享
发布于 2021-08-23 20:14

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务