List soal PWN untuk KSL Seleksi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.6 KiB

  1. #!/usr/bin/python
  2. import sys
  3. import os
  4. class Unbuffered(object):
  5. def __init__(self, stream):
  6. self.stream = stream
  7. def write(self, data):
  8. self.stream.write(data)
  9. self.stream.flush()
  10. def writelines(self, datas):
  11. self.stream.writelines(datas)
  12. self.stream.flush()
  13. def __getattr__(self, attr):
  14. return getattr(self.stream, attr)
  15. sys.stdout = Unbuffered(sys.stdout)
  16. print" /$$ /$$ /$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$ /$$"
  17. print" | $$ /$$/ /$$__ $$| $$ | $$__ $$| $$ /$ | $$| $$$ | $$"
  18. print" | $$ /$$/ | $$ \__/| $$ | $$ \ $$| $$ /$$$| $$| $$$$| $$"
  19. print" | $$$$$/ | $$$$$$ | $$ | $$$$$$$/| $$/$$ $$ $$| $$ $$ $$"
  20. print" | $$ $$ \____ $$| $$ | $$____/ | $$$$_ $$$$| $$ $$$$"
  21. print" | $$\ $$ /$$ \ $$| $$ | $$ | $$$/ \ $$$| $$\ $$$"
  22. print" | $$ \ $$| $$$$$$/| $$$$$$$$ | $$ | $$/ \ $$| $$ \ $$"
  23. print" |__/ \__/ \______/ |________/ |__/ |__/ \__/|__/ \__/"
  24. print" Author : Bagus Widhyasmara"
  25. print "<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>"
  26. print" "
  27. print "clue --> The 3rd answer can be read use indonesian and english language !"
  28. print" "
  29. name = raw_input("Masukan nama anda : ")
  30. print("Selamat datang "+name)
  31. while True:
  32. x = raw_input("enter your born place ")
  33. y = input("enter your born year ")
  34. z = input("how many letters 'o' on born ? ")
  35. if z == 1:
  36. perlin = raw_input("silahkan ketik perintah linux apapun! ")
  37. os.system(perlin)