就是一个多测题,假设你对了 x 组,给你 ⌊100×Tx⌋ 分。
写挂了,交上去 std WA,求调。
#include "testlib.h"
int main(int argc, char* argv[]) {
registerTestlibCmd(argc, argv);
int a=0,b=0;
while(!ans.eof()){
int pans=ouf.readInt();
int jans=ans.readInt();
if (pans==jans) a++;
b++;
}
if(a==b) quitf(_ok, "The answer is correct.");
quitp(int(100*(a/b)),"Partially Correct get %d percent", 100*int(100*(a/b)));
return 0;
}