A. Teamtime limit per test2 secondsmemory limit per test256 megabytesi dịch - A. Teamtime limit per test2 secondsmemory limit per test256 megabytesi Việt làm thế nào để nói

A. Teamtime limit per test2 seconds

A. Team
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

One day three best friends Petya, Vasya and Tonya decided to form a team and take part in programming contests. Participants are usually offered several problems during programming contests. Long before the start the friends decided that they will implement a problem if at least two of them are sure about the solution. Otherwise, the friends won't write the problem's solution.

This contest offers n problems to the participants. For each problem we know, which friend is sure about the solution. Help the friends find the number of problems for which they will write a solution.
Input

The first input line contains a single integer n (1 ≤ n ≤ 1000) — the number of problems in the contest. Then n lines contain three integers each, each integer is either 0 or 1. If the first number in the line equals 1, then Petya is sure about the problem's solution, otherwise he isn't sure. The second number shows Vasya's view on the solution, the third number shows Tonya's view. The numbers on the lines are separated by spaces.
Output

Print a single integer — the number of problems the friends will implement on the contest.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
A. Teamtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day three best friends Petya, Vasya and Tonya decided to form a team and take part in programming contests. Participants are usually offered several problems during programming contests. Long before the start the friends decided that they will implement a problem if at least two of them are sure about the solution. Otherwise, the friends won't write the problem's solution.This contest offers n problems to the participants. For each problem we know, which friend is sure about the solution. Help the friends find the number of problems for which they will write a solution.InputThe first input line contains a single integer n (1 ≤ n ≤ 1000) — the number of problems in the contest. Then n lines contain three integers each, each integer is either 0 or 1. If the first number in the line equals 1, then Petya is sure about the problem's solution, otherwise he isn't sure. The second number shows Vasya's view on the solution, the third number shows Tonya's view. The numbers on the lines are separated by spaces.OutputPrint a single integer — the number of problems the friends will implement on the contest.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
A. Đội
thời gian giới hạn cho mỗi bài kiểm tra
2 giây
giới hạn bộ nhớ cho mỗi bài kiểm tra
256 MB
đầu vào
tiêu chuẩn đầu vào
đầu ra
đầu ra tiêu chuẩn Một ngày ba người bạn tốt nhất Petya, Vasya và Tonya quyết định thành lập một nhóm nghiên cứu và tham gia vào các cuộc thi lập trình. Những người tham gia thường được cung cấp một số vấn đề trong các cuộc thi lập trình. Rất lâu trước khi bắt đầu các bạn đã quyết định rằng họ sẽ thực hiện một vấn đề nếu có ít nhất hai trong số họ chắc chắn về các giải pháp. Nếu không, bạn sẽ không phải viết giải pháp của vấn đề. Cuộc thi này cung cấp n vấn đề với những người tham gia. Đối với mỗi vấn đề chúng ta biết, đó là người bạn chắc chắn về các giải pháp. Giúp các bạn tìm số vấn đề mà họ sẽ viết một giải pháp. Input Dòng đầu vào đầu tiên chứa một số nguyên n duy nhất (1 ≤ n ≤ 1000) - số lượng các vấn đề trong các cuộc thi. Sau đó n dòng chứa mỗi ba số nguyên, mỗi số nguyên là 0 hoặc 1. Nếu số đầu tiên trong dòng bằng 1, sau đó Petya là chắc chắn về giải pháp của vấn đề, ​​nếu không thì anh không phải là chắc chắn. Số thứ hai cho thấy xem Vasya về các giải pháp, số thứ ba cho thấy quan điểm của Tonya. Các con số trên các dòng được tách bằng dấu cách. Output In một số nguyên duy nhất - số vấn đề các bạn sẽ thực hiện vào cuộc thi.









đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: