結果
問題 | No.188 HAPPY DAY |
ユーザー | sinofseven |
提出日時 | 2020-02-02 01:24:45 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 376 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 11,740 KB |
実行使用メモリ | 10,412 KB |
最終ジャッジ日時 | 2023-10-19 00:28:50 |
合計ジャッジ時間 | 552 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
ソースコード
from datetime import date def is_valid(ten: int, one: int) -> bool: num = ten + one if num < 1 or 12 < num: return False try: date(2015, num, ten * 10 + one) return True except Exception: return False count: int = 0 for i in range(10): for j in range(10): if is_valid(i, j): count += 1 print(count)