반응형
문제 설명
https://www.acmicpc.net/problem/1809'

제출한 코드
"(___)
(o o)____/
@@ \\
\\ ____,/
// //
^^ ^^"
결과

후기
처음 보는 언어지만 당황하지 말자.
반응형
https://www.acmicpc.net/problem/1809'
"(___)
(o o)____/
@@ \\
\\ ____,/
// //
^^ ^^"
처음 보는 언어지만 당황하지 말자.
https://www.acmicpc.net/problem/1547
import sys
num = int(sys.stdin.readline())
num_list = [0]*50
num_list[0] = 1
for i in range(num):
a, b = map(int, sys.stdin.readline().split())
temp = num_list[a-1]
num_list[a-1] = num_list[b-1]
num_list[b-1] = temp
for i in range (50):
if num_list[i-1]==1 :
print (i)
[Python/파이썬] 백준 1864번: 문어 숫자 (0) | 2024.06.14 |
---|---|
[Python/파이썬] 백준 1834번: 나머지와 몫이 같은 수 (0) | 2024.06.14 |
[Python/파이썬] 백준 1546번: 평균 (0) | 2024.06.14 |
[Python/파이썬] 백준 10675번: Cow Routing (0) | 2024.06.14 |
[Python/파이썬] 백준 30306번: Better Dice (0) | 2024.06.13 |
x = int(input())
num = list(map(int, input().split()))
Max = num[0]
for i in range(1,len(num)):
if num[i]>Max:
Max = num[i]
Max_num = i
for i in range(1, len(num)+1):
num[i-1] = num[i-1]/Max*100
print(sum(num)/len(num))
[Python/파이썬] 백준 1834번: 나머지와 몫이 같은 수 (0) | 2024.06.14 |
---|---|
[Python/파이썬] 백준 1547번: 공 (0) | 2024.06.14 |
[Python/파이썬] 백준 10675번: Cow Routing (0) | 2024.06.14 |
[Python/파이썬] 백준 30306번: Better Dice (0) | 2024.06.13 |
[Python/파이썬] 백준 1330번: 두 수 비교하기 (0) | 2024.06.12 |