fork(1) download
  1. public class BearPaints {
  2. public long maxArea(int A, int B, long M) {
  3. long res = 0;
  4. for(int a = 1; a <= A; ++a)
  5. res = Math.max(res, a * Math.min(M / a, (long) B));
  6. return res;
  7. }
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class BearPaints is public, should be declared in a file named BearPaints.java
public class BearPaints {
       ^
1 error
stdout
Standard output is empty