結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-10-23 21:51:15 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 12 ms / 1,000 ms | 
| コード長 | 260 bytes | 
| コンパイル時間 | 626 ms | 
| コンパイル使用メモリ | 7,076 KB | 
| 実行使用メモリ | 6,816 KB | 
| 最終ジャッジ日時 | 2024-12-31 06:02:47 | 
| 合計ジャッジ時間 | 1,091 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
from datetime import datetime, timedelta
cur = datetime(2015, 1, 1)
end = datetime(2016, 1, 1)
count = 0
while cur < end:
    x = cur.month
    y = sum([int(c) for c in str(cur.day)])
    if x == y:
        count += 1
    cur += timedelta(days=1)
print count
            
            
            
        