24 lines
488 B
C++
24 lines
488 B
C++
#include "testlib.h"
|
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
registerValidation(argc, argv);
|
|
|
|
string game = inf.readToken("[0-5]{3}", "top");
|
|
inf.readEoln();
|
|
game += inf.readToken("[0-5]{3}", "bottom");
|
|
inf.readEoln();
|
|
inf.readEof();
|
|
|
|
vector<bool> nums(6, false);
|
|
for (char c : game)
|
|
{
|
|
ensuref(!nums[c - '0'], "Repeated occurence of number %c", c);
|
|
nums[c - '0'] = true;
|
|
}
|
|
|
|
return 0;
|
|
} |