Untitled
unknown
c_cpp
2 years ago
220 B
5
Indexable
#include <iostream>
#include <string>
using namespace std;
int main()
{
string a;
int count = 0;
for (int i = 0; i < 25; i++) {
cin >> a;
if (a == "1") {
count += 1;
}
}
cout << count;
}Editor is loading...