Problem p02887 (python)

Fixed submission:
if __name__ == "__main__":
  num = input()
  slimes = input()

  tmp = []
  for i in range(0,len(slimes)):
    if len(tmp):
      if slimes[i] != tmp[-1]:
          tmp.append(slimes[i])
    else:
      tmp.append(slimes[i])
  print(len(tmp))

Buggy submission (verdict: Runtime Error):
import sys
args = sys.argv
print(args)
```
  num = args[0]
  slimes = args[1]

  tmp = []
  for i in range(0,len(smiles)):
    if len(tmp): 
      if slimes[i] == slimes[i+1] and slimes[i] != tmp[-1]:
          tmp.append(slimes[i])
    else:
      if slimes[i] == slimes[i+1]:
          tmp.append(slimes[i])

  print(len(tmp))    
```

Buggy submission (verdict: Runtime Error):
import sys

if __name__ == "__main__":
  args = sys.argv
  print(args)
```
  num = args[0]
  slimes = args[1]

  tmp = []
  for i in range(0,len(smiles)):
    if len(tmp): 
      if slimes[i] == slimes[i+1] and slimes[i] != tmp[-1]:
          tmp.append(slimes[i])
    else:
      if slimes[i] == slimes[i+1]:
          tmp.append(slimes[i])

  print(len(tmp))    
```

Buggy submission (verdict: Runtime Error):
#import sys
print("hoge")
  ``` 
if __name__ == "__main__":
  args = sys.argv
  print(args)

  num = args[0]
  slimes = args[1]

  tmp = []
  for i in range(0,len(smiles)):
    if len(tmp): 
      if slimes[i] == slimes[i+1] and slimes[i] != tmp[-1]:
          tmp.append(slimes[i])
    else:
      if slimes[i] == slimes[i+1]:
          tmp.append(slimes[i])

  print(len(tmp))    
  ```

Buggy submission (verdict: Runtime Error):
import sys
print("hoge")
  ``` 
if __name__ == "__main__":
  args = sys.argv
  print(args)

  num = args[0]
  slimes = args[1]

  tmp = []
  for i in range(0,len(smiles)):
    if len(tmp): 
      if slimes[i] == slimes[i+1] and slimes[i] != tmp[-1]:
          tmp.append(slimes[i])
    else:
      if slimes[i] == slimes[i+1]:
          tmp.append(slimes[i])

  print(len(tmp))    
  ```

Buggy submission (verdict: Runtime Error):
import sys

if __name__ == "__main__":
  args = sys.argv
  print(args)
  ``` 
  num = args[0]
  slimes = args[1]

  tmp = []
  for i in range(0,len(smiles)):
    if len(tmp): 
      if slimes[i] == slimes[i+1] and slimes[i] != tmp[-1]:
          tmp.append(slimes[i])
    else:
      if slimes[i] == slimes[i+1]:
          tmp.append(slimes[i])

  print(len(tmp))    
  ```

Buggy submission (verdict: Runtime Error):
import sys

if __name__ == "__main__":
  args = sys.argv

  num = args[0]
  slimes = args[1]

  tmp = []
  for i in range(0,len(smiles)):
    if len(tmp): 
      if slimes[i] == slimes[i+1] and slimes[i] != tmp[-1]:
          tmp.append(slimes[i])
    else:
      if slimes[i] == slimes[i+1]:
          tmp.append(slimes[i])

  print(len(tmp))

Buggy submission (verdict: Runtime Error):
import sys

args = sys.argv

num = args[0]
slimes = args[1]
if __name__ == "__main__":
  tmp = []
  for i in range(0,len(smiles)):
    if len(tmp): 
      if slimes[i] == slimes[i+1] and slimes[i] != tmp[-1]:
          tmp.append(slimes[i])
    else:
      if slimes[i] == slimes[i+1]:
          tmp.append(slimes[i])

  print(len(tmp))

Buggy submission (verdict: Runtime Error):
import sys

args = sys.argv

num = args[0]
slimes = args[1]

tmp = []
for i in range(0,len(smiles)):
  if len(tmp): 
  	if slimes[i] == slimes[i+1] and slimes[i] != tmp[-1]:
  		tmp.append(slimes[i])
  else:
    if slimes[i] == slimes[i+1]:
 		tmp.append(slimes[i])

print(len(tmp))