일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 프로그래머스 SQL
- 파이썬 가상환경
- 빗썸 API 사용
- 오라클
- WAS WebServer 차이
- 와스 웹서버의 차이
- 리눅스
- 트레이딩 봇 만들기
- java
- 즐겨찾기가 가장 많은 식당 정보 출력하기
- Python
- 프로그래머스
- 변동성 돌파전략
- 리눅스 rwx
- 리눅스 777
- beautifulsoup
- 파이썬 주식
- 단순 반복 자동화
- JavaScript Obejct Notation
- BigDecimal
- Web Service Architecture
- string format
- spring
- JSON특징
- JSON 형식
- 프로그래머스 소수
- pybithumb
- Web Server란
- WAS란
- 파이썬
- Today
- Total
목록IT/알고리즘_Python (14)
IT 개발자_S
#!/bin/python3 import os import sys # # Complete the timeConversion function below. # def timeConversion(s): # # Write your code here. # time =0 if 'PM' in (s) : ## PM 일경구 time = abs(int(s[0:2]) +12) if(s[0:2] == '12') : time =12 s = s.replace(s[0:2], str(time)) return(s[0:-2].zfill(8)) else : if( int(s[0:2]) < 12): ## 12시 이전 값들은 동일하게 time = int(s[0:2]) else : ## 12시가 넘어가게되면 12를 빼줌 time = abs(in..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cvKkz5/btqCDknx2Of/PgnatW9NIZIMiAKvDTYNJK/img.png)
#!/bin/python3 import math import os import random import re import sys # Complete the birthdayCakeCandles function below. def birthdayCakeCandles(ar): ar.sort() ar.reverse() check = True result =0 i =0 while(check) : result +=1 if(ar[i] ==ar[i+1]): i +=1 else : return result check =False break if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') ar_count = int(input()) ar = li..