提交时间:2020-08-14 17:19:27
运行 ID: 5694
#include<bits/stdc++> using namespace std; int main(void){ int m, n=0; printf("How many bottles do you have: "); scanf_s("%d",&m); while (m-3>0){ m=(m-3)+1; n++; } if (2==m) n=n+1; printf("You can change %d bottles\n", n); return 0; }