#include<iostream>
using namespace std;
int n;
int res;
int main(){
scanf("%d",&n);
res = n;
while(n>=3){
res += (n/3);
n = n/3 + n%3;
}
printf("%d",res);
}
饮料换购(c++实现)
最新推荐文章于 2024-07-27 09:45:04 发布