5 solutions

  • 0
    @ 2024-9-22 16:24:58

    #include<stdio.h> int main() {

    for (int i=1000;i<=9999;i++)
    {
    	if(i/1000 == i%10 && (i/100)%10 == (i%100)/10)
    	printf("%d\n" , i); 
    }
    return 0;
    

    }

    Information

    ID
    32
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    4
    Tags
    # Submissions
    385
    Accepted
    171
    Uploaded By