Untitled
#include <iostream> using namespace std; int main() { int a; cin >> a; int y = 24; int i = 0; while (y > 0) { cin >> a; y -= 1; if (a == 1) { i++; } } cout << i; return 0; }
#include <iostream> using namespace std; int main() { int a; cin >> a; int y = 24; int i = 0; while (y > 0) { cin >> a; y -= 1; if (a == 1) { i++; } } cout << i; return 0; }