/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 320.0 KiB
#2 Accepted 2ms 532.0 KiB
#3 Accepted 18ms 1.043 MiB
#4 Accepted 21ms 1.477 MiB

Code

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pi (3.141592653589)
#define mod 1000000007
#define pb push_back
#define vi vector<ll>
#define mp make_pair
#define f first
#define s second
#define sz(container) (ll) container.size()
#define setp(x) cout << fixed << setprecision(x)
#define all(container) container.begin(), container.end()
#define rall(container) container.rbegin(), container.rend()
#define fast ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
int main()
{
    fast;
    ll t;
    cin >> t;
    while (t--)
    {
        ll n;
        cin >> n;
        cout << (n - 1) / 2 << "\n";
    }
}

Information

Submit By
Type
Submission
Problem
P1073 Pair Sum
Language
C++17 (G++ 13.2.0)
Submit At
2024-08-17 03:54:53
Judged At
2024-11-11 03:09:52
Judged By
Score
100
Total Time
21ms
Peak Memory
1.477 MiB