2013年3月11日
摘要: 题目链接。分析:本题难点在于看不懂题(英语真的很重要)。该题是输出小于n的special number的数量(quantity)。暴力+二分。AC代码如下:#include <stdio.h>#include <string.h>#define MAXN 10000010int q[MAXN];unsigned char hash[11];int main(){ int n, i, t, top=0, high, low, mid, pos; for(i=1; i<=MAXN; i++){ memset(hash, 0, sizeof(hash)); t... 阅读全文
posted @ 2013-03-11 22:38 Still_Raining 阅读(251) 评论(0) 推荐(0)