Input is
Teams¦ matches¦ win¦ lose¦ draw¦ gs ¦ gc¦
A ¦ x ¦ p ¦ q ¦ r ¦ a ¦ b ¦
B ¦ x' ¦ p' ¦ q' ¦ r' ¦ a' ¦ b' ¦
P+q+r=x
P'+q'+r'=x'
Teams can be more thn two..
gs. ..goal scored
gc... Goal conceded
Output should be..
1. Matches played by each team and wid whom
2. Result of each match (win,lose,draw)
3. Score of each match (in terms of goals)
Assumptions:
- each team must play atleast one match against every other team
- more thn one solution can be thr...u hav to output all..
Can anyone tell?
Its just dat someone asked me..and i m unable to solve!!!