一个日期问题给秒杀众多ai模型

今天是2024年的4月10日,请问7749天之后是几号
在没有外置插件和代码解释器的情况下没有一个能答对这个问题

6 个赞

好变态的问题

3 个赞

gpt4告诉我的答案是2046年4月12日
对吗

2 个赞

3 个赞

正确答案:2045-06-28

from datetime import datetime, timedelta

# 定义起始日期
start_date = datetime(2024, 4, 10)

# 定义要添加的天数
days_to_add = 7749

# 计算新的日期
new_date = start_date + timedelta(days=days_to_add)

# 打印新的日期
print("新的日期是:", new_date.strftime('%Y-%m-%d'))
5 个赞

带代码解释器就是不一样

2 个赞

这是啥

2 个赞

2045年6月28日

1 个赞

GLM4带代码解释器

1 个赞

咋用的, 本地部署?

2 个赞
3 个赞


棋差一招

2 个赞

你是来水经验的吧,大水比

2 个赞

你把代码解释器关了试试,你单靠模型你试试,看你用的应该是gpt,你单纯的用api试试看看能不能得出这个日期

2 个赞

你让它用代码解释器试试,如果还是错就得看它写的代码了

2 个赞

API 不能用解释器所以就这样了

2 个赞

哇偶,遇到一个拉胯的

换了个代码模型,这次好歹给了个正确的代码,不过我明确写了24年,他写的例子偏偏用了23.4.10 计算7749天之后,有点怪

2 个赞

用英语提问算出来了

To calculate the date 7749 days from April 10, 2024, we can proceed by adding the days to the initial date.

1. Start date is April 10, 2024.
2. Number of days to add: 7749.

A direct approach involves breaking the problem down:

- One non-leap year has 365 days.
- A leap year has 366 days. A leap year occurs every 4 years, except for years divisible by 100 but not divisible by 400.

Given the starting point is in 2024, which is a leap year, let's calculate the years spanned by these 7749 days and then adjust for leap years within that period.

First, let's approximate the number of years (ignoring leap years for simplicity):
$$
7749 \, \text{days} \div 365.25 \approx 21.21 \, \text{years} \; (using \, 365.25 \, to \, average \, in \, leap \, years)
$$

This rough calculation suggests we span over 21 years; since it's a rough calculation, we know the exact end date will likely be in the 22nd year after starting, given the fraction beyond 21.

Now, we explicitly account for leap years within this span. From 2024 to 2045 (21 years later), we have:
- Leap years (by the rule: divisible by 4, and if divisible by 100, must also be divisible by 400): 2024, 2028, 2032, 2036, 2040, and 2044. That's 6 leap years.
- Hence, the days contributed by these 6 leap years are 6 days in addition to the standard year days.

We add 7749 days to April 10, 2024:
- 365 * 21 = 7665 days for 21 years.
- Adding 6 more days for the leap years gives 7671 days.
- 7749 - 7671 = 78 days beyond 21 years including up to 2045.

Finally, adding those additional 78 days to April 10, 2045, gives us the final date. Since we're adding days into the future, and given that April has 30 days, subtracting 10 days from April, we have 20 days in April, so:
- 78 days - 20 days of April remaining = 58 days.
- May has 31 days, so if we subtract that, we have 58 - 31 = 27 days into June.

Therefore, the date 7749 days after April 10, 2024, is June 27, 2045.
'''
差一天,不是问题
2 个赞

4回答的没毛病

2 个赞

也不对啊日期
2045年6月28日

1 个赞