/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 540.0 KiB
#2 Accepted 1ms 772.0 KiB
#3 Accepted 121ms 884.0 KiB
#4 Accepted 147ms 1.391 MiB

Code

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

int main()
{
	int t, n;
	cin >> t;
	while (t-- && cin >> n)
	{
		cout << (n - 1) / 2 << "\n";
	}
	return 0;
}

Information

Submit By
Type
Submission
Problem
P1073 Pair Sum
Language
C++17 (G++ 13.2.0)
Submit At
2024-08-19 20:28:28
Judged At
2024-08-19 20:28:28
Judged By
Score
100
Total Time
147ms
Peak Memory
1.391 MiB