%global _empty_manifest_terminate_build 0 Name: python-24p Version: 0.2.0 Release: 1 Summary: 24Point License: MIT License URL: https://github.com/lingjf/24p Source0: https://mirrors.nju.edu.cn/pypi/web/packages/00/0c/69ee22be82e0c4d5b28e5a8cf4ae4660e6527aa450906f680cd512fd7d33/24p-0.2.0.tar.gz BuildArch: noarch %description # 24p [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] * 4 总共有91390种组合,其中79936种有解,有解率87.47% 去重后715种组合,其中566种有解,有解率79.16% ## b/a ```Python [1, 2, 7, 7] 24=(7*7-1)/2 [3, 8, 8, 10] 24=(8*10-8)/3 [4, 4, 10, 10] 24=(10*10-4)/4 ``` ## ab/c = (ab)/(xy) ```Python [6, 9, 9, 10] 24=9*10/6+9 ``` ## 8/(1/3) ```Python [1, 3, 4, 6] 24=6/(1-3/4) [1, 4, 5, 6] 24=6/(5/4-1) [1, 6, 6, 8] 24=6/(1-6/8) [3, 3, 8, 8] 23=8/(3-8/3) ``` ## (b+c/a)a = ab+c ```Python [1, 5, 5, 5] 24=(5-1/5)*5 [2, 2, 7, 10] 24=(10/2+7)*2 [2, 4, 10, 10] 24=(4/10+2)*10 [2, 7, 7, 10] 24=(10/7+2)*7 [3, 3, 7, 7] 24=(3/7+3)*7 [4, 4, 7, 7] 24=(4-4/7)*7 ``` ## (b+c/a)d = (b+c/a)2a = 2(ab+c) ```Python [2, 5, 5, 10] 24=(5-2/10)*5 ``` ## ab+ac = a(b+c) ```Python [1, 5, 6, 6] 24=5*6-1*6 [2, 3, 3, 10] 24=3*10-2*3 [2, 5, 8, 8] 24=5*8-2*8 [5, 6, 6, 9] 24=6*9-5*6 [6, 6, 6, 10] 24=6*10-6*6 [6, 8, 8, 9] 24=8*9-6*8 [7, 8, 8, 10] 24=8*10-7*8 ``` ```Python 2*12=24 3*8=24 4*6=24 12+12=24 14+10=24 15+9=24 16+8=24 17+7=24 18+6=24 20+4=24 21+3=24 25-1=24 28-4=24 30-6=24 32-8=24 35-11=24 36-12=24 40-16=24 7+8+9=24 8+8+8=24 2*8+8=24 4*8-8=24 ``` %package -n python3-24p Summary: 24Point Provides: python-24p BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-24p # 24p [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] * 4 总共有91390种组合,其中79936种有解,有解率87.47% 去重后715种组合,其中566种有解,有解率79.16% ## b/a ```Python [1, 2, 7, 7] 24=(7*7-1)/2 [3, 8, 8, 10] 24=(8*10-8)/3 [4, 4, 10, 10] 24=(10*10-4)/4 ``` ## ab/c = (ab)/(xy) ```Python [6, 9, 9, 10] 24=9*10/6+9 ``` ## 8/(1/3) ```Python [1, 3, 4, 6] 24=6/(1-3/4) [1, 4, 5, 6] 24=6/(5/4-1) [1, 6, 6, 8] 24=6/(1-6/8) [3, 3, 8, 8] 23=8/(3-8/3) ``` ## (b+c/a)a = ab+c ```Python [1, 5, 5, 5] 24=(5-1/5)*5 [2, 2, 7, 10] 24=(10/2+7)*2 [2, 4, 10, 10] 24=(4/10+2)*10 [2, 7, 7, 10] 24=(10/7+2)*7 [3, 3, 7, 7] 24=(3/7+3)*7 [4, 4, 7, 7] 24=(4-4/7)*7 ``` ## (b+c/a)d = (b+c/a)2a = 2(ab+c) ```Python [2, 5, 5, 10] 24=(5-2/10)*5 ``` ## ab+ac = a(b+c) ```Python [1, 5, 6, 6] 24=5*6-1*6 [2, 3, 3, 10] 24=3*10-2*3 [2, 5, 8, 8] 24=5*8-2*8 [5, 6, 6, 9] 24=6*9-5*6 [6, 6, 6, 10] 24=6*10-6*6 [6, 8, 8, 9] 24=8*9-6*8 [7, 8, 8, 10] 24=8*10-7*8 ``` ```Python 2*12=24 3*8=24 4*6=24 12+12=24 14+10=24 15+9=24 16+8=24 17+7=24 18+6=24 20+4=24 21+3=24 25-1=24 28-4=24 30-6=24 32-8=24 35-11=24 36-12=24 40-16=24 7+8+9=24 8+8+8=24 2*8+8=24 4*8-8=24 ``` %package help Summary: Development documents and examples for 24p Provides: python3-24p-doc %description help # 24p [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] * 4 总共有91390种组合,其中79936种有解,有解率87.47% 去重后715种组合,其中566种有解,有解率79.16% ## b/a ```Python [1, 2, 7, 7] 24=(7*7-1)/2 [3, 8, 8, 10] 24=(8*10-8)/3 [4, 4, 10, 10] 24=(10*10-4)/4 ``` ## ab/c = (ab)/(xy) ```Python [6, 9, 9, 10] 24=9*10/6+9 ``` ## 8/(1/3) ```Python [1, 3, 4, 6] 24=6/(1-3/4) [1, 4, 5, 6] 24=6/(5/4-1) [1, 6, 6, 8] 24=6/(1-6/8) [3, 3, 8, 8] 23=8/(3-8/3) ``` ## (b+c/a)a = ab+c ```Python [1, 5, 5, 5] 24=(5-1/5)*5 [2, 2, 7, 10] 24=(10/2+7)*2 [2, 4, 10, 10] 24=(4/10+2)*10 [2, 7, 7, 10] 24=(10/7+2)*7 [3, 3, 7, 7] 24=(3/7+3)*7 [4, 4, 7, 7] 24=(4-4/7)*7 ``` ## (b+c/a)d = (b+c/a)2a = 2(ab+c) ```Python [2, 5, 5, 10] 24=(5-2/10)*5 ``` ## ab+ac = a(b+c) ```Python [1, 5, 6, 6] 24=5*6-1*6 [2, 3, 3, 10] 24=3*10-2*3 [2, 5, 8, 8] 24=5*8-2*8 [5, 6, 6, 9] 24=6*9-5*6 [6, 6, 6, 10] 24=6*10-6*6 [6, 8, 8, 9] 24=8*9-6*8 [7, 8, 8, 10] 24=8*10-7*8 ``` ```Python 2*12=24 3*8=24 4*6=24 12+12=24 14+10=24 15+9=24 16+8=24 17+7=24 18+6=24 20+4=24 21+3=24 25-1=24 28-4=24 30-6=24 32-8=24 35-11=24 36-12=24 40-16=24 7+8+9=24 8+8+8=24 2*8+8=24 4*8-8=24 ``` %prep %autosetup -n 24p-0.2.0 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-24p -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 0.2.0-1 - Package Spec generated