Untitled

mail@pastecode.io avatar
unknown
plain_text
10 months ago
214 B
2
Indexable
Never
#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;
}