4 条题解

  • 1
    @ 2023-7-27 18:05:55

    #include using namespace std; int main() { int a,b,c,N; scanf("%d",&N); a=N/3;b=N/3;c=N/3; a=a/2;b=b/2;c=a+b+c; a=a/2;c=c/2;b=a+b+c; b=b/2;c=c/2;a=a+b+c; printf("%d %d %d\n",a,b,c); return 0; }

    • 1
      @ 2023-7-25 23:04:06

      #include using namespace std; int main() { int a,b,c,d; cin>>d; d=a+b+c; a=d/3/2; b=d/3/2; c=a+b+c; a=a/2; c=c/2; b=a+b+c; b=b/2; c=c/2; a=a+b+c; cout<<" a="<<a<<" b="<<b<<" c="<<c<<endl; return 0; }

      • 0
        @ 2023-7-26 9:56:35

        #include using namespace std; int main() { int a,b,c,d; cin>>d;a=b=c=d/3; a=a/2;b=b/2;c=a+b+c; a=a/2;c=c/2;b=a+b+c; b=b/2;c=c/2;a=a+b+c; cout<<a<<" "<<b<<" "<<c<<endl; return 0; }

        • 0
          @ 2023-7-25 18:15:32

          #include using namespace std; int main() { int N,a,b,c,A,B,C; scanf("%d",&N); A=B=C=N/3; c=(C+A/2+B/2)/2/2; b=(B/2+2*c+A/2/2)/2; a=A/2/2+b+c; printf("%d %d %d\n",a,b,c); return 0; }

          • 1

          信息

          ID
          313
          时间
          1000ms
          内存
          256MiB
          难度
          2
          标签
          (无)
          递交数
          237
          已通过
          142
          上传者