We have to construct LR parsing table,
For SLR(1) parsing table, we have to find all LR(0) items and make sure that no item should contain either SR/RR conflict, then grammar is SLR(1).
Similarly for LALR(1), we need to find all LR(1) items.
For the above question ,
the LR(1) items are,
For LR(0) items, we will get SR conflict due to productions S->dc and A->d,
hence grammar is LALR(1) but not SLR(1).
Correct me if i am wrong.