Untitled
#include <iostream> using namespace std; int main() { int n; int a; int b = 1; int m = 0; cin >> n; for (int i = 1; b <= n; b++) { cin >> a; m = m + 1; if (a % 2 == 0) { cout << "*"; } if (m % 5 > 0) { if (a % 2 > 0) { cout << "-"; } } if (m % 5 == 0) { cout << "@"; } } }