Jump to content
php.lv forumi

Recommended Posts

Posted (edited)

5 ... 8 7 4 ... x
 

varbūt x = 5

 

(8 - (7 - 4)) = 5
(4 - (7 - 8)) = 5

vai 1
8 - 3 = 5

4 - 3 = 1

 

bet tad kāpēc to 7 vajag

tuvāk vakaram kad piebeigšu vīna pudeli būs citi varianti :)

 

7 - log 2 4 = 5

7 - log 2 8 = 4

Edited by php newbie
  • Replies 121
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Vēl nedaudz grūtāks:

3.uzdevums:

[4][0]
[2]-[4]
[4]-{a:4}
  ???
[0]===[4]
[4]/[10000]
[4,0,4,1]
[4,4][1]/[]
[4,4][0][0]

iespējamās atbildes:
1. ["nezinu",2,4]
2. 42
3. 4-2
4. {a:4,b:2}
5. 0
6. [4][4]
7. 4>0<4
8. 4/0/4

Posted (edited)

Viegls:

4.uzdevums

[42]+42 |  42-42    |  42!=42
42+42   |  !4242    |  "42<42"
42>42   |  42+"42"  |   ???

1. 42
2. !42
3. [42]
4. 42>42 
5. 42!=42
6. 42===42
7. "424242"
8. 42>42>42
Edited by codez
Posted

Tur var būt vai nu !42 vai 42!=42, galvenais, lai ir false. Jo vajag, lai rezultāts būtu "4242"

Visās darbībās ja abās pusēs nav vienāds tips, tad JS tos pārtaisa par string tipu

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...