hiho week 148 register

Ended

Participants:382

Verdict:Accepted
Score:100 / 100
Submitted:2017-04-30 10:57:53

Lang:Java

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import java.util.Scanner;
public class Main {
    
    static int w = 0;
    static int n = 0;
    static int p = 0;
    static int h = 0;
    static int[] nums;
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        int task = sc.nextInt();
        while (task>0) {
            task--;
            n = sc.nextInt();
            p = sc.nextInt();
            w = sc.nextInt();
            h = sc.nextInt();
            nums = new int[n];
            for(int i=0;i<n;i++){
                nums[i= sc.nextInt();
            }
            process();
        }
        sc.close();
    }
    
    public static void process() {
        int sizeMax = Math.min(wh);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX