Mar 18th 2016, 5:13:25
Solve for all variables.
This is actually a Grade One Entry Level Math Question in Hong Kong.
Mar 18th 2016, 5:13:25
Mar 18th 2016, 6:42:37
Mar 19th 2016, 1:41:27
Mar 19th 2016, 1:43:55
Mar 19th 2016, 1:49:29
Mar 19th 2016, 1:56:40
Mar 19th 2016, 2:02:36
Mar 19th 2016, 2:04:42
Mar 19th 2016, 2:05:31
Mar 19th 2016, 2:06:39
Mar 19th 2016, 2:08:58
Mar 19th 2016, 2:11:24
Mar 19th 2016, 2:13:16
Mar 19th 2016, 2:13:27
Mar 19th 2016, 3:03:20
Mar 20th 2016, 7:26:58
Mar 20th 2016, 16:49:47
<script>
/********************************************************
******************Created by Celphi**********************
******************March 19 2016**************************
********************************************************/
var group1, group2, total;
group1 = 0;
group2 = 0;
var group3, group4, index, indx, num, number, count;
count = 0;
var s = [];
var t = [];
var u = [];
var w = [];
group3 = 0;
group4 = 0;
s = [111];
// find all numbers which give a sum of 111
// generates #s for group 3 and group 4
for (group3=0;group3<99;group3++){
for (group4=0;group4<99;group4++){
if (group3+group4 == s[0]){
t.push(String(group3)+ String(group4));
}
}
}
// adds 0s to single digit numbers
function addZero(num){
if (num<10)
num = String('0'.concat(num));
else
num = num;
return num;
}
function cycle(number){
// 13-98 range for group 3 & 4
// Find all #s which subtract to give 13-98
for (group1=0;group1<99;group1++){
for (group2=0;group2<99;group2++){
total = group1-group2;
//if (total >= 13 && total <= 98){
if (total == number){
group1 = addZero(group1);
group2 = addZero(group2);
w.push(String(group1)+ String(group2));
}
}
}
}
for (indx=13;indx<99;indx++){
cycle(indx);
for (index=0;index<w.length;index++){
document.write(w[index] + t[indx-13] + ' ' + count + '<br>');
count++;
}
w = [];
}
// w = group A|B|C|D
// t = group E|F|G|H
</script>
Mar 20th 2016, 16:51:51
Mar 21st 2016, 3:56:30
Mar 21st 2016, 4:25:01
Mar 21st 2016, 4:26:17
Mar 21st 2016, 5:54:18
Mar 21st 2016, 6:06:12
Mar 21st 2016, 6:11:40
Mar 21st 2016, 6:17:14