摘要: 题目描述 好了,现在是小托米的故事啦~~~ 可爱的小托米得到了n瓶饮料. 但他不小心把开盖的工具弄丢了,所以他只能利用饮料瓶来开盖. 已知第i个瓶子的品牌为ai,且其能打开bi品牌的瓶子. 问有几瓶饮料托米无法喝到. 被用于打开饮料瓶的瓶子不一定需要被打开. 一个瓶子不能打开其本身. 输入描述: 第 阅读全文
posted @ 2018-06-01 21:30 霜雪千年 阅读(325) 评论(0) 推荐(1)
摘要: Problem description Petya loves lucky numbers. Everybody knows that positive integers are lucky if their decimal representation doesn't contain digits 阅读全文
posted @ 2018-06-01 19:49 霜雪千年 阅读(1728) 评论(0) 推荐(0)
摘要: Problem description There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading 阅读全文
posted @ 2018-06-01 19:19 霜雪千年 阅读(232) 评论(0) 推荐(0)
摘要: Problem description wHAT DO WE NEED cAPS LOCK FOR? Caps lock is a computer keyboard key. Pressing it sets an input mode in which typed letters are cap 阅读全文
posted @ 2018-06-01 18:55 霜雪千年 阅读(409) 评论(0) 推荐(0)
摘要: Problem description Vasya has recently learned to type and log on to the Internet. He immediately entered a chat room and decided to say hello to ever 阅读全文
posted @ 2018-06-01 18:46 霜雪千年 阅读(430) 评论(0) 推荐(0)
摘要: Problem description You've got a 5 × 5 matrix, consisting of 24 zeroes and a single number one. Let's index the matrix rows by numbers from 1 to 5 fro 阅读全文
posted @ 2018-06-01 18:40 霜雪千年 阅读(473) 评论(0) 推荐(0)