Kattis Problem: Faktor


Sample Solution

import java.util.Scanner;
public class Faktor {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), i = sc.nextInt();
        int x = a * i;
        while (((double) –x / a) > i – 1) {
}Code language: JavaScript (javascript)

Discover more from BHUTAN IO

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top