diff options
Diffstat (limited to '231A/main.cpp')
| -rw-r--r-- | 231A/main.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/231A/main.cpp b/231A/main.cpp new file mode 100644 index 0000000..25c8637 --- /dev/null +++ b/231A/main.cpp @@ -0,0 +1,25 @@ +#include <iostream> +#include <string> + +using namespace std; +int main(){ + int a; + int score=0; + string str; + getline(cin, str,'\n'); + a = stoi(str); + for(int i = 0; i < a; i++){ + getline(cin, str,'\n'); + int score2=0; + for(int j = 0; j < str.size(); j++){ + if(str.at(j) == '1'){ + score2++; + } + } + if(score2 >= 2){ + score++; + } + } + cout<<score; + return 0; +} |
