結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-04-07 18:14:27 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 28 ms / 1,000 ms | 
| コード長 | 628 bytes | 
| コンパイル時間 | 201 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,496 KB | 
| 最終ジャッジ日時 | 2024-10-02 18:44:12 | 
| 合計ジャッジ時間 | 554 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
"""
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)
            
            
            
        