摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4287MAP 无压力.View Code 1 #include <iostream> 2 #include <cstdio> 3 #include <map> 4 #include <string.h> 5 using namespace std; 6 int main() 7 { 8 int t,n,m,i,j,num; 9 long ans[5005],sum,k;10 char str[7];11 int character[26]={2,2,2,3,3, 阅读全文
posted @ 2012-09-10 19:45 YORU 阅读(175) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4278进制转换,以前看过一道十进制转换为十三进制的,现在忘记哪里做过了0 1 2 3 4 5 6 7 8 9 十进制0 1 2 3 4 5 6 7 八进制View Code 1 #include <stdio.h> 2 #include <string.h> 3 int main() 4 { 5 long a[10]={0,1,2,0,3,4,5,6,0,7},i,j,sum,k; 6 char s[100]; 7 while(~scanf("%s",&s) 阅读全文
posted @ 2012-09-10 19:16 YORU 阅读(123) 评论(0) 推荐(0)