結果

問題 No.188 HAPPY DAY
ユーザー No-Ra
提出日時 2017-08-23 21:30:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 790 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-31 05:49:55
合計ジャッジ時間 775 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

happy_day = 0

month = ["01", "02", "03", "04", "05", "06",
         "07", "08", "09", "10", "11", "12"]
day = ["31", "28", "31", "30", "31", "30",
       "31", "31", "30", "31", "30", "31"]
days = ["01", "02", "03", "04", "05",
        "06", "07", "08", "09", "10",
        "11", "12", "13", "14", "15",
        "16", "17", "18", "19", "20",
        "21", "22", "23", "24", "25",
        "26", "27", "28", "29", "30",
        "31"]

def solve(int1, int3, int4):
    X = int(int1)
    Y = int(int3) + int(int4)
    if X == Y:
        return True
    else:
        return False
solve

count = 0
for i in range(0, 12):
    for j in range(0, int(day[i])):
        #print(month[i], days[j][0], days[j][1])
        if solve(month[i], days[j][0], days[j][1]):
            count += 1

print(count)
0