网站首页 站内搜索

搜索结果

查询Tags标签: rabbits,共有 3条记录
  • python列表推导式_鸡兔同笼

    题目: 雉兔各几何?今有雉兔同笼,上有三十五头,下有九十四足,问雉兔各几何?输出示例: 雉兔同笼,兔有12只,雉有23只rabbits = [x for x in range(1, 36) if x * 4 + (35 - x) * 2 == 94]print(雉兔同笼,兔有%d只,雉有%d只 % (rabbits[0], 35 - rabbits[0]))

    2022/1/16 12:33:36 人评论 次浏览
  • python列表推导式_鸡兔同笼

    题目: 雉兔各几何?今有雉兔同笼,上有三十五头,下有九十四足,问雉兔各几何?输出示例: 雉兔同笼,兔有12只,雉有23只rabbits = [x for x in range(1, 36) if x * 4 + (35 - x) * 2 == 94]print(雉兔同笼,兔有%d只,雉有%d只 % (rabbits[0], 35 - rabbits[0]))

    2022/1/16 12:33:36 人评论 次浏览
  • 【Virtual Judge】The 2019 China Collegiate Programming Contest Harbin Site-Keeping Rabbits

    Keeping Rabbits DreamGrid is the keeper of n rabbits. Initially, the i-th (1≤i≤n) rabbit has a weight of wi. Every morning, DreamGrid gives the rabbits a carrot of weight 1 and the rabbits fight for the only carrot. Only one rabbit wins the fight an…

    2021/6/17 18:59:13 人评论 次浏览
扫一扫关注最新编程教程