您当前的位置: 首页 >  Java

Java 洛谷 P1152 欢乐的跳

梁同学与Android 发布时间:2021-11-28 14:44:56 ,浏览量:5

题目链接:https://www.luogu.com.cn/problem/P1152 在这里插入图片描述

代码如下:



import java.util.Arrays;
import java.util.Scanner;



public class P1152 {

	/**
	 *@title: main 
	 *@description: TODO
	 *@author: 梁树鹏
	 *@date: 2021年11月28日 下午2:16:53
	 *@param args
	 *@throws: 
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int num  = scanner.nextInt();
		int array[] = new int[num];
		for(int i = 0;i            
关注
打赏
1688896170
查看更多评论
0.0446s