1 #include<cstdio> 2 int main() 3 { 4 int n; 5 while(scanf("%d",&n)!=EOF) 6 { 7 if(n%3==0) 8 printf("%d ",n/3*2); 9 else if((n+1)%3==0) 10 printf("%d ",n/3*2+1); 11 else printf("%d ",n/3*2); 12 } 13 return 0; 14 }
muhaha
1 #include<cstdio> 2 int main() 3 { 4 int n; 5 while(scanf("%d",&n)!=EOF) 6 { 7 if(n%3==0) 8 printf("%d ",n/3*2); 9 else if((n+1)%3==0) 10 printf("%d ",n/3*2+1); 11 else printf("%d ",n/3*2); 12 } 13 return 0; 14 }
muhaha