题目就不抄了,终于用c++A了这道题有几点需要注意的1.k 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #define i... Read More
1579: [Usaco2009 Feb]Revamping Trails 道路升级Time Limit:10 SecMemory Limit:64 MBSubmit:1251Solved:337[Submit][Status]Description每天,农夫John需要经过一些道路去检查牛棚N里面... Read More
1674: [Usaco2005]Part AcquisitionTime Limit:5 SecMemory Limit:64 MBSubmit:259Solved:114[Submit][Status]DescriptionThe cows have been sent on a mission... Read More
1631: [Usaco2007 Feb]Cow PartyTime Limit:5 SecMemory Limit:64 MBSubmit:459Solved:338[Submit][Status]Description农场有N(1≤N≤1000)个牛棚,每个牛棚都有1只奶牛要参加在X牛棚举行的奶... Read More
2208: [Jsoi2010]连通数Time Limit:20 SecMemory Limit:512 MBSubmit:1235Solved:488[Submit][Status]DescriptionInput输入数据第一行是图顶点的数量,一个正整数N。 接下来N行,每行N个字符。第i行第j列... Read More
A. Vasya and Socks题意:起初给你n双袜子,每天穿一双,每到m天会多一双新的,求有多少天有袜子穿题解:模拟即可代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #inc... Read More