![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-11-10 12:31 |
47,815 topics / 349,930 posts / today 0 new / 48,291 members |
| DOS批处理 & 脚本技术(批处理室) » [Discussion][Exploration] Using batch processing to make interesting math problems |
| Printable Version 40,595 / 139 |
| Floor76 不得不爱 | Posted 2006-11-21 23:38 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
I don't know if this meets the requirements:
|
|
| Floor77 NaturalJ0 | Posted 2006-11-21 23:58 |
| 银牌会员 Posts 533 Credits 1,181 | |
|
Completely correct
|
|
| Floor78 不得不爱 | Posted 2006-11-22 02:03 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
I don't know what other questions are there?
|
|
| Floor79 zouzhxi | Posted 2006-11-22 05:06 |
| 中级用户 Posts 177 Credits 430 From 广东深圳 | |
|
The problem has been updated
|
|
| Floor80 youxi01 | Posted 2006-11-22 07:17 |
| 高级用户 Posts 247 Credits 846 From 湖南==》广东 | |
|
First, the simplest 25, 26
25. "Chick and Rabbit in the Same Cage" 26. The problem of big and small monks; |
|
| Floor81 youxi01 | Posted 2006-11-22 07:40 |
| 高级用户 Posts 247 Credits 846 From 湖南==》广东 | |
|
Question 23, the problem of weighing beads, should discard the "lucky" situation, if I am lucky, maybe I can do it in two times! ^--^
|
|
| Floor82 youxi01 | Posted 2006-11-23 07:09 |
| 高级用户 Posts 247 Credits 846 From 湖南==》广东 | |
|
I'll also post two questions:
1. Find prime numbers (with relatively high efficiency requirements) 2. Find the numbers within 1-49 such that the product of any two numbers is equal, for example: 2*3=6 and 1*6=6 |
|
| Floor83 redtek | Posted 2006-11-25 03:04 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
Looking forward~ ~ Must not let a good post sink~ :)
|
|
| Floor84 不得不爱 | Posted 2006-11-25 06:57 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
Find prime numbers within 10000
|
|
| Floor85 不得不爱 | Posted 2006-11-25 07:03 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
Question 24:
``` @echo off :1 set/a a+=3 set/a b+=1 if not %a%==9 goto 1 echo This frog needs to jump %b% times to get out of the well pause ``` Question 25: ``` @echo off set/a a=(200-79*2)/(4-2) set/a b=79-a echo There are %b% chickens and %a% dogs pause ``` |
|
| Floor86 不得不爱 | Posted 2006-11-25 07:13 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
Question 26:
|
|
| Floor87 youxi01 | Posted 2006-11-25 11:58 |
| 高级用户 Posts 247 Credits 846 From 湖南==》广东 | |
|
Appreciate the prime number search program by the moderator;
It seems that the moderator's solution for 24, 25, 26 is by solving equations oh |
|
| Floor88 youxi01 | Posted 2006-11-25 12:10 |
| 高级用户 Posts 247 Credits 846 From 湖南==》广东 | |
|
Find numbers within 1-43 such that the product of any two numbers is equal (e.g., 2*3=6 and 1*6=6)
Paste a piece of my immature code: |
|
| Floor89 不得不爱 | Posted 2006-11-25 21:48 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
Originally posted by youxi01 at 2006-11-24 22:58: Wasn't solving chicken and rabbit problems in primary school done this way? Do we still need to solve equations? |
|
| Floor90 不得不爱 | Posted 2006-11-25 21:59 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
There are quite a few numbers missing in the code on floor 88. For example:
2*27=54 3*18=54 6*9=54 1*54=54 But your code only outputs: 2*27=54 3*18=54 |
|
| Prev 1 … 3 4 5 6 7 8 9 … 10 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |