QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#722928#8132. Freshman's DreamzakeWA 0ms3648kbC++171.9kb2024-11-07 20:39:042024-11-07 20:39:05

Judging History

你现在查看的是最新测评结果

  • [2024-11-07 20:39:05]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3648kb
  • [2024-11-07 20:39:04]
  • 提交

answer

#include <bits/stdc++.h>
#define FAST_IO ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
using namespace std;

typedef unsigned long long ull;
typedef pair<int, int> pii;
const int N = 5010, M = 1e4+10, P = 131, mod1 = 1e9 + 7, mod2 = 998244353;
int n,m,k;

int a[N][N];

void solve(){
	cin>>n;
//	for(int n=1;n<=10;n++){
//		for(int i=1;i<=10;i++){
//			for(int j=1;j<=10;j++){
//				if(((i+j)^n)==(i^(n+j)^n)){
//					cout<<n<<": "<<i<<' '<<j<<'\n';
//				}
//			}
//		}
//	}
	if(n&1){
		cout<<-1<<'\n';
	}else{
		cout<<n/2<<' '<<n/2<<'\n';
	}
}

signed main() {
	FAST_IO
	int t = 1;
	cin >> t;
	while (t--) {
		solve();
	}
}


/**
 *        ┏┓   ┏┓+ +
 *       ┏┛┻━━━┛┻┓ + +
 *       ┃       ┃
 *       ┃   ━   ┃ ++ + + +
 *       ████━████ ┃+
 *       ┃       ┃ +
 *       ┃   ┻   ┃
 *       ┃       ┃ + +
 *       ┗━┓   ┏━┛
 *         ┃   ┃
 *         ┃   ┃ + + + +
 *         ┃   ┃    Code is far away from bug with the animal protecting
 *         ┃   ┃ +     神兽保佑,代码无bug
 *         ┃   ┃
 *         ┃   ┃  +
 *         ┃    ┗━━━┓ + +
 *         ┃        ┣┓
 *         ┃        ┏┛
 *         ┗┓┓┏━┳┓┏┛ + + + +
 *          ┃┫┫ ┃┫┫
 *          ┗┻┛ ┗┻┛+ + + +
 */

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3648kb

input:

5
2
3
6
10
18

output:

1 1
-1
3 3
5 5
9 9

result:

wrong answer sides not equal