codes from lydsy.com that is worhwhile to remind