We can user complement principle here!
Cases where A gets atleast one book = total cases - A doesn't get any book
Total cases: as each book is distinct each book can be given to A ,B or C. So 3 choices for each book. total 3^10.
Cases where A doesn't get any book : same as above but only B and C are two choices so 2^10.