上一页 1 ··· 4 5 6 7 8
  2020年3月9日
摘要: Problem Description Your task is to calculate the sum of some integers. Input Input contains an integer N in the first line, and then N lines follow. 阅读全文
posted @ 2020-03-09 21:04 沈香茶 阅读(106) 评论(0) 推荐(0)
摘要: /*A+B for Input-Output Practice (I)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 213862 Accepte 阅读全文
posted @ 2020-03-09 16:17 沈香茶 阅读(153) 评论(0) 推荐(0)
  2020年3月8日
摘要: Problem Description Op tech briefing, 2002/11/02 06:42 CST "The item is locked in a Klein safe(克莱因保险柜) behind a painting in the second-floor library. 阅读全文
posted @ 2020-03-08 15:40 沈香茶 阅读(219) 评论(0) 推荐(0)
  2020年3月7日
摘要: Problem Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at w 阅读全文
posted @ 2020-03-07 13:50 沈香茶 阅读(103) 评论(0) 推荐(0)
  2020年3月6日
摘要: 先将两个字符串位置相同且大小相等的数字全都换成字母‘x’,(为什么要先剔除大小相等的呢,例如例子 01123,11100 )在用哈希表收集secret中每个字母的个数,遍历guess字符串,若发现guess的数字在secret中存在,那么肯定是位置不同的了(因为位置相同且大小相等的已经换成'x'了, 阅读全文
posted @ 2020-03-06 23:21 沈香茶 阅读(161) 评论(0) 推荐(0)
  2020年3月1日
摘要: 首先看pattern中字母的个数与str中单词的个数是否相等。如果不相等则直接返回0,如果相等则建立哈希映射, 每个字母对应一个不同的单词。 对于pattern和str相同位置上的单词和字母有以下判断: 1如何字母上还没有值,则与str上对应单词联系起来,进入下一位置 2如过字母上已经有值,且就是当 阅读全文
posted @ 2020-03-01 22:19 沈香茶 阅读(138) 评论(0) 推荐(0)
摘要: 迭代法如下 char * countAndSay(int n){ char * res = (char *)malloc(sizeof(char)*10000); char * res0 = (char *)malloc(sizeof(char)*10000); int i,j,d,num; res 阅读全文
posted @ 2020-03-01 15:22 沈香茶 阅读(130) 评论(0) 推荐(0)
  2020年2月12日
摘要: #include<stdio.h> int F(int ,int ,int); int main() { int a=0; int b=0; int n=0; int res=0; while(1) { scanf("%d%d%d",&a,&b,&n); if(a==0&&b==0&&n==0) b 阅读全文
posted @ 2020-02-12 21:02 沈香茶 阅读(93) 评论(0) 推荐(0)
  2020年2月1日
摘要: Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. InputThe first line of 阅读全文
posted @ 2020-02-01 15:42 沈香茶 阅读(156) 评论(0) 推荐(0)
摘要: Problem DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guess 阅读全文
posted @ 2020-02-01 15:34 沈香茶 阅读(124) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8