/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 320.0 KiB
#2 Wrong Answer 0ms 284.0 KiB
#3 Wrong Answer 1ms 284.0 KiB

Code

#include <stdio.h>

int main(){

    int x = 0, t;

    scanf("%d", &t);

    while(x < t){

        int n;

        scanf("%d", &n);


        int ara[n];

        for (int i = 0; i < n; i++){
            ara[i] = i+1;
        }


        if(n  == 1 || n == 2){
            printf("1");
        }
        else{
            printf("%d\n", n - 2 );
        }

        x++;
    }

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1052 Yet Another Array Partition
Contest
Brain Booster #3
Language
C99 (GCC 13.2.0)
Submit At
2024-05-06 16:39:07
Judged At
2024-11-11 03:32:55
Judged By
Score
5
Total Time
1ms
Peak Memory
320.0 KiB