/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 9ms 9.621 MiB
#2 Accepted 10ms 9.582 MiB
#3 Accepted 213ms 10.0 MiB
#4 Accepted 236ms 10.559 MiB

Code

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

const int N = 3e5 + 9;
const int inf = 3e10 + 9;

int a[N], b[N];
int dp[1003][103];

string s[N];

vector<int> v[7];

std::map<string, int> mp;

int32_t main() {

    int tc = 1;
    cin >> tc;
    while(tc--) {
        int n; cin >> n;
        cout << (n / 2) - (n % 2 == 0) << 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:44:43
Judged At
2024-11-11 03:17:38
Judged By
Score
100
Total Time
236ms
Peak Memory
10.559 MiB