Нийлбэр Hyzgaarlalt bas olon bolomjtoi tohioldold yahaa bicheegui bsn bolhoor jaahn so bsn bolomj taaj bgad bodtsn Yunii umnu anhnii daraalalaa int (n[] gej temdelene) daraalal bolgon huvirgana. Daraalal L urttai gey. (n[i]+n[j])%10=n[L-1] , j<i<L-1 bhd hosiig haij olood, 0-s i hurtelh gishuniig, i+1 -s j hurtelh gishuuniig, j+1 -s L-1 hurtelh gishuuniig neg neg massivt (N, M ,P gey) hiiged N+M=P esehiig shalgaad biylej bvl hevleed programaa duusgana. hervee N+M=P , (n[i]+n[j])%10=n[L-1] bh i,j hos oldhgui bol "shiidgui" gej hevlene. Tataj avaad sonirhooroi. Neleen oilgomjgui bh shu sorry
|