일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 장고vscode
- dreamhack
- 해킹문제
- 해커
- 모세포
- 웹해킹
- rev-basic-4
- vscode
- 코로나바이러스
- csaw
- Django
- 해킹
- 바이러스
- 코로나
- 취약점점검
- 백준
- 파이썬웹
- 장고
- basic4
- webhacking.kr문제풀이
- web
- AndroidOS
- 리버싱
- reversing
- djangovscode
- 파이썬
- jango
- csaw 2018
- rev-basic-3
- rev-basic-6
- Today
- Total
목록Programming/python (11)
Kilkat
import osimport threadingdef attack_file(directory, filename, counter, limit): filepath = os.path.join(directory, filename) malicious_content = "test" while True: if os.path.exists(filepath): try: with open(filepath, "w") as f: f.write(malicious_content) with counter.get_lock(): counter.value += 1 ..
n = int(input()) for i in range(n): nums = list(map(int, input().split())) avg = sum(nums[1:]) / nums[0] cnt = 0 for scores in nums[1:]: if scores > avg: cnt += 1 rate = cnt / nums[0] * 100 print(str(format(rate, '.3f')+'%'))
cro_list = ['c=', 'c-', 'dz=', 'd-', 'lj', 'nj', 's=', 'z='] a = input() for i in cro_list: if i in cro_list: a = a.replace(i, '0') print(len(a))
n = int(input()) Num = 0 cnt = 0 a = 1 while True: Num = n - (n - a) a += 1 cnt += 1 print(Num) if cnt >= n: break
a1 = int(input()) a2 = int(input()) a3 = int(input()) mul = list(str(a1 * a2 * a3)) for i in range(10): print(mul.count(str(i)))
a = int(input()) cnt = 0 space = 0 space_2 = 2 dec = 1 dec_2 = 3 for i in range(0, a): print(' ' * space, end = '') print('*' * (2 * a - dec)) space += 1 dec += 2 for i in range(0, a - 1): print(' ' * (a - space_2), end = '') print('*' * (a - (a - dec_2))) space_2 += 1 dec_2 += 2
a = int(input()) cnt = 1 cnt_2 = 1 for i in range(0, a): print('*' * cnt) cnt += 1 for i in range(0 , a - 1): print('*' * (a - cnt_2)) cnt_2 += 1
a = int(input()) cnt = 0 inc = 0 dec = 3 space = a - 1 for i in range(0, a): print(' ' * (space - cnt), end = '') print('*' * (a - (a - inc) + 1)) cnt += 1 inc += 2 for i in range(0 , a - 1): print(' ' * (a - space), end = '') print('*' * ((a * 2)-dec)) dec += 2 space -= 1
a = int(input()) cnt = 0 for i in range(0, a): print('*' * (a - cnt)) cnt += 1