1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Pythonで競プロに挑む日誌 vol.6 ~集合型の内包表記~

Last updated at Posted at 2018-09-03

サクッと解けたので連続投稿.

現在の目標

  • 今年の10月内に茶色を取得する ←イマココ
  • 年内に緑色を取得する
  • APG4b で C++ にも手を出す

#今日の問題その2
ABC085B - Kagami Mochi
https://beta.atcoder.jp/contests/abs/tasks/abc085_b

結果

answer.py
# coding: utf-8
N = int(input())
print(len({input() for i in range(N)}))

# 実行時間:17 ms
# メモリ :2940 KB
# コード長:76 Byte
# 得点  :200/200

たぶん1行でも書けるんだろうけど, 最初の N がどこに行ったか分からなくなりそうなので, 私にはこれくらいがちょうどよさそうな気がする.

#明日やること
ABC085C - Otoshidama を解く.

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?