摘要: /* * sgu231.c * * Created on: 2011-10-1 * Author: bjfuwangzhu */#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#define nmax 8169int num[nmax] = {5, 7, 13, 19, 31, 43, 61, 73, 103, 109, 139, 151, 181, 193, 199, 229, 241, 271, 283, 313, 349, 421, 433, 463, 阅读全文
posted @ 2011-10-01 19:19 qingyezhu 阅读(455) 评论(0) 推荐(0)
摘要: import java.io.BufferedInputStream;import java.math.BigInteger;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner cin = new Scanner(new BufferedInputStream(System.in)); BigInteger num, two = BigInteger.valueOf(2), one = BigInteger.ONE; ... 阅读全文
posted @ 2011-10-01 12:00 qingyezhu 阅读(184) 评论(0) 推荐(0)
摘要: /* * sgu154.c * * Created on: 2011-10-1 * Author: bjfuwangzhu */#include<stdio.h>#define nnum 5#define nmax 0x7fffffffint getNum(int n) { int res; res = 0; while (n) { res += n / nnum; n /= nnum; } return res;}void solve(int n) { int left, right, mid, temp; l... 阅读全文
posted @ 2011-10-01 10:29 qingyezhu 阅读(320) 评论(0) 推荐(0)