摘要: A factory produces products packed in square packets of the same height h and of the sizes 1x1, 2x2, 3x3, 4x4, 5x5, 6x6. These products are always delivered to customers in the square parcels of the same height h as the products have and of the size 6x6. Because of the expenses it is the interest of 阅读全文
posted @ 2011-05-13 15:29 Ac_smile 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 判断数N在k进制下是否为回文数,其中k∈[2,16],输出K。wa了一次,原因:在如果不存在k的情况下,不小心在n前面加了个& 输出了n的地址,导致错误。#include"stdio.h"int s[50000];int main(){ //freopen("1078b.txt","w",stdout); int n; while(scanf("%d",&n)!=EOF,n) { int base[16]; int i,k=0; for(i=2;i<=16;i++) { int j=0,tmp 阅读全文
posted @ 2011-05-13 11:42 Ac_smile 阅读(305) 评论(0) 推荐(0) 编辑