週末副業記

土日は副業エンジニアのブログです。副業に関することを投稿します。

2018-06-27から1日間の記事一覧

set()で重複をなくす(AtCoder(競プロ)1日1問【26日目】【Python】)

AtCoder Beginner Contest 089 B問題 競技プログラミングで使える関数を実際の問題を通して紹介いたします。 今回は「set()」です。 set()で重複をなくす >|python| n = int(input())type = len(set([ i for i in input().split()]))print(["Three","Fou…