php newbie Posted February 15, 2015 Report Posted February 15, 2015 (edited) 5 ... 8 7 4 ... x varbūt x = 5 (8 - (7 - 4)) = 5(4 - (7 - 8)) = 5 vai 18 - 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 February 15, 2015 by php newbie Quote
codez Posted February 15, 2015 Report Posted February 15, 2015 Vēl pagaidām neteikšu pareizo, varbūt kāds grib pats izdomāt. Quote
Kasspars Posted February 15, 2015 Report Posted February 15, 2015 Tur vienīgi var būt undefined :) Quote
JOHN WICK Posted February 15, 2015 Author Report Posted February 15, 2015 Kādam ir vēl varianti par otro? 7 Quote
justnorris Posted February 15, 2015 Report Posted February 15, 2015 a[first] -> 5 a[previous] -> 8 a[current] -> 7 a[next] -> 4 a[last] -> ? 5 Quote
codez Posted February 15, 2015 Report Posted February 15, 2015 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 Quote
codez Posted February 15, 2015 Report Posted February 15, 2015 (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 February 15, 2015 by codez Quote
Kasspars Posted February 15, 2015 Report Posted February 15, 2015 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 Quote
Kasspars Posted February 15, 2015 Report Posted February 15, 2015 3. uzd Es to loģikas uzdevumus nesaprotu. Tā pat kā universitātē matemātiskā loģika bija pats neloģiskākais priekšmets ever :D Quote
php newbie Posted February 15, 2015 Report Posted February 15, 2015 4. uzdevumam laikam katrai rinidiņai rezultātos jābūt 3 tipiem 1. 42 Quote
codez Posted February 15, 2015 Report Posted February 15, 2015 4. uzdevumam laikam katrai rinidiņai rezultātos jābūt 3 tipiem 1. 42 mhm Quote
Kasspars Posted February 15, 2015 Report Posted February 15, 2015 muahaha, es 4. uzd. sapratu, ka "|" ir domāts operators. Tipa 2 | false būs 2 Quote
Kasspars Posted February 15, 2015 Report Posted February 15, 2015 Pirmās klases atjautības uzdevumi no sērijas viena govs lido kreisi otra ar sarkanām kedām. Jautājums, kāds ir atmosfēras spiediens beļavas pagastā? Quote
codez Posted February 15, 2015 Report Posted February 15, 2015 Es vienubrīd iedomājos, ka vajag norādīt, ka tas ir separators. Žēl, ka šajā forumā nevar veidot tabulas. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.