摘要: You have a necklace of N red, white, or blue beads (3 2 #include 3 #include 4 #include 5 #define maxn 1111 6 using namespace std; 7 int c; 8 char s... 阅读全文
posted @ 2016-01-23 17:23 Sunny糖果 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Is Friday the 13th really an unusual event?That is, does the 13th of the month land on a Friday less often than on any other day of the week? To answe... 阅读全文
posted @ 2016-01-23 15:15 Sunny糖果 阅读(187) 评论(0) 推荐(0) 编辑
摘要: A group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money. Each of these friends might or might not give some money to... 阅读全文
posted @ 2016-01-23 15:11 Sunny糖果 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Your Ride Is HereIt is a well-known fact that behind every good comet is a UFO. These UFOs often come to collect loyal supporters from here on Earth. ... 阅读全文
posted @ 2016-01-23 15:09 Sunny糖果 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1. 常见用法。 char buf[512]; sscanf("123456","%s",buf);//此处buf是数组名,它的意思是将123456以%s的形式存入buf中! printf("%s\n",buf); 结果为:1234562. 取指定长度的字符串。如在下例中,取最大长度为4字节... 阅读全文
posted @ 2015-12-25 09:16 Sunny糖果 阅读(279) 评论(0) 推荐(0) 编辑