2013年10月15日
摘要: http://poj.org/problem?id=3096题意容易理解,开始直接暴力,还是用map写下吧,熟练一下; 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() 8 { 9 char s[100];10 char t[5];11 int n,i;12 map mymap;13 14 while(~scanf("%s",s))15 {16 if(s[0] == '*')17 break... 阅读全文
posted @ 2013-10-15 20:28 straw_berry 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Time Limit:1000MSMemory Limit:131072KTotal Submissions:8476Accepted:2554DescriptionElina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following:Choosekdifferent positive integersa1,a2,…,ak. For some non-negativem, di 阅读全文
posted @ 2013-10-15 18:57 straw_berry 阅读(211) 评论(0) 推荐(0) 编辑