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. }





附件列表

     

    posted @ 2015-01-29 15:40  sober_reflection  阅读(190)  评论(0编辑  收藏  举报