Classic
Clean & simple
Crystal
Glassmorphism + Neon
Cyberpunk
Neon glitch art
🚫
违规Action检测
禁止Use右键菜单
⚠️ 此Action已被系统记录
1

【设计型】Page 12章:结构体和Total同体 Page 几天

📝 Solutions 🔵 仅限 C++
Problems Description
<span style="line-height:1.5;">&nbsp; &nbsp;定义一items结构体变量(包括年、月、日)。编写一items函数days,计算该日期在本年中是Page 几天(注意闰年问题)。由主函数将年月日传递给days函数,计算之后,将结果传回到主函数输出。</span>
Input格式
&nbsp; &nbsp; &nbsp;输入年月日,格式为xxx xx xx
Output格式
先开始提示User输入日期;然后输出Page 几天。
Sample
Sample Input 1
2013 01 02
Sample Output 1
请输入日期 日期2013/1/2是2013年的Page 2天
Submit Code
请先Login后Submit

🤖 AI 解题助手

OpenRouter
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这problems题,可以帮你points析思路、提供Code示例。
🔓 完全Free · 无需消耗 Token