Renouncement
I know that the official proof using the pumping lemma has been published above. However, I will go for a completely unofficial explanation, because, in my opinion, it usually helps to have some intuition about the problem before making an official decision.
General intuition
, - , , , , . , . .
?
, DFS . , a b c ( D_abc). DFS . 10 a 100 a. . , a ( D_abc), , , .. .
: ?
. () , () . :
(.. D_abc = 0), , (.. a D_abc <- 1, , b c D_abc <- -1).
a (.. D_abc > 0), a , (.. D_abc <- D_abc + 1, else a (.. D_abc <- D_abc - 1).
, b c (.. D_abc < 0), a b c , (.. D_abc <- D_abc - 1), (.. D_abc <- D_abc + 1).
, D_abc, , . , , .