codeforces—— 490A —— Team Olympiad

在Berland的首都第0所学校里,有n个孩子,他们都是天才,擅长编程、数学或体育。每个孩子只能擅长一门学科。为了参加科学十项全能奥林匹克比赛,教师决定组建由不同专长的孩子组成的队伍,即每个队伍需要一名编程选手、一名数学选手和一名体育选手。题目要求确定最大参赛队伍数量及具体组成。输入包含两个整数,分别表示孩子总数和他们的专长。输出最大队伍数和队伍构成。如果无法组队,则输出队伍数为0。
摘要由CSDN通过智能技术生成
A. Team Olympiad
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

The School №0 of the capital of Berland has n children studying in it. All the children in this school are gifted: some of them are good at programming, some are good at maths, others are good at PE (Physical Education). Hence, for each child we know value ti:

  • <
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值