Online Judge【CodeForces】[669A]Little Artem and Presents问题描述 问题分析能使数量最大的必然是12121212这种排列所以把12看作一个整体需用3个石头送出2次所以可除3看有几组并判断是否有余1 2 3 4 5 6 7 #include<stdio.h> int main() { int n; while(scanf("%d",&n)!=EOF) printf("%d\n",n/3*2+(n%3?1:0)); return 0; }题目地址:【CodeForces】[669A]Little Artem and Presents