結果

問題 No.188 HAPPY DAY
コンテスト
ユーザー shogo2022
提出日時 2017-01-18 06:36:27
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 22 ms / 1,000 ms
+ 923µs
コード長 339 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 55 ms
コンパイル使用メモリ 14,976 KB
実行使用メモリ 11,392 KB
最終ジャッジ日時 2026-10-09 19:22:20
合計ジャッジ時間 873 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import calendar
year = 2015

if calendar.isleap(year):
    days = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
else:
    days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

result = 0
for month in range(1, 13):
    for day in range(1, days[month-1]):
        if month == day // 10 + day %10:
            result += 1

print(result)
0