結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2021-07-18 15:03:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 24 ms / 1,000 ms |
コード長 | 733 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-07-08 08:26:51 |
合計ジャッジ時間 | 426 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
def main():days1 = [d for d in range(1, 10)]days2 = [d for d in range(10, 32)]d = days1for i in days2:j = sum(list(map(int, str(i))))d.append(j)HAPPY_DAY = 0feb_d = d[0:28]ajsn_days = d[0:30]other_d = dfeb = [2]for x in feb:for y in feb_d:if x == y:HAPPY_DAY += 1ajsn = [4, 6, 9, 11]for x in ajsn:for y in ajsn_days:if x == y:HAPPY_DAY += 1other_m = [1, 3, 5, 7, 8, 10, 12]for x in other_m:for y in other_d:if x == y:HAPPY_DAY += 1print(HAPPY_DAY)if __name__ == '__main__':main()