[AC] SPOJ/ADDREV