Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Miscellaneous
»
Other
»
Interesting problem... even more interesting solution
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lazarus for Windows on aa...
by
msintle
[
Today
at 04:33:58 pm]
C operators and shift
by
marcov
[
Today
at 04:27:15 pm]
Tmemo add char like typin...
by
jcmontherock
[
Today
at 04:13:17 pm]
Beta Version of Super Gau...
by
lainz
[
Today
at 04:09:32 pm]
SAVE StringGrid to PDF
by
dseligo
[
Today
at 04:09:05 pm]
IFS Fractals: Iterating t...
by
Dzandaa
[
Today
at 03:41:38 pm]
Interesting article about...
by
lainz
[
Today
at 03:31:29 pm]
Breakpoint dosn't work
by
Martin_fr
[
Today
at 01:36:30 pm]
The Silver Coder on YouTu...
by
silvercoder70
[
Today
at 12:56:29 pm]
FreePascal version of gcc...
by
Thaddy
[
Today
at 12:53:59 pm]
LCL Web Native with D2Bri...
by
BlueIcaro
[
Today
at 11:13:25 am]
(SOLVED)Arrow keys in FV
by
HotShoe
[
Today
at 08:28:52 am]
Hustle - A simple task ma...
by
Wesbat
[
Today
at 08:24:07 am]
Game Music Emulator
by
Guva
[
Today
at 04:55:43 am]
Future Composer Player
by
Guva
[
Today
at 04:42:57 am]
Ancient Program
by
VisualLab
[
Today
at 12:42:54 am]
Common File Dialogs Have ...
by
rvk
[December 06, 2024, 11:14:52 pm]
Benchmarks
by
turrican
[December 06, 2024, 11:01:03 pm]
TLazSerial : serial port ...
by
tetrastes
[December 06, 2024, 10:33:38 pm]
TTrayIcon do not work pro...
by
atell
[December 06, 2024, 10:31:11 pm]
[SOLVED] Displaying Float...
by
1HuntnMan
[December 06, 2024, 09:57:19 pm]
[SOLVED] How to calculate...
by
d2010
[December 06, 2024, 09:47:16 pm]
[SOLVED] Getting processe...
by
d2010
[December 06, 2024, 09:32:56 pm]
How to know when dragging...
by
Aistis
[December 06, 2024, 08:56:21 pm]
[SOLVED] Set OnClick even...
by
cdbc
[December 06, 2024, 06:54:53 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Interesting problem... even more interesting solution (Read 491 times)
440bx
Hero Member
Posts: 4732
Interesting problem... even more interesting solution
«
on:
November 27, 2024, 02:49:11 am »
Hello,
What follows is, at best, only indirectly related to Pascal or programming in that it tests one's abilities to visualize solutions to a problem.
The problem is one given to elementary school children in China. It is presented in youtube. Link:
https://www.youtube.com/watch?v=3g8voItQD0c
I invite those interested in problem solving to take a crack at it.
For the record, I did solve the problem but not the way I would have liked to have solved it.
Have fun!
Logged
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.
MathMan
Sr. Member
Posts: 405
Re: Interesting problem... even more interesting solution
«
Reply #1 on:
November 27, 2024, 09:09:59 am »
Being the show-off that I am I posted my solution here initially, sorry
Just for the record - I solved it too, mathematically, as I usually do.
«
Last Edit: November 27, 2024, 09:22:29 am by MathMan
»
Logged
Thaddy
Hero Member
Posts: 16174
Censorship about opinions does not belong here.
Re: Interesting problem... even more interesting solution
«
Reply #2 on:
November 27, 2024, 10:59:09 am »
This is an elementary school problem. What's the fuzz?
Logged
If I smell bad code it usually is bad code and that includes my own code.
440bx
Hero Member
Posts: 4732
Re: Interesting problem... even more interesting solution
«
Reply #3 on:
November 27, 2024, 02:54:15 pm »
Quote from: MathMan on November 27, 2024, 09:09:59 am
Just for the record - I solved it too, mathematically, as I usually do.
That's how I solved it too but the really beautiful solution, which he gives at the end, I missed.
Logged
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.
Thaddy
Hero Member
Posts: 16174
Censorship about opinions does not belong here.
Re: Interesting problem... even more interesting solution
«
Reply #4 on:
November 27, 2024, 04:17:24 pm »
Did I miss something in removing the noise? Took less than two seconds to solve it when I knew the constants and the length of the video.
The Chinese are right.
Logged
If I smell bad code it usually is bad code and that includes my own code.
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Miscellaneous
»
Other
»
Interesting problem... even more interesting solution
TinyPortal
© 2005-2018