Implement algorithm contest ranking service.