seyeonHello

  • 홈
  • 태그
  • 방명록

acmicpc 2

[acmicpc] 11656. 접미사 배열(python)

s = input() arr=[] for i in range(0,len(s)): arr.append(s[i:]) arr = sorted(arr) for i in range(0,len(s)): print(arr[i]) : 평소 c++을 사용하다가 문자열을 다루는 문제는 python으로 간단하게 해결할 수 있어, python을 이용하여 풀어보았습니다. https://www.acmicpc.net/problem/11656 11656번: 접미사 배열 첫째 줄에 문자열 S가 주어진다. S는 알파벳 소문자로만 이루어져 있고, 길이는 1,000보다 작거나 같다. www.acmicpc.net

IT/coding study 2021.01.28

[acmicpc] 7576. 토마토(BFS)

bfs로 구현해보았습니다 메모리초과, 시간초과, ... 틀렸습니다에 이은 결과 값! #include #include int x, y; int arr[1000][1000]; int visit[1000][1000]; int depth[1000][1000]; using namespace std; int d_x[4] = { 0, 0, 1, -1 }; int d_y[4] = { 1, -1, 0, 0 }; queue qx; queue qy; int min_value; int cnt = 0; int flag = 0; void bfs() { while (!qx.empty() && !qy.empty()) { int temp_x = qx.front(); qx.pop(); int temp_y = qy.front(); qy...

IT/coding study 2020.09.26
이전
1
다음
더보기
프로필사진

seyeonHello

개발기록

  • 분류 전체보기 (63)
    • IT (62)
      • coding study (44)
      • web, hosting (4)
      • django (1)
      • c,c++ (1)
      • mqtt (1)
      • ai (1)
      • web assembly (3)
      • webpack (1)
      • 도커 (2)
      • redis (1)
      • 오류해결 (2)
      • mariadb (1)
    • 일상 (0)

Tag

MQTT, flask, pytorch, 웹호스팅, acmicpc, k8s, jupyter, web assmebly, 프로그래머스, PythonAnywhere, webpack, databasescheduler, Python, WebSocket, 백준, EC2, web assembly, django-celery-beat, DeepLearning, aws,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바