求助!!!杭电 1004 Let the balloon rise (Wrong Answer)

不知道为什么,这道题一直Wrong Answer,哪位大神帮我看看吧!谢啦!

 

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Color c = new Color();
        c.give();
    }
    
}

class Color {
    public void give(){
        Scanner input = new Scanner(System.in);
        int value = input.nextInt();
        String[] array = new String[value];
        for(int i = 0 ; i  max){
                        max = sum;
                        array2 = arrayF2[i];
                    }
                }
            }else{
                array2 = arrayF2[0];
            }
            System.out.println(array2);
            Color c = new Color();
            c.give();       
        }
    }
}

 

你可能感兴趣的:(java,未过的题目)