Hi, I am getting test cases 1,2 and 4 right, but the remaining as WA. The code is below
import java.util.*;
class videogame
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int h = sc.nextInt();
int a[]= new int[n];
int x;
for(int i=0;i<n;i++)
Read more… (156 words)