1 solutions

  • 0
    @ 2024-9-29 15:48:01

    #include<stdio.h> int su(int a); int main(){ int i,j,a; for(i=6;i<=100;i+=2){ for(j=3;j<i;j++){ if(su(j)1)a=i-j; if(su(a)1){if(a<=j)printf("%d=%d+%d\n",i,a,j);else printf("%d=%d+%d\n",i,j,a);break;} } } return 0;} int su(int a){ int i,ret; for(i=2;i<a;i++){ if(a%i0){ret=0;break;} } if(ia) ret=1; return ret; }

    • 1

    Information

    ID
    6799
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    6
    Tags
    (None)
    # Submissions
    99
    Accepted
    29
    Uploaded By