随笔分类 -  STL

摘要:矩形判断 给出平面上4条线段,判断这4条线段是否恰好围成一个面积大于0的矩形。 Input 输入第一行是一个整数T(1<=T<=100),代表测试数据的数量。 每组数据包含4行,每行包含4个整数x1, y1, x2, y2 (0 <= x1, y1, x2, y2 <= 100000);其中(x1, 阅读全文
posted @ 2019-01-28 19:13 suvvm 阅读(419) 评论(0) 推荐(0) 编辑
摘要:Phone Bills A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per min 阅读全文
posted @ 2018-12-20 19:33 suvvm 阅读(422) 评论(0) 推荐(0) 编辑
摘要:Waiting in Line Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two 阅读全文
posted @ 2018-12-17 21:47 suvvm 阅读(673) 评论(0) 推荐(0) 编辑
摘要:Battle Over Cities It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways 阅读全文
posted @ 2018-12-16 20:34 suvvm 阅读(524) 评论(0) 推荐(0) 编辑
摘要:The Best Rank To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Lan 阅读全文
posted @ 2018-12-15 20:30 suvvm 阅读(452) 评论(0) 推荐(0) 编辑
摘要:Product of Polynomials (25 分) This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains 阅读全文
posted @ 2018-12-12 19:22 suvvm 阅读(362) 评论(0) 推荐(0) 编辑
摘要:Double Queue The new founded Balkan Investment Group Bank (BIG-Bank) opened a new office in Bucharest, equipped with a modern computing environment pr 阅读全文
posted @ 2018-10-31 23:21 suvvm 阅读(388) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示