Strange that you do not have the same SUBNET MASK on all PC's.
I assume you have in local area network settings for the TCP/IP set on "obtain an IP address automatically"
If that is the case, your ISP sends very different IP scopes off some strange reason...
Anyway. The subnet mask gets a little complicated, as there are other masks as 0 and 255.
Using the windows calculator (start / run / calc), in (view/scientific) enter the decimal number (eg.255) and then select bin, to see the binary value. Add leading zeros, if the binary number lenght is below 8.
0 = 00000000
255 = 11111111
254 = 11111110
252 = 11111100
248 = 11111000
Now you have look what IP address you have, and the 1 and 0 has to be the same for all PC's where the there is a 1 in the subnet mask.
Eg.
Subnet 255.255.254.0
The first two numbers has to be exactly the same, and the third nubmer has to be +/- 1 (because the first 7 bits has to be equal, and the value for the last or lower bit is 1)
The fourth number (the last) may be different on all PC's.
So say that your IP address is 195.80.90.5 and subnet mask is 255.255.248.0
In Binary this is:
ADRS 11000011.01010000.01011010.00
000101
MASK 11111111.1111111.11111000.000
00000
For an other PC to be on the same subnet as the one with IP 195.80.90.5 / 255.255.248.0, it has to have an IP address that :
First digit is 195
Second digit is 80
Thirs digit is 88 - 95
Because 88 = 01011
000 and 95 = 01011
111 The netmask 248 alows the three last bits to differ.
Fourth number can be any number.
So in order to see if you computers are on the same subnet, you have to compare the binary IP to the SUBNET MASK.
Even tho you have a different SUBNET MASK on the PC's, they could be on same SUBNET, if the bits are equal on the third value.
(Say if the third digit is the same or +/- 1 on all computers).
I am afraid im not the best person to try to explain this, and this maybe sounds more complicated that it is? (I am not nativ english)
But, in practice, get the router with DHCP and NAT.
Or call the ISP and ask if they can arange their system to send IP config from same SUBNET to all computers. (If they can)