首页 > 其他 > 详细

hdu acm 1007

时间:2015-01-29 15:50:33      阅读:135      评论:0      收藏:0      [点我收藏+]
  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. }





附件列表

     

    hdu acm 1007

    原文:http://www.cnblogs.com/sober-reflection/p/14543158caa050b8b49399448017bf7e.html

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
    © 2014 bubuko.com 版权所有
    打开技术之扣,分享程序人生!