Language: C++

import java.io.*;
import java.util.*;
public class Main{
    private static void solver(InputReader sc, PrintWriter out) throws Exception {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int count=0;
            if(a > b){
                count += a/b;
                if(a%b > 0)
                    count++;
            }
            else {
                count += b / a;
                if(b%a > 0)
                    count++;
            }
            out.println(count);

    }
    private static boolean helper(long x){
        double ans = Math.sqrt(x);
        return ans%1!=0;
    }

    private static int gcd(int a, int b){
        if(b==0)
            return a;
        return gcd(b, a%b);
    }
    public static void main(String[] args) throws Exception {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        solver(in,out);
        out.close();
    }
    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }
        public long nextLong() {
            return Long.parseLong(next());
        }
        public int[] readIntArray(int n){
            int arr[] = new int[n];
            for(int i=0;i<n;i++) arr[i] = nextInt();
            return arr;
        }
    }
}
class Pair  {
    int x;
    int y;

    Pair(int x, int y) {
        this.x = x;
        this.y = y;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Pair pair = (Pair) o;
        return x == pair.x &&
                y == pair.y;
    }

    @Override
    public int hashCode() {
        return Objects.hash(x, y);
    }
}

Compiler output:
a.cc:81:5: error: stray '@' in program
   81 |     @Override
      |     ^
a.cc:90:5: error: stray '@' in program
   90 |     @Override
      |     ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
a.cc:81:6: error: 'Override' does not name a type
   81 |     @Override
      |      ^~~~~~~~
a.cc:90:6: error: 'Override' does not name a type
   90 |     @Override
      |      ^~~~~~~~
a.cc:94:2: error: expected ';' after class definition
   94 | }
      |  ^
      |  ;
a.cc: In constructor 'Pair::Pair(int, int)':
a.cc:77:14: error: request for member 'x' in '(Pair*)this', which is of pointer type 'Pair*' (maybe you meant to use '->' ?)
   77 |         this.x = x;
      |              ^
a.cc:78:14: error: request for member 'y' in '(Pair*)this', which is of pointer type 'Pair*' (maybe you meant to use '->' ?)
   78 |         this.y = y;
      |              ^