#include <stdio.h>
#include <time.h>

int main() {
    clock_t start, end;
    start = clock();
    
    int a = 0x1;
    int b = 0x3;
    
    int sum = a + b;
    
    if (sum == 0x3) {
        printf("Output:0x%X\n",sum);
        printf("Correct\n");
        
        int c = 0x222;
        int d = 0x12F;
        int e = 0xCAA;
        
        int sum1 = c + d + e;
        
        printf("Output:0x%X\n",sum1);
    }
    
    else if (sum == 0x5) {
        printf("Unknown\n");
    }
    
    else if (sum > 0x3) {
        printf("Error\n");
        
        long long f = 0xFAA409611232;
        long long g = 0xFFFFB4476AAB;
        
        long long sum2 = f + g;
        
        printf("Output:%llX\n",sum2);
        
        if (sum2 == 0x1FAA3BDA87CDD) {
            printf("Correct!\n");
            
            long long h = 0xEEADEFFF;
            long long i = 0xAAA41289;
            
            long long sum3 = h + i;
            
            printf("Output:%llX\n",sum3);
            
            if (sum3 == 0x199520288) {
                printf("Yes!\n");
                
                int x = 0x5201314;
                
                printf("x The Address:%p\n",&x);
                
                int numbers[5] = {256, 26, 310, 4096, 500};
                int sum = 0;
                
                for (int i = 0; i < 5; i++) {
                    sum = sum + numbers[i];
            }
                
                printf("The sum of 5 is:%d\n",sum);
                
                if (sum == 5188) {
                    printf("Correct!\n");
                }
                
                else {
                    printf("Error!\n");
                    
                    for (volatile int i = 0; i < 1000000; i++);
                    printf("CPU刚刚浪费了0.00000几秒\n");
                }
            }
        }
    }
    
    end = clock();
    printf("Loop duration:%f second\n", (double)(end - start) / CLOCKS_PER_SEC);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: