#include "testlib.h" #include #include #include const int MIN_N = 1; const int MAX_N = 100000; const int MIN_A = 0; const int MAX_A = 998244353 - 1; int main(int argc, char** argv) { registerValidation(argc, argv); const int n = inf.readInt(MIN_N, MAX_N, "N"); inf.readEoln(); for (int i = 0; i < n; ++i) { inf.readInt(MIN_A, MAX_A, "A"); if (i + 1 < n) { inf.readSpace(); } } inf.readEoln(); inf.readEof(); return 0; }