← Home
For problem statement at 0-999/500-599/510-519/519/problemC.txt this is a correct solution, but verifier at 0-999/500-599/510-519/519/verifierC.go ends with All tests passed can you fix the verifier? package main

import "fmt"

func main() {
	var n, m int
	fmt.Scan(&n, &m)
	ans := n
	if m < ans {
		ans = m
	}
	if (n+m)/3 < ans {
		ans = (n + m) / 3
	}
	fmt.Println(ans)
}