← Home
For problem statement at 0-999/100-199/180-189/188/problemC.txt this is a correct solution, but verifier at 0-999/100-199/180-189/188/verifierC.go ends with All tests passed can you fix the verifier? package main

import "fmt"

func gcd(a, b int) int {
	for b != 0 {
		a, b = b, a%b
	}
	return a
}

func main() {
	var a, b int
	fmt.Scan(&a, &b)
	fmt.Print((a * b) / gcd(a, b))
}