結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-05-09 21:44:17 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 29 ms / 1,000 ms | 
| コード長 | 327 bytes | 
| コンパイル時間 | 70 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2024-07-06 05:00:53 | 
| 合計ジャッジ時間 | 527 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
# coding: utf-8
import calendar
month = 12
y = 2015
happy_ct = 0
for i in range(1,month + 1):
    last_day_num = calendar.monthrange(y,i)[1]
    
    for j in range(1,last_day_num):
        j_1 = j // 10
        j_2 = j % 10
        j_sum = j_1 + j_2
        
        if i == j_sum:
            happy_ct += 1
print(happy_ct)
            
            
            
        