#include "testlib.h" #include #include using namespace std; const int MIN_N = 2; const int MAX_N = 100'000; const int MAX_SUM_S = 200'000; const int MIN_S = 2; const int MAX_S = 100'000; int main() { registerValidation(); int N=inf.readInt(MIN_N,MAX_N); inf.readEoln(); int sum_s=0; for(int i = 0; i < N; i++) { string s = inf.readString(); for(int j = 0; j < (int)s.size(); j++) { assert('a' <= s[j] && s[j] <= 'z'); } sum_s += s.size(); assert((int)s.size() <= MAX_S); } inf.readEof(); assert(sum_s <= MAX_SUM_S); }