C/C++
xyr踏雪无痕
这个作者很懒,什么都没留下…
展开
-
ACM1004:公交车路线问题
这道题目中,输入的第一行包含一个整数T(0 <T< 30),这是测试用例的数量。对于每个测试用例,第一个包含两个不同的数字,表示Bo要求的起始站和结束站。Xi说,第二行是公交车路线的数量n(0 <n<= 50)。对于以下n行中的每一行,第一个数字m(2 <= m<= 100)代表公交车路线上的公交车站数量。剩下的m数字代表m公交车站。所有的公交车站都有一个数字,...原创 2018-07-23 23:07:48 · 598 阅读 · 1 评论 -
ACM1000,1001,1002: A+B问题
这三道题都属于比较基础简单的题目,按照每道题的要求写就可以了。 1000: Description Your task is to Calculate a + b. Input Input contains multiple test cases. Each test case consists of a pair of integers a and b ( 0 <= a, b &...原创 2018-07-26 10:06:34 · 657 阅读 · 0 评论 -
ACM1003: UC Browser
Description Brother Xi has recently bought a smart mobile phone. Now he surfs Internet by his mobile phone almost every day. The browser that he uses is UC Browser, which is one of the most popular m...原创 2018-07-26 10:18:15 · 240 阅读 · 0 评论 -
ACM1006: SAW
Description I want to play a game. Up until now, you've simply sat in front of computers watching others cheer to solve their problems. Now I see you as a strange mix of someone apathetic. But mostl...原创 2018-07-26 21:19:31 · 235 阅读 · 0 评论 -
ACM1007: 矩形着色
Description Danni想为屏幕上的一个矩形着色,但是她想到了一个问题。当点击鼠标以后电脑是如何判断填充的区域呢? 现在给你一个平面直角坐标系,其中有一个矩形和一个点,矩形的四条边均是平行于x轴或y轴的。请你判断这个点相对于矩形的位置,即在矩形内,在矩形上,还是在矩形外? Input 第一行只有一个整数T,(T < 150),代表共有T种情况。 接下对于每种情况,均有两行...原创 2018-07-27 11:53:24 · 247 阅读 · 0 评论 -
ACM1008: Horcrux
Description A Horcrux is an object in which a Dark wizard or witch has hidden a fragment of his or her soul for the purpose of attaining immortality. Constructing a Horcrux is considered Dark magic o...原创 2018-07-27 12:08:45 · 374 阅读 · 0 评论