judge.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:Play.Excel 作者: abhijithasokan 项目源码 文件源码
def validate(self,pid):

        """

        This function compares the output file with the key

        Args :

            pid : The id of the problem to map to the correct key.

        Returns :

            WA : Wrong Answer , if comparison fails.
            AC : Accepted , if comparison succeeds.

        """

        if filecmp.cmp(self.cwd+"/tmp/output.txt",self.cwd+"/env/key/key"+str(pid)+".txt")==True:
                    return "AC"
        else:
                    return "WA"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号