結果
問題 | No.188 HAPPY DAY |
ユーザー | Vin |
提出日時 | 2022-11-09 17:08:10 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 121 ms / 1,000 ms |
コード長 | 510 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 10,808 KB |
実行使用メモリ | 29,880 KB |
最終ジャッジ日時 | 2023-09-30 05:02:32 |
合計ジャッジ時間 | 885 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
ソースコード
import math import numpy as np import calendar def count(i, j): global happy sum = j//10 + j%10 #10の位と1の位を足す if i == sum: happy += 1 if __name__ == "__main__": happy = 0 m1 = [4,6,9,11] #30日 for i in np.arange(1,13): if i == 2: for j in np.arange(1,29): count(i, j) elif i in m1: for j in np.arange(1,31): count(i, j) else: for j in np.arange(1,32): count(i, j) print(happy) # your code goes here