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

Bathe

📝 Solutions 🔵 仅限 C++
Problems Description
<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>
Input格式
<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>
Output格式
<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>
Sample
Sample Input 1
3 5
Sample Output 1
3 4
Submit Code
请先Login后Submit

🤖 AI 解题助手

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