Advertisement
DimaT1

Valer

Feb 8th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. for gid in range(6,8):
  2.     for sf in range(6,8):
  3.         for ed in range(6,8):
  4.             for nar in range(6,8):
  5.                 summ = gid + sf + ed + nar
  6.                 gid_lies = gid == 7
  7.                 sf_lies = sf == 7
  8.                 ed_lies = ed == 7
  9.                 nar_lies = nar == 7
  10.  
  11.                 if (gid_lies or summ == 25) and\
  12.                    (sf_lies or summ == 26) and\
  13.                    (ed_lies or summ == 27) and\
  14.                    (nar_lies or summ == 28):
  15.                     print('gid', gid, 'sf', sf, 'ed', ed, 'nar', nar)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement