結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2020-08-01 15:33:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 1,000 ms |
コード長 | 539 bytes |
コンパイル時間 | 160 ms |
コンパイル使用メモリ | 82,344 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-07-08 02:43:26 |
合計ジャッジ時間 | 627 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
calender_dict = {1: 31,2: 28,3: 31,4: 30,5: 31,6: 30,7: 31,8: 31,9: 30,10: 31,11: 30,12: 31}count = 0for month, end_day in calender_dict.items():for day in range(1, end_day+1):sum_day = 0for ch in str(day):sum_day += int(ch)if month == sum_day:count += 1print(count)