[Problem]A compound which is useful as an inhibitor on EGFR T790M mutation kinase activity is provided.[Means for Solution]The present inventors have investigated a compound having an inhibitory action on an EGFR T790M mutation kinase, and have found that a pyrazinecarboxamide compound has an inhibitory action on an EGFR T790M mutation kinase, thereby completing the present invention. The pyrazinecarboxamide compound of the present invention has an inhibitory action on an EGFR T790M mutation kinase, and can be used as an agent for preventing and/or treating EGFR T790M mutation positive cancer, in another embodiment, EGFR T790M mutation positive lung cancer, in a still other embodiment, EGFR T790M mutation positive non-small cell lung cancer, in further still another embodiment, EGFR T790M mutation protein positive cancer, in further still another embodiment, EGFR T790M mutation protein positive lung cancer, in further still another embodiment, EGFR tyrosine kinase inhibitor-resistant cancer, in further still another embodiment, EGFR tyrosine kinase inhibitor-resistant lung cancer, and in further still another embodiment, EGFR tyrosine kinase inhibitor-resistant non-small cell lung cancer, or the like.