일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 2530
- 암호
- Baekjoon
- 백준
- 2935
- combinations
- 10162
- Python3
- 4101
- kriii
- 2914
- Python
- math
- 9610
- 11557
- 10886
- 10214
- 5717
- MAX
- 2558
- itertools
- 파이썬
- 소수
- 2163
- 5355
- 약수
- 5063
- 2061
- BaekjoonOnlineJudge
- datetime
- Today
- Total
목록전체 글 (66)
new!dea
new7idea.tistory.com/ q = a // b r = a % b q, r = divmod(a, b) from datetime import datetime, timedelta dt = datetime(2000, 1, 1, h, m, s) dt = datetime.strptime('2000 1 1 12:00:00', '%Y %m %d %H:%M:%S') print(dt.strftime('%Y %m %d %H:%M:%S')) dt += timedelta(seconds=100) sorted(li, key=lambda a: a[2], reverse=True) from operator import itemgetter sorted(li, key=itemgetter(2), reverse=True) sort..
new7idea.tistory.com/ range for i in range(10): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 for i in range(2, 10): 2, 3, 4, 5, 6, 7, 8, 9 for i in range(1, 10, 2): 1, 3, 5, 7, 9 for i,v in enumerate(li): 순열, permutations from itertools import permutations for i in permutations(range(1,4), 3): (1, 2, 3) (1, 3, 2) (2, 1, 3) (2, 3, 1) (3, 1, 2) (3, 2, 1) 조합, combinations from itertools import combinations for i i..
new7idea.tistory.com/ 입력함수 a = input() a = int(input) a, b = map(int, input().split()) li = list(map(int, input().split())) li = [int(input()) for i in range(10)] import sys a = sys.stdin.readline().rstrip() a = int(sys.stdin.readline()) a, b = map(int, sys.stdin.readline().split()) li = list(map(int, sys.stdin.readline().split())) li = [int(sys.stdin.readline()) for i in range(10)] 출력함수 print()..
www.acmicpc.net/problem/2739 2739번: 구구단 N을 입력받은 뒤, 구구단 N단을 출력하는 프로그램을 작성하시오. 출력 형식에 맞춰서 출력하면 된다. www.acmicpc.net #2739 구구단 (Python3) 1 2 3 N = int(input()) for i in range(1,10): print(f'{N} * {i} = {N * i}') cs
www.acmicpc.net/problem/14681 14681번: 사분면 고르기 점 (x, y)의 사분면 번호(1, 2, 3, 4 중 하나)를 출력한다. www.acmicpc.net #14681 사분면 고르기 (Python3) 123456789101112x = int(input())y = int(input())if x > 0: if y > 0: print(1) else: print(4)else: if y > 0: print(2) else: print(3)cs
www.acmicpc.net/problem/1330 1330번: 두 수 비교하기 두 정수 A와 B가 주어졌을 때, A와 B를 비교하는 프로그램을 작성하시오. www.acmicpc.net #1330 두 수 비교하기 (Python3) 1234567A, B = map(int, input().split())if A > B: print('>')elif A
www.acmicpc.net/problem/10172
www.acmicpc.net/problem/10171 10171번: 고양이 아래 예제와 같이 고양이를 출력하시오. www.acmicpc.net #10171 고양이 (Python3) 백슬래시와 작은 따옴표에 주의하자. \ → \\ ' → \' cs 1 2 3 4 print('\\ /\\') print(' ) ( \')') print('( / )') print(' \(__)|') cs
www.acmicpc.net/problem/10718 10718번: We love kriii ACM-ICPC 인터넷 예선, Regional, 그리고 World Finals까지 이미 2회씩 진출해버린 kriii는 미련을 버리지 못하고 왠지 모르게 올해에도 파주 World Finals 준비 캠프에 참여했다. 대회를 뜰 줄 모르는 지박 www.acmicpc.net #10718 We love kriii (Python3) 강한친구 대한육군 1 2 print('강한친구 대한육군') print('강한친구 대한육군') cs
www.acmicpc.net/problem/13458 13458번: 시험 감독 첫째 줄에 시험장의 개수 N(1 ≤ N ≤ 1,000,000)이 주어진다. 둘째 줄에는 각 시험장에 있는 응시자의 수 Ai (1 ≤ Ai ≤ 1,000,000)가 주어진다. 셋째 줄에는 B와 C가 주어진다. (1 ≤ B, C ≤ 1,000,000) www.acmicpc.net #13458 시험 감독 (Python3) 총감독관의 수 = 시험장의 수 이므로 부감독관의 수만 계산하면 된다. 물론 이 때 총감독관의 감시범위는 제거해줘야 한다. 1 2 3 4 5 6 7 8 9 10 11 N = int(input()) A = list(map(int, input().split())) B, C = map(int, input().split()..