結果
問題 |
No.2109 Special Week
|
ユーザー |
|
提出日時 | 2022-10-28 21:39:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 379 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-06 00:44:56 |
合計ジャッジ時間 | 2,422 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 37 |
ソースコード
from datetime import date, timedelta m, d, k = map(int, input().split()) tdy = date(year=2022, month=m, day=d) td = timedelta(days=1) cnt = [0] * 10 for i in range(7) : cnt[td.month // 10] += 1 cnt[td.month % 10] += 1 cnt[td.day // 10] += 1 cnt[td.day % 10] += 1 tdy += td sm = 0 for x in cnt : if x > 0 : sm += 1 print("Yes" if sm >= k else "No")