結果
問題 | No.188 HAPPY DAY |
ユーザー |
|
提出日時 | 2020-07-10 17:03:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 45 ms / 1,000 ms |
コード長 | 675 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-10-11 00:51:25 |
合計ジャッジ時間 | 658 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
import datetimestart_str = '2015-01-01 0:0:0'end_str = '2015-12-31 0:0:0'start_tdatetime = datetime.datetime.strptime(start_str, '%Y-%m-%d %H:%M:%S')start_tdate = datetime.date(start_tdatetime.year, start_tdatetime.month, start_tdatetime.day)end_tdatetime = datetime.datetime.strptime(end_str, '%Y-%m-%d %H:%M:%S')end_tdate = datetime.date(end_tdatetime.year, end_tdatetime.month, end_tdatetime.day)# print(start_tdate)# print(end_tdate)count = 0for i in range((end_tdate - start_tdate).days + 1):date = start_tdate + datetime.timedelta(days=i)if(date.month == date.day % 10 + date.day // 10):# print(date)count += 1print(count)