結果

問題 No.188 HAPPY DAY
ユーザー ZUeUcFAQZUeUcFAQ
提出日時 2017-02-04 16:33:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 36 ms / 1,000 ms
コード長 337 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-12-31 01:19:49
合計ジャッジ時間 597 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import calendar
c = calendar.Calendar()
q = 0
i = 1
while i <= 12:
    for d in c.itermonthdays(2015, i):
            if d != 0:
                if d < 10:
                    d = "0" + str(d)
                l = [int(x) for x in list(str(d))]
                if i == int(l[0]) + int(l[1]):
                    q += 1
    i += 1
print(q)
0