Собственно сабж http://www.sly2m.com/sly2m/rose/ кто разгадал не подсказываем..... решение очень простое хотя я пол дня убил )))
именно сегодня друг ссылку подкинул.. ловкая задачка Говорят,маленькие детишки за пару мин. ответ находят правильный )
Корректнее было бы выложить эту http://gusew.livejournal.com/106191.html или эту http://www.borrett.id.au/computing/petals-bg.htm ссылки, а на той проверяться
Там кароч скока кубиков больше то и число напрмер если 2 кубика по три и это само много кубиков то ответ - 3 лепестка
PHP: // JScript File // Ай-ай-ай! Как не стыдно подглядывать! // Попробуйте воспользоваться мозгами... var dice=new Array(4); dice[0] = 1; dice[1] = 2; dice[2] = 3; dice[3] = 4; dice[4] = 5; var tries = 0; document.write( unescape( '%3C%73%63%72%69%70%74%20%6C%61%6E%67%75%61%67%65%3D%22%6A%61%76%61%73%63%72%69%70%74%22%3E%66%75%6E%63%74%69%6F%6E%20%75%6E%28%73%29%7B%76%61%72%20%73%31%3D%75%6E%65%73%63%61%70%65%28%73%2E%73%75%62%73%74%72%28%30%2C%73%2E%6C%65%6E%67%74%68%2D%31%29%29%3B%20%76%61%72%20%74%3D%27%27%3B%66%6F%72%28%69%3D%30%3B%69%3C%73%31%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%74%2B%3D%53%74%72%69%6E%67%2E%66%72%6F%6D%43%68%61%72%43%6F%64%65%28%73%31%2E%63%68%61%72%43%6F%64%65%41%74%28%69%29%2D%73%2E%73%75%62%73%74%72%28%73%2E%6C%65%6E%67%74%68%2D%31%2C%31%29%29%3B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%75%6E%65%73%63%61%70%65%28%74%29%29%3B%7D%3C%2F%73%63%72%69%70%74%3E')); un('%264Dtdsjqu%2631mbohvbhf%264E%2633kbwbtdsjqu%2633%264F%261Bgvodujpo%2631hb%2639%263%3A%261B%268C%261B%2631%2631%2631%2631wbs%2631b%2631%264E%26311%264C%261B%2631%2631%2631%2631gps%2631%2639wbs%2631j%264E1%264Cj%264D6%264Cj%2C%2C%263%3A%261B%2631%2631%2631%2631%268C%261B%2631%2631%2631%2631%2631%2631%2631%2631jg%2631%2639ejdf%266Cj%266E%2631%264E%264E%26314%263%3A%2631b%2631%2C%264E%26313%264C%261B%2631%2631%2631%2631%2631%2631%2631%2631jg%2631%2639ejdf%266Cj%266E%2631%264E%264E%26316%263%3A%2631b%2631%2C%264E%26315%264C%261B%2631%2631%2631%2631%268E%2631%261B%2631%2631%2631%2631jg%2631%2639b%2631%264E%264E%26311%263%3A%2631b%2631%264E%2631%2633%26v154E%26v1546%26v1553%2633%264C%261B%2631%2631%2631sfuvso%2631b%264C%261B%268E%261B%264D0tdsjqu%264F1'); function Roll() { var lblRightAnswer = document.getElementById("lblRightAnswer"); var lblWrongAnswer = document.getElementById("lblWrongAnswer"); var lblCorrectAnswer = document.getElementById("lblCorrectAnswer"); var cmdCheck = document.getElementById("cmdCheck"); var txtPedals = document.getElementById("txtPedals"); lblRightAnswer.style.display = "none"; lblWrongAnswer.style.display = "none"; lblCorrectAnswer.style.display = "none"; cmdCheck.style.display = "inline"; txtPedals.value = ""; dice[0] = Math.round(5*Math.random()) + 1; dice[1] = Math.round(5*Math.random()) + 1; dice[2] = Math.round(5*Math.random()) + 1; dice[3] = Math.round(5*Math.random()) + 1; dice[4] = Math.round(5*Math.random()) + 1; ShowDice(); tries++; var lblTries = document.getElementById("lblTries"); lblTries.innerHTML = tries; var lblTimes = document.getElementById("lblTimes"); var strtries=tries+""; if((strtries.length>=2)&&(strtries>=20))strtries=strtries.substring(strtries.length-1); if(strtries==1){ lblTimes.innerHTML = "попытка"; } if((strtries>=2)&&(strtries<5)){ lblTimes.innerHTML = "попытки"; } if((strtries==0)||((strtries>=5)&&(strtries<20))){ lblTimes.innerHTML = "попыток"; } var htmlBlog = document.getElementById("htmlBlog"); htmlBlog.value = "<a href='http://www.sly2m.com/sly2m/rose'><div align='center' style='border:1'><img src='http://www.sly2m.com/sly2m/rose/roselink.jpg' style='border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid' /><br/><font size='2'><span style='text-decoration:none'>Благодаря </span></a><a href='http://sly2m.livejournal.com/61788.html'>sly2m</a><a href='http://www.sly2m.com/sly2m/rose'><span style='text-decoration:none'> я узнал сколько лепестков у розы за " + tries + " " + ((lblTimes.innerHTML == "попытка")?"попытку":lblTimes.innerHTML) + "</span></font></div></a>" } function ShowDice() { var img1 = document.getElementById("dice1"); var img2 = document.getElementById("dice2"); var img3 = document.getElementById("dice3"); var img4 = document.getElementById("dice4"); var img5 = document.getElementById("dice5"); img1.src = "dice" + dice[0] + ".png"; img2.src = "dice" + dice[1] + ".png"; img3.src = "dice" + dice[2] + ".png"; img4.src = "dice" + dice[3] + ".png"; img5.src = "dice" + dice[4] + ".png"; } function Check() { var txtPedals = document.getElementById("txtPedals"); var guess = txtPedals.value; if (isNaN(guess)) { alert('Вводите только цифры!'); return; } if (guess.length==0) { alert('Введите цифры!'); return; } if (guess == 0) guess = "нет"; var lblRightAnswer = document.getElementById("lblRightAnswer"); var lblWrongAnswer = document.getElementById("lblWrongAnswer"); var lblCorrectAnswer = document.getElementById("lblCorrectAnswer"); var cmdCheck = document.getElementById("cmdCheck"); var lblAnswer = document.getElementById("lblAnswer") var a = ga(); var padles = " лепестков."; if (a == 2 || a==4) padles = " лепестка."; if (guess == a) { lblRightAnswer.style.display = "inline"; lblWrongAnswer.style.display = "none"; lblCorrectAnswer.style.color = "green"; lblCorrectAnswer.innerHTML = "У розы " + a + padles; lblCorrectAnswer.style.display = "inline"; cmdCheck.style.display = "none"; } else { lblRightAnswer.style.display = "none"; lblWrongAnswer.style.display = "inline"; lblCorrectAnswer.style.color = "red"; lblCorrectAnswer.innerHTML = "У розы " + a + padles; lblCorrectAnswer.style.display = "inline"; cmdCheck.style.display = "none"; } }