結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-08-02 14:43:39 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 30 ms / 1,000 ms | 
| コード長 | 1,208 bytes | 
| コンパイル時間 | 152 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-12-31 00:59:49 | 
| 合計ジャッジ時間 | 617 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
list31=[1,3,5,7,8,10,12]
list30=[4,6,9,11]
list28=[2]
c=0
for i in range(len(list31)):
    for j in range(31):
        if j<10:
            if list31[i]==j:
                c=c+1
        elif j>=10 and j<20:
            if list31[i]==1+(j-10):
                c=c+1
        elif j>=20 and j<30:
            if list31[i]==2+(j-20):
                c=c+1
        elif j>=30:
            if list31[i]==3+(j-30):
                c=c+1
        j=j+1 
    i=i+1
for i in range(len(list30)):
    for j in range(30):
        if j<10:
            if list30[i]==j:
                c=c+1
        elif j>=10 and j<20:
            if list30[i]==1+(j-10):
                c=c+1
        elif j>=20 and j<30:
            if list30[i]==2+(j-20):
                c=c+1
        elif j>=30:
            if list30[i]==3+(j-30):
                c=c+1
        j=j+1 
    i=i+1
    
for i in range(len(list28)):
    for j in range(28):
        if j<10:
            if list28[i]==j:
                c=c+1
        elif j>=10 and j<20:
            if list28[i]==1+(j-10):
                c=c+1
        elif j>=20 and j<30:
            if list28[i]==2+(j-20):
                c=c+1
        
        j=j+1 
    i=i+1   
    
print(c)    
            
            
            
        