嗜血魂K

导航

2011年7月23日 #

10878 Decode the tape

摘要: 怎么说呢,这道题比较悲哀,我本是想看别人代码长度来粗略判断这题难度,哪知道他这道题突然有了注释,一不小心就看到了ASCII. 今天做的时候顺着这个,很快便发现一共有7位,恰能表示128个数.后面的事就是处理字符串.我觉得为没看提示的话,应该还是能想出来的.= =|| (自我安慰额)#include<stdio.h>#include<string.h>#include<math.h>#define LEN 11int convert(char *buf){ int sum = 0, p = 6; for(int i = 2; i < LEN; i++) 阅读全文

posted @ 2011-07-23 18:34 嗜血魂K 阅读(259) 评论(0) 推荐(0)