diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-06-01 14:34:18 +0200 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-06-01 14:34:18 +0200 |
| commit | 7172d4f401f22192abc1e116a9a88c5078eb082f (patch) | |
| tree | 65b099c01ddea514a99ad68bd6306fed1a6f8b67 /231A | |
Diffstat (limited to '231A')
| -rwxr-xr-x | 231A/main | bin | 0 -> 24216 bytes | |||
| -rw-r--r-- | 231A/main.cpp | 25 |
2 files changed, 25 insertions, 0 deletions
diff --git a/231A/main b/231A/main Binary files differnew file mode 100755 index 0000000..7cfa5d5 --- /dev/null +++ b/231A/main 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; +} |
