일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- C++
- Numpy
- Daily Commit
- til
- centuryFromYear
- matrixElementsSum
- 백준
- 2015 봄학기 알고리즘
- adjacentElementsProduct
- 파이썬 포렌식
- baekjun
- Counting cells in a blob
- recursion
- 수 정렬하기
- 피보나치 수
- codesignal
- shapeArea
- Python
- markdown
- flask
- codesingal
- Sequential Search
- almostIncreasingSequence
- 2750
- collections.deque
- 10953
- data_structure
- cpp
- 파이썬머신러닝완벽가이드
- All Longest Strings
Archives
- Today
- Total
Introfor
HackerRank - Sales by Match
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 #!/bin/python3 import math import os import random import re import sys # Complete the sockMerchant function below. def sockMerchant(n, ar): res = 0 for i in set(ar): res += ar.count(i) // 2 return res if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') n = int(input()) ar = list(map(int, input().rstrip..
Doing/Python
2020. 10. 20. 00:04