经典简约
清爽简洁,回归本真
液态水晶
毛玻璃+霓虹光带
赛博朋克
霓虹故障艺术风
🚫
违规操作检测
禁止使用右键菜单
⚠️ 此操作已被系统记录
1

Bathe

📝 题解 🔵 仅限 C++
题目描述
<p><span style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">Peter is a cleanly boy.One day,he finds &nbsp;that &nbsp;the &nbsp;number of cabinet has not been the&nbsp;</span></p> <div style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">number '4' &nbsp;when he goes to the bathhouse . Peter is curious about that .Maybe , in the</div> <div style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">opinion of boss of bathhouse, &nbsp;'4' &nbsp;is a unlucky number .</div> <div style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">&nbsp; Now Peter knows the biggest number of the cabinet &nbsp;N , can you help Peter to calculate</div> <p><br /> <span style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">the amount of &nbsp;cabinet in total?</span></p> <p></p>
输入格式
<p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">The input contains many test cases . Each line has a positive integer N.</p> <div style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;">( 1 &lt;= N &lt;= 50000 )</div> <p></p>
输出格式
<p><span style="color: rgb(85, 85, 85); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(245, 245, 245);">For each test case, you should output one line . That is, Output the amount of &nbsp;cabinet.</span></p> <p></p>
样例
样例输入 1
3 5
样例输出 1
3 4
提交代码
请先登录后提交

🤖 AI 解题助手

DeepSeek
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这道题,可以帮你分析思路、提供代码示例。
⚠️ 请先登录后使用