일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 15596
- remote repository 생성
- regExr
- 수정사항업데이트
- github
- 파이썬
- 1330
- commit
- Push
- git push
- amend
- ADD
- local repository 생성
- 1
- git commit
- 백준
- 함수
- Baekjoon
- python
- GitHub 설치
- 정규식
- 두수비교하기
- boostcamp #aI tech #주간리뷰
- STAGE
- git config global
- Restore
- git
- Reset
- Today
- Total
목록Coding (13)
Très bien

PyTorch의 DataType 대부분 C언어에서 파생된 데이터 유형으로 NumPy와 유사한 형태이며, 추가적으로 cuda type의 GPU tensor가 지원된다. Torch defines 10 tensor types with CPU and GPU variants which are as follows: Data typed dtype typeCPU tensor GPU tensor 32-bit floating point torch.float32 or torch.float torch.FloatTensor torch.cuda.FloatTensor 64-bit floating point torch.float64 or torch.double torch.DoubleTensor torch.cuda.DoubleTens..

셀프 넘버 ◎ Problem Definition 4673번: 셀프 넘버 셀프 넘버는 1949년 인도 수학자 D.R. Kaprekar가 이름 붙였다. 양의 정수 n에 대해서 d(n)을 n과 n의 각 자리수를 더하는 함수라고 정의하자. 예를 들어, d(75) = 75+7+5 = 87이다. 양의 정수 n이 주어졌을 때, www.acmicpc.net ◎ Implementation 1. Problem Type - Implementation, Brute Force (실버 5) 2. Problem Analysis 양의 정수 n에 대해서 생성자 d(n)을 n과 n의 각 자리수를 더하는 함수라고 정의하자. - d(n) : n + n의 각 자리수 (n : int, n>0) 51의 생성자 : 39 (∵ 39 + 3 + 9 ..

두 수 비교하기 ◎ Problem Definition 1330번: 두 수 비교하기 두 정수 A와 B가 주어졌을 때, A와 B를 비교하는 프로그램을 작성하시오. www.acmicpc.net ◎ Implementation 1. Problem Type - Implementation (브론즈 4) 2. Problem Analysis A와 B를 비교하는 프로그램을 작성하시오. - if 문을 사용하여 비교하고 출력한다. 3. Solution_1 (☆초기 접근) ▶ 완성 코드 # 백준 1330 - 두 수 비교하기 # Date : Jan. 07. 2022 # written by LemonSoda a, b = map(int, input().split()) if a > b: print('>') elif a < b: pr..