|
youxi01
高级用户
   
积分 846
发帖 247
注册 2006-10-27 来自 湖南==》广东
状态 离线
|
『第 91 楼』:
使用 LLM 解释/回答一下
它会求出来的,但是不在一个地方。它给出的形式是这样的:
1×54=54
2×27=54
.......
2×27=54
3×18=54
……
3×18=54
6×9=54
It will be calculated out, but not in one place. The form it gives is like this:
1×54=54
2×27=54
.......
2×27=54
3×18=54
……
3×18=54
6×9=54
|
|
2006-11-25 22:28 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-11-25 22:37 |
|
|
a9319751
中级用户
  
积分 439
发帖 170
注册 2006-1-9
状态 离线
|
『第 93 楼』:
使用 LLM 解释/回答一下
#25 ?
鸡狗各多少=
小鸡、小狗七十九,二百只脚在地上走,想一想,算一算,多少只鸡?多少只狗?
@echo off
set /a 鸡狗=79
set /a 鸡腿狗腿=200
set /a 最大狗=200/4
setlocal enabledelayedexpansion
for /l %%i in (1 1 %最大狗%) do (
set /a 狗腿=%%i*4
set /a 鸡腿=%鸡腿狗腿%-!狗腿!
set /a 鸡=!鸡腿!/2
set /a num=%%i+!鸡!
call :test !num! %%i !鸡! %鸡狗%
)
pause>nul
:test
if %1 EQU %4 echo 可能的组合为:狗=%2 鸡=%3
goto :eof
#25 ?
Number of chickens and dogs =
There are seventy-nine chickens and dogs, with two hundred feet on the ground. Think and calculate, how many chickens? How many dogs?
@echo off
set /a 鸡狗=79
set /a 鸡腿狗腿=200
set /a 最大狗=200/4
setlocal enabledelayedexpansion
for /l %%i in (1 1 %最大狗%) do (
set /a 狗腿=%%i*4
set /a 鸡腿=%鸡腿狗腿%-!狗腿!
set /a 鸡=!鸡腿!/2
set /a num=%%i+!鸡!
call :test !num! %%i !鸡! %鸡狗%
)
pause>nul
:test
if %1 EQU %4 echo 可能的组合为:狗=%2 鸡=%3
goto :eof
|
|
2006-11-27 15:09 |
|
|
40szb
初级用户
 
积分 46
发帖 21
注册 2006-12-25 来自 西安
状态 离线
|
|
2006-12-28 14:32 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 95 楼』:
使用 LLM 解释/回答一下
好贴子顶起来~:)
把一个许久被沉没的好贴子顶起来而又不多发垃圾贴的办法就是:将原自己在帖子中写的回复删掉(-1分),然后再重新回复一遍就可以了~:)
Last edited by redtek on 2007-1-28 at 07:14 PM ]
A good post should be topped up~:)
The way to top up a long-sunken good post without posting too much junk posts is: delete your original reply in the post (-1 point), and then reply again~:)
Last edited by redtek on 2007-1-28 at 07:14 PM ]
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2007-1-29 08:12 |
|
|
0401
中级用户
   带走
积分 435
发帖 88
注册 2005-9-24
状态 离线
|
『第 96 楼』:
使用 LLM 解释/回答一下
顶贴还有这门学问啊,学习了。
Posting up also has such knowledge, learned.
|
|
2007-1-29 10:57 |
|
|
hngaoshou
社区乞丐
gaoshou
积分 -16
发帖 77
注册 2007-1-30
状态 离线
|
『第 97 楼』:
使用 LLM 解释/回答一下
没的速度
|

:cool:
[swf=1,1]http://img63.imageshack.us/my.php?image=58098766zh0.swf[/swf] |
|
2007-2-1 02:50 |
|
|
nzisisco
初级用户
 
积分 107
发帖 47
注册 2007-3-3
状态 离线
|
|
2007-3-4 17:13 |
|
|
6622186
高级用户
   
积分 894
发帖 411
注册 2007-2-17
状态 离线
|
『第 99 楼』:
使用 LLM 解释/回答一下
原来最大数为 2^31-1 ,怪不得 2^31 就溢出了!
So the original maximum number is 2^31 - 1. No wonder 2^31 overflows!
|

@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul
|
|
2007-3-17 11:09 |
|
|
6622186
高级用户
   
积分 894
发帖 411
注册 2007-2-17
状态 离线
|
『第 100 楼』:
使用 LLM 解释/回答一下
如果能过滤 3 4 5 和 5 12 13 的倍数就好了.
It would be nice if we could filter the multiples of 3, 4, 5 and 5, 12, 13.
|

@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul
|
|
2007-3-17 11:42 |
|
|
6622186
高级用户
   
积分 894
发帖 411
注册 2007-2-17
状态 离线
|
『第 101 楼』:
使用 LLM 解释/回答一下
84 楼代码不错, 运行效律很高.
The code on floor 84 is pretty good, and the running efficiency is very high.
|

@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul
|
|
2007-3-17 12:39 |
|
|
6622186
高级用户
   
积分 894
发帖 411
注册 2007-2-17
状态 离线
|
『第 102 楼』:
大小和尚的问题
使用 LLM 解释/回答一下
@echo off
rem x+y=n m*x+y/m=n
set n=100
set m=4
set x=100/(1+m)
set y=x*m
echo 大和尚人数为%x%
echo 大和尚人数为%y%
pause>nul
@echo off
rem x+y=n m*x+y/m=n
set n=100
set m=4
set x=100/(1+m)
set y=x*m
echo Number of senior monks is %x%
echo Number of senior monks is %y%
pause>nul
|

@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul
|
|
2007-3-19 11:59 |
|
|
6622186
高级用户
   
积分 894
发帖 411
注册 2007-2-17
状态 离线
|
『第 103 楼』:
更正
使用 LLM 解释/回答一下
出现了几个错误, 第五行应将 "100" 改为 "n". 第八行应将 大 改为 "小" . 特此更正, 请多多原谅.
There are several errors. The fifth line should change "100" to "n". The eighth line should change "大" to "small". This correction is hereby made. Please forgive me a lot.
|

@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul
|
|
2007-3-19 12:08 |
|
|
6622186
高级用户
   
积分 894
发帖 411
注册 2007-2-17
状态 离线
|
『第 104 楼』:
多少人参加运动会?
使用 LLM 解释/回答一下
一个学校开运动会,一个班主任老师发现, 参加运动会的同学,如果排成 2 行多 1 人, 排成3 行多 2人, 排成 4 行多 3 人, 排成 5 行多 4 人, 排成 6 行多 5 人, 请问这个学校至少有多少人参加这个运动会?
### Step 1: Analyze the conditions
We can find that if we add 1 person to the number of people participating in the sports meeting, then the number of people can be exactly divided by 2, 3, 4, 5, and 6.
### Step 2: Find the least common multiple of 2, 3, 4, 5, and 6
- Prime factorize each number:
- \(2 = 2\)
- \(3 = 3\)
- \(4 = 2\times2\)
- \(5 = 5\)
- \(6 = 2\times3\)
- The least common multiple is the product of the highest powers of all prime factors involved. So the least common multiple of 2, 3, 4, 5, and 6 is \(2\times2\times3\times5= 60\)
### Step 3: Find the number of people participating in the sports meeting
Since adding 1 person makes it divisible by 60, then the number of people participating in the sports meeting is \(60 - 1 = 59\)
So the school has at least 59 people participating in this sports meeting.
The translated text is:### Step 1: Analyze the conditions
We can find that if we add 1 person to the number of people participating in the sports meeting, then the number of people can be exactly divided by 2, 3, 4, 5, and 6.
### Step 2: Find the least common multiple of 2, 3, 4, 5, and 6
- Prime factorize each number:
- \(2 = 2\)
- \(3 = 3\)
- \(4 = 2\times2\)
- \(5 = 5\)
- \(6 = 2\times3\)
- The least common multiple is the product of the highest powers of all prime factors involved. So the least common multiple of 2, 3, 4, 5, and 6 is \(2\times2\times3\times5 = 60\)
### Step 3: Find the number of people participating in the sports meeting
Since adding 1 person makes it divisible by 60, then the number of people participating in the sports meeting is \(60 - 1 = 59\)
So the school has at least 59 people participating in this sports meeting.
|

@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul
|
|
2007-3-19 12:39 |
|
|
youxi01
高级用户
   
积分 846
发帖 247
注册 2006-10-27 来自 湖南==》广东
状态 离线
|
『第 105 楼』:
使用 LLM 解释/回答一下
通过数学知识知道,该数字加 1 后是 2 3 4 5 6的倍数。
于是,有了以下代码:
@echo off
setlocal enabledelayedexpansion
for /l %%i in (1 1 10000) do (
title 正在检测 %%i
set/a temp=%%i+1
set/a flag=0
for %%a in (2 3 4 5 6) do (
set /a tmp=!temp! %% %%a
if !tmp! EQU 0 set/a flag+=1)
if !flag! GEQ 5 echo 该数字为:%%i & goto :exit)
:exit
pause>nul
Through mathematical knowledge, it is known that when this number is increased by 1, it is a multiple of 2, 3, 4, 5, 6.
Thus, the following code is available:
@echo off
setlocal enabledelayedexpansion
for /l %%i in (1 1 10000) do (
title Detecting %%i
set/a temp=%%i+1
set/a flag=0
for %%a in (2 3 4 5 6) do (
set /a tmp=!temp! %% %%a
if !tmp! EQU 0 set/a flag+=1)
if !flag! GEQ 5 echo The number is: %%i & goto :exit)
:exit
pause>nul
|
|
2007-3-19 12:57 |
|
|