"I want to ask a question" - Ask them all here!

Can someone please help me with this problem from recent codeforces contest ? http://codeforces.com/contest/1016/problem/C.

I am not able to understand the DP approach which is used here.

Any help would be appreciated. Thanks.

@vijju123, please convert this to a post. I don’t have enough karma.

Question Link:- https://www.codechef.com/problems/CIELAB

can someOne tell why it is giving wrong error ? I tried all the test cases from my side can u guys find any problem in my Code …
Scanner z = new Scanner(System.in);

	int a=z.nextInt();
	int b=z.nextInt();
	int c=a-b;
	int d=c%10;
	 
	 if(d==0)
		 System.out.println(c+1);
	 else
		 System.out.println(c-1);

WHY am I getting this error in my java code ? It works fine on my system but when I submit it at your IDE in codechef I keep etting this same error. It’s quite frustrating as I been trying to look up for its solution for about 2 hours.

spoj: The program compiled successfully, but main class was not found.
Main class should contain method: public static void main (String[] args).
CODE:=

import java.util.;
import java.io.
;
public class Main
{
public static int main(String[] args)
{
Scanner sc = new Scanner(System.in);
int t,count;
int n;
int a[],b[];
int ans=0;
t= sc.nextInt();
for(count =0;count<t;count++)
{
n= sc.nextInt();
a= new int[n];
b = new int[n];
for(count=1;count<=a.length;count++)
{
a[count] = sc.nextInt();
}
for(count=1;count<=b.length;count++)
{
b[count]=sc.nextInt();
}
for(count=1;count<=b.length;count++)
{
if(b[count]<=(a[count]-a[count-1]))
{
ans+=1;
}
}
System.out.println(ans);
}
return(0);
}
}

The error is self explanatory. Make public static int main to public static void main…

@Vijju I have made payment for a regional using UPI ( using online app ) even though NEFT was mentioned by mistake .What can I do ? It is not begin accepted from 4-5 days now ?

Mail them the transaction details/screenshot and get in contact with them over phone. Better safe than sorry.

I mailed them that 2 days ago…Also I tried calling them (Gwalior Regionals ) but no one is picking up…Do you know any other way to contact them directly …Thank you

contact link I tried : http://icpc-iiitm.com/#contact