2021-11-01 22:33:16 +08:00
|
|
|
#ifndef PROBLEMCASEVALIDATOR_H
|
|
|
|
#define PROBLEMCASEVALIDATOR_H
|
|
|
|
|
|
|
|
#include "ojproblemset.h"
|
|
|
|
|
|
|
|
class ProblemCaseValidator
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProblemCaseValidator();
|
2021-11-27 15:43:47 +08:00
|
|
|
bool validate(POJProblemCase problemCase,bool ignoreSpaces);
|
|
|
|
private:
|
|
|
|
bool equalIgnoringSpaces(const QString& s1, const QString& s2);
|
|
|
|
QStringList split(const QString& s);
|
2021-11-01 22:33:16 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PROBLEMCASEVALIDATOR_H
|