Advertisement
Guest User

Untitled

a guest
Jun 7th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.92 KB | None | 0 0
  1. arr = [20, 25, 30, 34, 35, 36, 37, 39, 40, 44, 46, 47, 49, 50, 54, 55, 58, 60,
  2.        63, 67, 68, 71, 72, 74, 75, 76, 79, 80, 81, 82, 83, 84, 85, 87, 88, 89,
  3.        90, 91, 94, 98, 99, 101, 102, 103, 106, 107, 109, 110, 112, 114, 116,
  4.        118, 121, 123, 126, 128, 129, 131, 133, 137, 139, 142, 144, 145, 147,
  5.        149, 151, 152, 153, 155, 156, 158, 160, 161, 162, 163, 164, 165, 166,
  6.        167, 171, 172, 177, 178, 179, 181, 182, 183, 184, 187, 189, 190, 191,
  7.        192, 193, 196, 200, 204, 206, 211, 212, 213, 216, 217, 218, 219, 221,
  8.        224, 225, 226, 227, 228, 230, 231, 232, 234, 235, 236, 239, 240, 241,
  9.        242, 243, 244, 249, 250, 251, 255, 256, 257, 259, 260, 261, 263, 267,
  10.        268, 269, 271, 273, 275, 276, 280, 281, 282, 283, 285, 287, 290, 291,
  11.        292, 295, 296, 298, 299]
  12. j = 0
  13. ind = 0
  14. for i in range (1, 301):
  15.     if arr[ind] != j:
  16.         j += 1
  17.     else:
  18.         ind += 1
  19.     print j
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement