From
Arseniy Astapenko
→
To
Alexandr Kushnikov
21 July 2001
Hello, Alexandr!
July 18, 2001 23:54, Alexandr Kushnikov wrote to Wladimir Bulchukey:
VK>>> And more such puzzles?
WB>> Ugh, and then they will say about you that you found the answer on the Internet
WB>> and you will have a snot bubble to prove that you solved the problem yourself.
AK> Don't be offended! :-)
AK> I, for example, believe that you solved it yourself, it would be great to have such people
AK> there would be more puzzles.
This is in RU.GOLOVOLOMKA and RU.INTELLECTUAL.GAMES
=== cut ===
d) Where can you find a lot of puzzles?
1. In the library (Gardner, Smullian, Perelman, Loyd, Dudeney, Golomb and
etc.).
2. On the Internet:
http://golovolomka.hobby.ru - collection of puzzles
http://problems.lgg.ru - a huge collection of mathematical problems from Olympiads
http://come.to/knop - articles by Konstantin Knop about puzzles
http://www.computerra.ru/online/knopki - the same thing, only new articles :)
http://www.mathpuzzle.com - the best site about puzzles (English)
http://www.g4g4.com - links to sites on entertaining mathematics
===End quote ===
ps/ The simplest task for BASIC is to rearrange the values
two variables a and b without using an auxiliary variable.
2:5015/133.29@FidoNet was with you
Ars^FTL mailto:arseniy@pochta.by
From
Vyacheslav Mednonogov
→
To
Yura Yakimuk
26 July 2001
Get Msg, Yura!
24 Jul 01 02:23, Yura Yakimuk reported by Vyacheslav Mednonogov about {2 cords}:
YY> #include
YY> main()
YY> {
YY> long i;
YY> int j;
YY> scanf("%li",&i);
YY> for(j=0;j<32 && !(i&1l);j++,i>>=1);
YY> if(i-1l)printf("No");
YY> else printf("Yes");
YY> }
YY> How can I make it shorter?
printf( "%s
", (x&(x-1)) ? "No" : "Yes" );
[I.ZX] [VR1] ----------------------------> Warm greetings, Slava!
mailme: copper_feet@mail.ru icq#me: 81191986
[We don’t need the Sun - the Party shines for us! We don't need bread - let's work! ]
From
Vyacheslav Mednonogov
→
To
Wladimir Bulchukey
26 July 2001
Get Msg, Wladimir!
15 Jul 01 23:08, Wladimir Bulchukey reported Vyacheslav Mednonogov about {2
cord}:
WB> OR A
WB> JR Z,NULL ; if the number is initially 0
WB> L1 ADD A, A
WB> JR NC,L1
WB> ; ready here
WB> JR Z,L_YES
WB> L_NO ...
WB> L_YES ...
The faster solution does not use a loop. For example:
LD C,A
DEC C
AND C
JR Z,L_YES
L_NO...
L_YES...
[I.ZX] [VR1] ----------------------------> Warm greetings, Slava!
mailme: copper_feet@mail.ru icq#me: 81191986
[We don’t need the Sun - the Party shines for us! We don't need bread - let's work! ]
From
Yura Yakimuk
→
To
Arseniy Astapenko
3 August 2001
Hello Arseniy!
21 Jul 01 01:59, Arseniy Astapenko typed for Alexandr Kushnikov:
AA> ps/ The simplest task for BASIC is to rearrange values
AA> two variables a and b without using an auxiliary variable.
a=a+b
b=a-b
a=a-b
Sincerely, Yura AKA d00RsFan
[ZX] [D00RS] [IRCNet#Z80]
From
Kirill Frolov
→
To
Arseniy Astapenko
4 August 2001
Press RESET immediately, Arseniy!
21 Jul 01 01:59, Arseniy Astapenko wrote to Alexandr Kushnikov:
AA> ps/ The simplest task for BASIC is to rearrange values
AA> two variables a and b without using an auxiliary variable.
A = A XOR B A = A - B
B = B XOR A B = B + A
A = A XOR B A = B - A