2017年1月18日

1013. Battle Over Cities (25)

摘要: 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 from/toward that c 阅读全文

posted @ 2017-01-18 14:52 于无声出听惊雷 阅读(144) 评论(0) 推荐(0) 编辑

2017年1月14日

1011. World Cup Betting (20)

摘要: With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing ba 阅读全文

posted @ 2017-01-14 16:41 于无声出听惊雷 阅读(106) 评论(0) 推荐(0) 编辑

2017年1月13日

1009. 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 one test case. Each case occu 阅读全文

posted @ 2017-01-13 16:41 于无声出听惊雷 阅读(92) 评论(0) 推荐(0) 编辑

1007. Maximum Subsequence Sum (25)

摘要: Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 <= i <= j <= K. The Maximu 阅读全文

posted @ 2017-01-13 13:14 于无声出听惊雷 阅读(117) 评论(0) 推荐(0) 编辑

1006. Sign In and Sign Out (25)

摘要: At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door 阅读全文

posted @ 2017-01-13 12:12 于无声出听惊雷 阅读(118) 评论(0) 推荐(0) 编辑

2017年1月12日

1008. Elevator (20)

摘要: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev 阅读全文

posted @ 2017-01-12 23:54 于无声出听惊雷 阅读(80) 评论(0) 推荐(0) 编辑

1004. Counting Leaves (30)

摘要: A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Each input file contain 阅读全文

posted @ 2017-01-12 20:34 于无声出听惊雷 阅读(95) 评论(0) 推荐(0) 编辑

2017年1月11日

1005. Spell It Right (20)

摘要: Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文

posted @ 2017-01-11 20:42 于无声出听惊雷 阅读(116) 评论(0) 推荐(0) 编辑

1003. Emergency (25)

摘要: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文

posted @ 2017-01-11 00:00 于无声出听惊雷 阅读(114) 评论(0) 推荐(0) 编辑

2017年1月9日

1002. A+B for Polynomials (25)

摘要: This time, you are supposed to find A+B where A and B are two polynomials. Input Each input file contains one test case. Each case occupies 2 lines, a 阅读全文

posted @ 2017-01-09 14:28 于无声出听惊雷 阅读(90) 评论(0) 推荐(0) 编辑

导航