This invention provides a compound or a pharmaceutical acceptable salt thereof, which has an activity of mTOR inhibition.Provided is a compound of formula (I):wherein A is a fused bicyclic nitrogen-containing heterocyclic group, which has 8- to 10-memberd saturated or aromatic structure having 1~3 nitrogen atoms; A may have n of the same or different R1as a substituent; R1is a substituent selected from a group consisting of hydroxyl, halogen, cyano, oxo, C1-4alkyl (said C1-4alkyl is optionally substituted by one or two of the same or different C1-4alkoxy or -NR7aR7b), C1-4alkoxy, halo-C1-4alkyl, -NR7aR7b, -C(O)R8, and -C(O)NR9aR9b; n is an integral of 0-3; R7a, R7b, R9a, and R9bare the same or different hydrogen or C1-4alkyl (said C1-4alkyl is optionally substituted by one or two hydroxyl); R8is hydrogen, hydroxyl, C1-4alkyl, or C1-4alkoxy; B is a 3- to 7-memberd monocyclic saturated or partially saturated cyclic hydrocarbon group, the ring may contain one or two oxygen atoms, sulfur atoms, nitrogen atoms, sulfinyl, or sulfonyl; B may have m of the same or different R2as a substituent; R2is a substituent on a carbon atom or nitrogen atom in ring B; R2is a substituent selected from a group consisting of hydroxyl, halogen, cyano, oxo, C1-4alkyl (said C1-4alkyl is optionally substituted by one or two C1-4alkoxy), C1-4alkoxy, halo-C1-4alkyl, C1-4alkylsulfonyl, C1-4alkylcarbonyl, and -NR10aR10bwhen it is a substituent on a carbon atom in ring B; R2is a substituent selected from a group consisting of hydroxyl, C1-4alkyl (said C1-4alkyl is optionally substituted by one or two C1-4alkoxy), C1-4alkoxy, halo-C1-4alkyl, C1-4alkylsulfonyl, C1-4alkylcarbonyl, and -NR10aR10bwhen it is a substituent on a nitrogen atom in ring B; R10aand R10bare the same or different hydrogen or C1-4alkyl; m is an integrai of 0-3; Q is a binding group or C1-4alkylene; R3and R4are the same or diff