/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Wrong Answer 254ms 1.27 MiB
#3 Wrong Answer 308ms 1.668 MiB

Code

#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <algorithm>

using namespace std;

signed main() {
	int T;
	cin >> T;
	while(T--)
	{
		long long int l, r, x;
		cin >> l >> r >> x;
		if(r - l < abs(x))
		{
			cout << -1 << " " << -1 << endl;
		}
		else
		{
			cout << r << " " << r - x << endl;
		}
	}
	return 0;
}

Information

Submit By
Type
Submission
Problem
P1186 Equal to X
Language
C++17 (G++ 13.2.0)
Submit At
2025-05-11 00:26:02
Judged At
2025-05-11 00:26:02
Judged By
Score
1
Total Time
308ms
Peak Memory
1.668 MiB