随笔分类 - STL
摘要:矩形判断 给出平面上4条线段,判断这4条线段是否恰好围成一个面积大于0的矩形。 Input 输入第一行是一个整数T(1<=T<=100),代表测试数据的数量。 每组数据包含4行,每行包含4个整数x1, y1, x2, y2 (0 <= x1, y1, x2, y2 <= 100000);其中(x1,
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:Double Queue The new founded Balkan Investment Group Bank (BIG-Bank) opened a new office in Bucharest, equipped with a modern computing environment pr
阅读全文