`

小学奥数编程题(4)

阅读更多
题目:
ABCDE FGHIJ 为0~9的不同数字组成的两个数,首数字不为零,具有两倍关系, 即FGHIJ=2*ABCDE,问ABCDE在所有可能数里,最大和最小数是多少?

需要的类库可以从 https://github.com/raistlic/raistlic-lib-commons-core 下载

编程解法: 

import org.raistlic.common.permutation.Combination;
import org.raistlic.common.permutation.Permutation;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * ABCDE FGHIJ 为0~9的不同数字组成的两个数,首数字不为零,具有两倍关系, 即FGHIJ=2XABCDE,问ABCDE在所有可能数里,最大和最小数是多少?
 * Created by xwx on 16/1/2.
 */
public class NumMax {

        static  long min = Long.MAX_VALUE;
        static  long max = Long.MIN_VALUE;

        public static void main(String[] args) {

            System.out.println("===== demo Combination :");

            final List<Integer> full_list = Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);

            for(List<Integer> list : Combination.of(full_list,5)){

                List<Integer> list2 = new ArrayList<Integer>();
                list2.addAll(full_list);
                list2.removeAll(list);

                System.out.println(list+"-"+list2);

                for(List<Integer> slist1:Permutation.of(list))
                   for(List<Integer> slist2:Permutation.of(list2))
                      isAnswer(slist1, slist2);

            }

            System.out.println("min = " + min + " : " + (min * 2) + " max=" + max +" : "+ (max * 2));

        }

        public static int  sum( List<Integer> list){
            return  list.get(0)+
                    list.get(1)*10+
                    list.get(2)*100+
                    list.get(3)*1000+
                    list.get(4)*10000;
        }

        public static boolean isAnswer(List<Integer> list1, List<Integer> list2){
            if(list1.get(4)==0 || list2.get(4) ==0) return false;
            if(list1.get(4)>4 || list2.get(4) <2) return false;

            long presum  = sum(list1);
            long thissum = sum(list2);
            if(2*presum == thissum) {
                System.out.println("ABCDE=" + presum + " FGHIJ=" + thissum);
                if(min>presum) min = presum;
                if(max<presum) max = presum;
                return true;
            }
            return false;
        }

}




本程序采用maven进行编译
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>so.qsn</groupId>
    <artifactId>mathtests</artifactId>
    <version>1.0-SNAPSHOT</version>
<dependencies>
    <dependency>
        <groupId>org.raistlic.lib</groupId>
        <artifactId>commons-core</artifactId>
        <version>1.4-SNAPSHOT</version>
    </dependency>

</dependencies>
    
</project>



打印的结果为:
===== demo Combination :
[0, 1, 2, 3, 4]-[5, 6, 7, 8, 9]
[0, 1, 2, 3, 5]-[4, 6, 7, 8, 9]
[0, 1, 2, 3, 6]-[4, 5, 7, 8, 9]
[0, 1, 2, 3, 7]-[4, 5, 6, 8, 9]
[0, 1, 2, 3, 8]-[4, 5, 6, 7, 9]
[0, 1, 2, 3, 9]-[4, 5, 6, 7, 8]
[0, 1, 2, 4, 5]-[3, 6, 7, 8, 9]
[0, 1, 2, 4, 6]-[3, 5, 7, 8, 9]
[0, 1, 2, 4, 7]-[3, 5, 6, 8, 9]
[0, 1, 2, 4, 8]-[3, 5, 6, 7, 9]
[0, 1, 2, 4, 9]-[3, 5, 6, 7, 8]
[0, 1, 2, 5, 6]-[3, 4, 7, 8, 9]
[0, 1, 2, 5, 7]-[3, 4, 6, 8, 9]
[0, 1, 2, 5, 8]-[3, 4, 6, 7, 9]
[0, 1, 2, 5, 9]-[3, 4, 6, 7, 8]
[0, 1, 2, 6, 7]-[3, 4, 5, 8, 9]
[0, 1, 2, 6, 8]-[3, 4, 5, 7, 9]
[0, 1, 2, 6, 9]-[3, 4, 5, 7, 8]
[0, 1, 2, 7, 8]-[3, 4, 5, 6, 9]
[0, 1, 2, 7, 9]-[3, 4, 5, 6, 8]
[0, 1, 2, 8, 9]-[3, 4, 5, 6, 7]
[0, 1, 3, 4, 5]-[2, 6, 7, 8, 9]
[0, 1, 3, 4, 6]-[2, 5, 7, 8, 9]
[0, 1, 3, 4, 7]-[2, 5,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 7, 8, 9]-[0, 1, 2, 3, 4]

min = 13485 : 26970 max=48651 : 97302


分享到:
评论

相关推荐

    中小学数学题程序_instance62k_python题_Python解数学题_Python解奥数题_python解初中题_

    在Python编程领域,解决中小学数学题,包括奥数题和初中数学题,是一种常见的实践,旨在提高编程技能和逻辑思维能力。"instance62k_python题"可能指的是一个包含62000个数学问题的实例集合,这些题目涵盖了从小学到...

    C++题库 各个题型都有

    4. **编程题**(编程tu.pdf):这是最能体现编程能力的部分,题目可能涵盖I/O处理、字符串操作、动态内存分配、递归、数据结构(数组、链表、树等)、排序算法(冒泡、快速、归并等)、搜索算法(线性、二分、广度...

    针对中小学生试题库管理系统的设计与实现的开题报告.pdf

    - **开发工具**:Eclipse,一款流行的开源集成开发环境(IDE),支持多种编程语言,特别是Java开发。 - **开发语言**:Java,因其跨平台特性、丰富的类库支持以及强大的社区资源,在企业级应用开发中占据主导地位。 ...

    小学四年级奥数教程逆推法学习教案.pptx

    小学四年级奥数教程中的逆推法是一种解决问题的策略,主要适用于解决数学应用题,尤其在面对复杂的计算过程时,通过从最终结果反向推理,能够简化问题的解决步骤。逆推法的基本思想是,从问题的结果出发,逐步追溯到...

    这个问题是一个经典的数学问题,通常被称为“老鼠和奶酪”问题 我们可以通过数学归纳法来解决这个问题

    ### “老鼠和奶酪”问题解析 #### 问题背景与定义 “老鼠和奶酪”问题是一个经典的数学问题,涉及到数学归纳法的应用。该问题描述了一组共$n$只老鼠共同分享一定数量$x$个奶酪的情景。每只老鼠依次进行相同的操作:...

    【6】六年级奥数《举一反三》.rar

    标签“源码软件”在这里可能是一个误标,因为六年级奥数的学习资料通常不会涉及到编程或软件开发的源代码。然而,如果这个标签是正确的,那么这个压缩包可能包含一些与奥数教学相关的计算机程序或应用程序,比如数学...

    【5】五年级奥数《举一反三》.rar

    五年级奥数,全称为小学五年级奥林匹克数学,是一项旨在激发学生对数学兴趣、提高他们数学思维能力的竞赛活动。《举一反三》是一本广受欢迎的奥数教材,它通过深入浅出的方式教授学生如何解决复杂的数学问题,培养...

    Scratch数学相关书籍介绍(2021.09.09).pdf

    1. **Scratch+小学数学系列**:这套书籍可能包含5册,专门针对小学阶段的孩子,将Scratch编程与小学数学课程相结合,通过编程活动解释和实践数学问题,让学习过程更具互动性和趣味性。 2. **"编"玩边学:Scratch...

    数论相关的题目汇总-2022.01.22.pdf

    本资源摘要信息涵盖了数论相关的题目汇总,涉及到多个领域,包括小学奥数、信奥、C++编程等。下面是对每个部分的详细解释: 小学奥数 * 7654 等差数列末项计算:本题目考察了等差数列的概念和应用,要求计算指定等...

    信奥中的数学学习路线图-2021-10-02(A).pdf

    推荐的参考书籍包括《初中数学竞赛中的组合问题》和《奥数小丛书(第三版)初中卷7:组合趣题》。组合数学不仅适用于奥数竞赛,同时也对高中及大学的数学课程有很大帮助。 3. 图论部分 图论是研究图的学科,其中图...

    ChatGPT破圈之后的思考.pdf

    在一些简单的小学奥数题上,它甚至七拐八绕,用最复杂的办法得出最离谱的答案。 ChatGPT 的出现,让人们对 AI 技术的看法有了很大的改变。它不再是传统的“人工智障”,而是一种更加智能、更加人性化的机器人。...

Global site tag (gtag.js) - Google Analytics