跳到正文

个人记录

tmp-spj

GeorgeDeng约 1 分钟
原文
文章信息与版本

文章信息

发布
2025年8月12日
收录
2025年12月12日
更新
2026年9月4日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include "testlib.h"
int main(int argc, char* argv[]) {
    registerTestlibCmd(argc, argv);
    int pts = 0;
	int cnt = 0;
	while(!ans.eof()&&!ouf.eof()){
		cnt++;
		if(ans.readChar()==ouf.readChar()) pts++;
	} 
	if(pts==15){
		quitf(_ok, "Your answer is all correct. ");
	}else if(pts==0){
		quitf(_wa, "Your answer is all wrong. ");
	}else{
		double tmp = pts*1.0/15.0;
		quitp(tmp,"Your answer is partially correct. ");
	}
	return 0;
}
原文