/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 324.0 KiB
#2 Wrong Answer 5ms 320.0 KiB
#3 Time Exceeded ≥1085ms ≥544.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;

/// complete sliding window and two pointer

///A. Codeforces Checking

int main()
{
    long long t,n;
    cin >> t;
    while(t--){
       cin >> n;
       int counter = 1;
       for(int i=1; i<n-1; i++){
        for(int j=1; j<n-1; j++){
            if(i<j && i+j==n){
                counter++;
            }
        }
       }
       cout << counter  <<endl;

    }



    return 0;
}

Information

Submit By
Type
Submission
Problem
P1073 Pair Sum
Contest
Bangladesh 2.0
Language
C++20 (G++ 13.2.0)
Submit At
2024-08-16 15:55:14
Judged At
2024-11-11 03:16:55
Judged By
Score
10
Total Time
≥1085ms
Peak Memory
≥544.0 KiB