Skip to content

๐Ÿ” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๊ฐœ๋… ๋ฐ ๋ฌธ์ œ ํ’€์ด ์ €์žฅ์†Œ์ž…๋‹ˆ๋‹ค. ๐Ÿ”

Notifications You must be signed in to change notification settings

Beakjiyeon/algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒˆ algorithm

  • ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œ๋ฅผ ํ‘ธ๋Š” ์ €์žฅ์†Œ์ž…๋‹ˆ๋‹ค.

์ž…๋ ฅ ํŒ

  • ์ •์ˆ˜ํ˜• 2๊ฐœ ์ž…๋ ฅ ๋ฐ›๊ธฐ
a,b = map(int, input().split())
  • ์ •์ˆ˜ํ˜• n๊ฐœ ์ž…๋ ฅ ๋ฐ›๊ธฐ
arr = list(map(int,input().split()))
  • ์ •์ˆ˜ํ˜• 2๊ฐœ ์ž…๋ ฅ ๋ฐ›๊ธฐ (์ข€ ๋” ๋น ๋ฅด๊ฒŒ ์ž…๋ ฅ๋ฐ›๊ธฐ)
import sys
n, m = map(int, sys.stdin.readline().split())
  • 2์ฐจ์› ๋ฆฌ์ŠคํŠธ ์ž…๋ ฅ ๋ฐ›๊ธฐ
board = [list(map(int, sys.stdin.readline().split())) for _in range(n)]
  • ๋ฌธ์ž์—ด ์ž…๋ ฅ ๋ฐ›๊ธฐ
text = sys.stdin.readline().rstrip()

๋ฐฐ์—ด ํŒ

  • 1์ฐจ์› ๋ฐฐ์—ด ์ดˆ๊ธฐํ™”
rows = 10
arr = [0] * rows
  • 2์ฐจ์› ๋ฐฐ์—ด ์ดˆ๊ธฐํ™”
rows = 10
cols = 5
arr = [[0 for j in range(cols)] for i in range(rows)]

์ฐธ๊ณ  ๋ ˆํผ๋Ÿฐ์Šค

About

๐Ÿ” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๊ฐœ๋… ๋ฐ ๋ฌธ์ œ ํ’€์ด ์ €์žฅ์†Œ์ž…๋‹ˆ๋‹ค. ๐Ÿ”

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages