일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 리버싱
- AndroidOS
- 파이썬웹
- csaw
- 웹해킹
- csaw 2018
- 바이러스
- 파이썬
- 코로나바이러스
- 취약점점검
- rev-basic-3
- 모세포
- 백준
- 코로나
- web
- 장고
- covid19
- webhacking.kr문제풀이
- 장고vscode
- 정보보호영재원
- Django
- 1546
- jango
- vscode
- 해킹
- 코로나바이러스19
- dreamhack
- 해킹문제
- djangovscode
- 해커
- Today
- Total
목록Programming/python (10)
Kilkat
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
a = int(input()) cnt = 0 for i in range(0, a): print('*' * (cnt+1)) cnt += 1