summaryrefslogtreecommitdiff
path: root/231A
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-06-01 14:34:18 +0200
committermjkwiatkowski <mati.rewa@gmail.com>2026-06-01 14:34:18 +0200
commit7172d4f401f22192abc1e116a9a88c5078eb082f (patch)
tree65b099c01ddea514a99ad68bd6306fed1a6f8b67 /231A
initial commitHEADmaster
Diffstat (limited to '231A')
-rwxr-xr-x231A/mainbin0 -> 24216 bytes
-rw-r--r--231A/main.cpp25
2 files changed, 25 insertions, 0 deletions
diff --git a/231A/main b/231A/main
new file mode 100755
index 0000000..7cfa5d5
--- /dev/null
+++ b/231A/main
Binary files differ
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;
+}