fork download
  1. from sys import *
  2. a = 1
  3. array = ""
  4. try:
  5. while True:
  6. try:
  7. hoge = raw_input()
  8. ans = hoge.index('@')
  9. array +=str(a)+"-"+str(ans)+", "
  10. a+=1
  11. except ValueError: break
  12. except EOFError: print array
Success #stdin #stdout 0.08s 10936KB
stdin
0000000@00
00@0000000
00000000@0
stdout
1-7, 2-2, 3-8,