The present invention addresses the problem of providing a compound which has a PDE2A inhibitory action and is useful as an agent for preventing or treating schizophrenia, Alzheimer's disease, etc. The present invention relates to a compound represented by formula (I) [In the formula, each symbol is as described in the specification.] or a salt thereof.