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

不高兴的津津

📝 Solutions 🔵 仅限 C++
Problems Description
<p><style type="text/css">p { margin-bottom: 0.21cm; }</style> <p style="margin-bottom: 0cm;">津津上初中了。妈妈认为津津应该更加用功学习,所以津津除了上学之外,还要参加妈妈为她报名的各科复习班。另外每周妈妈还会送她去学习朗诵、舞蹈和钢琴。但是津津如果一天上课超过八items小时就会不高兴,而且上得越久就会越不高兴。假设津津不会因为其它事不高兴,并且她的不高兴不会持续到Page 二天。请你帮忙检查一下津津下周的日程安排,看看下周她会不会不高兴;如果会的话,哪天最不高兴。</p> <p style="margin-bottom: 0cm;"></p> </p>
Input格式
<p><style type="text/css">p { margin-bottom: 0.21cm; }</style> <p style="margin-bottom: 0cm;">输入File<font face="DejaVu Serif, serif">unhappy.in</font>包括七行数据,points别表示周一到周日的日程安排。每行包括两items小于<font face="DejaVu Serif, serif">10</font>的非负整数,用空格隔开,points别表示津津在学校上课的时间和妈妈安排她上课的时间。</p> <p style="margin-bottom: 0cm;"></p> </p>
Output格式
<p><style type="text/css">p { margin-bottom: 0.21cm; }</style> <p style="margin-bottom: 0cm;">输出File<font face="DejaVu Serif, serif">unhappy.out</font>包括一行,这一行只包含一items数字。如果不会不高兴则输出<font face="DejaVu Serif, serif">0</font>,如果会则输出最不高兴的是周几(用<font face="DejaVu Serif, serif">1, 2, 3, 4, 5, 6, 7</font>points别表示周一,周二,周三,周四,周五,周六,周日)。如果有两天或两天以上不高兴的程度相当,则输出时间最靠前的一天。</p> <p style="margin-bottom: 0cm;"></p> </p>
Sample
Sample Input 1
5 3 6 2 7 2 5 3 5 4 0 4 0 6
Sample Output 1
3
Submit Code
请先Login后Submit

🤖 AI 解题助手

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