結果
問題 | No.188 HAPPY DAY |
ユーザー |
|
提出日時 | 2018-01-30 12:12:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 419 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-12-31 06:50:21 |
合計ジャッジ時間 | 559 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
import calendar count = 0 num = [] for c in range(1, 13): for d in range(1, calendar.monthrange(2015,c)[1] + 1): num = [int(x) for x in list(str(d))] if d < 10: if c == num[0]: count += 1 num = [] else: if c == num[0] + num[1]: count += 1 num = [] else: num = [] print(count)