結果
問題 | No.188 HAPPY DAY |
ユーザー | RinTabata |
提出日時 | 2024-02-07 16:40:29 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 28 ms / 1,000 ms |
コード長 | 710 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 9,984 KB |
最終ジャッジ日時 | 2024-02-07 16:40:30 |
合計ジャッジ時間 | 777 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
ソースコード
ans = 0 for x in range(1,13): if x == 1 or x == 3 or x == 5 or x == 7 or x == 8 or x == 10 or x == 12: for y in range(1,32): S = str(y) sum = 0 for s in S: sum += int(s) if x == sum: ans += 1 if x == 4 or x == 6 or x == 9 or x == 11: for y in range(1,30): S = str(y) sum = 0 for s in S: sum += int(s) if x == sum: ans += 1 if x == 2: for y in range(1,29): S = str(y) sum = 0 for s in S: sum += int(s) if x == sum: ans += 1 print(ans)