목록링크 (2)
황소개발자
백준 14889 파이썬 python : 스타트와 링크 @@황소처럼 우직하게@@
import sys input = sys.stdin.readline n = int(input()) mat = [] for i in range(n): mat.append(list(map(int, input().strip().split()))) import itertools gab = 999999999 team = [i for i in range(n)] tt = list(itertools.combinations(team, n // 2)) for team1 in tt: team2 = [x for x in team if x not in team1] team1_score = 0 team2_score = 0 for x, y in list(itertools.combinations(team1, 2)): team1_sc..
백준 문제 풀이
2020. 2. 27. 00:34
[안드로이드 스튜디오][코틀린] 특정 사이트 링크로 이동하기 [android][kotlin]
버튼을 눌렀을 때, 어떤 사이트로 이동하게 만드는 코드이다. button_5.setOnClickListener { var intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://library.dgist.ac.kr/site/dgist_library/menu/839.do")) startActivity(intent) } button_5 는 버튼 이름이다. Uri.parse() 인자에 원하는 링크를 넣어주면 된다. 주의할것이 꼭 '' 가 아닌 "" 에 넣길바란다.
앱개발
2020. 2. 21. 16:25