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





附件列表

    原文地址:https://www.cnblogs.com/sober-reflection/p/14543158caa050b8b49399448017bf7e.html