首页 > 代码库 > hdu acm 1007

hdu acm 1007

  1. #include <stdio.h>
  2. int main()
  3. {
  4. freopen("read.txt", "w", stdout);
  5. for(int j=0; j<=1000000000; j+=100)
  6. {
  7. int tp = j;
  8. int seat = 1;
  9. int all = 0;
  10. while(tp)
  11. {
  12. all += tp%10 * seat;
  13. seat *= 2;
  14. tp /=10;
  15. }
  16. printf("%d,", all);
  17. }
  18. return 0;
  19. }



来自为知笔记(Wiz)


附件列表

     

    hdu acm 1007