結果

問題 No.188 HAPPY DAY
ユーザー 百
提出日時 2023-04-07 18:14:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 28 ms / 1,000 ms
コード長 628 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-04-10 16:22:17
合計ジャッジ時間 723 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""
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