标签:des style http color java os io strong
2 11 7F 08 08 08 7F 38 54 54 54 18 00 41 7F 40 00 00 41 7F 40 00 38 44 44 44 38 00 00 00 00 00 3F 40 38 40 3F 38 44 44 44 38 7C 08 04 04 08 00 41 7F 40 00 38 44 44 48 7F 5 14 08 3E 08 14 04 02 01 02 04 40 40 40 40 40 04 02 01 02 04 14 08 3E 08 14
Case 1: # # ## ## # # ## # # # # # # # # # # # ### # # ### # # ### # ## # ## # ##### # # # # # # # # # # # ## # # # ## # # ##### # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ### ### ### ### # # ### # ### #### Case 2: # # # # # # # # # # # # # # # # # # ### ### # # # # # # # # #####
#include <stdio.h> #define maxn 482 char map[8][maxn]; bool isPrint[8]; void getIsPrint(int n) { for(int i = 0; i < 7; ++i){ isPrint[i] = n & 1; n >>= 1; } } int main() { //freopen("stdout.txt", "w", stdout); int t, n, arr[5], i, j, id, k, cas = 1; scanf("%d", &t); while(t--){ scanf("%d", &n); for(i = id = 0; i < n; ++i){ for(j = 0; j < 5; ++j, ++id){ scanf("%X", arr + j); getIsPrint(arr[j]); for(k = 0; k < 7; ++k) if(isPrint[k]) map[k][id] = '#'; else map[k][id] = ' '; } if(i != n - 1){ for(k = 0; k < 7; ++k) map[k][id] = ' '; ++id; } } printf("Case %d:\n\n", cas++); for(k = 0; k < 7; ++k){ map[k][id] = '\0'; printf("%s\n", map[k]); } printf("\n"); } return 0; }
HDU3257 Hello World!,布布扣,bubuko.com
标签:des style http color java os io strong
原文地址:http://www.cnblogs.com/mfrbuaa/p/3927773.html