I borrowed this story from my library around 30 years ago, so not much detail, but I remember it always intrigued me and I've always wanted to read it again.
I know there was at least one human left, a man I think, and there was something to do with machines/robots printing out answers; the last answer being quite devastating with no hope left for the man.