考场AC CODE: #include<bits/stdc++.h>usingnamespacestd;intn,res=0;boolflag;intans;intf(intn){if(n%3)returnn/3+1;elsereturnn/3;}intmain(){// freopen("apple.in","r",stdin);// freopen("apple.out","w",stdout);scanf("%d",&n);while(n){res++;if(n%3==1&&!flag)flag=1,an...