結果

問題 No.188 HAPPY DAY
コンテスト
ユーザー
提出日時 2023-04-07 18:14:27
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 148 ms / 1,000 ms
コード長 628 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 538 ms
コンパイル使用メモリ 20,828 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2026-04-19 02:27:10
合計ジャッジ時間 1,611 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

"""
2(28)
4(30)
6(30)
9(30)
11(30)
"""
month_28days=[2]
month_30days=[4,6,9,11]
month_31days=[1,3,5,7,8,10,12]


HAPPYDAYcount=0

a=[]
for i in range(1,10):
   a.append(i)
for i in range(10,29):
   a.append(int(i/10)+i-int(i/10)*10) 

for m in month_28days+month_30days+month_31days:
    for i in a:
        if i==m:
            HAPPYDAYcount+=1

b=[]
for i in range(29,31):
   b.append(int(i/10)+i-int(i/10)*10) 

for m in month_30days+month_31days:
    for i in b:
        if i==m:
            HAPPYDAYcount+=1

c=[4]

for m in month_31days:
    for i in c:
        if i==m:
            HAPPYDAYcount+=1


print(HAPPYDAYcount)
0