結果

問題 No.188 HAPPY DAY
ユーザー mahnamahna
提出日時 2021-02-21 16:25:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 264 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 11,880 KB
実行使用メモリ 9,960 KB
最終ジャッジ日時 2023-10-19 18:11:04
合計ジャッジ時間 611 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# coding: utf-8
# Your code here!

lastDay = [31,28,31,30,31,30,31,31,30,31,30,31]
ct = 0

for i in range(1,13):
    for j in range(1,lastDay[i-1]+1):
        temp1 = i
        temp2 = (j // 10) + (j % 10)
        if temp1 == temp2:
            ct += 1

print(ct)
0