Skip to content

Commit 11435c2

Browse files
committed
Python : 야바위 대장[문자열]
1 parent 81a6cd2 commit 11435c2

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.idea/.DS_Store

6 KB
Binary file not shown.

BOJ_Python/15814.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 야바위 대장
2+
3+
s = list(map(str, input()))
4+
for _ in range(int(input())):
5+
a, b = map(int, input().split())
6+
s[a], s[b] = s[b], s[a]
7+
print(''.join(s))

0 commit comments

Comments
 (0)