全部评论
这也太🐶了,我电脑屏幕都快看破了也不知道是什么问题
太恶心人了吧,咱们可以反馈重评吗
问一下 大家有面试了吗
阿伟yyds
无语,看了一个小时都不觉得有错就直接交卷了。结果给我这样搞我?
请问可以用本地IDE嘛
6.67 0 0 人麻了,测试用例都过了呀,自己造了一些数据也过了
究极无语...
代码写好了 输入搞崩了
package org.wangyi; import java.util.*; public class Test01 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] jump=new int[n]; for(int i=0;i<n;i++){ jump[i]=sc.nextInt(); } int res=bfs(jump); System.out.println(res); } public static int bfs(int[] jump){ Queue<Integer> queue=new LinkedList<>(); queue.offer(0); int cnt=0; while (!queue.isEmpty()) { int size=queue.size(); for(int k=0;k<size;k++){ Integer node = queue.poll(); if(node>=jump.length){ return cnt; } for(int i=0;i<node;i++){ queue.offer(i); } queue.offer(node+jump[node]); } cnt++; } return cnt; } }
请问可以去最高分吗,我最后没改过来😭
???震惊
这是啥意思,我也20,while cin 一个个加吗,我直接for循环取值了😓
卧槽?
相关推荐
点赞 评论 收藏
分享
点赞 评论 收藏
分享
专业嗎喽:硕佬,把学校背景放后面几段,学校背景双非还学院,让人看了就不想往下看。
把实习经历和个人奖项放前面,用数字化简述自己实习的成果和掌握的技能,比如负责项目一次通过率90%,曾4次发现项目潜在问题风险为公司减少损失等等 点赞 评论 收藏
分享
12-15 15:37
河南科技学院 Web前端 点赞 评论 收藏
分享
