QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#60969#3525. Move & Meetabdelrahman001#WA 2ms3304kbC++20647b2022-11-08 23:18:252022-11-08 23:18:27

Judging History

This is the latest submission verdict.

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-08 23:18:27]
  • Judged
  • Verdict: WA
  • Time: 2ms
  • Memory: 3304kb
  • [2022-11-08 23:18:25]
  • Submitted

answer

#pragma GCC optimize ("O3")
#pragma GCC optimize ("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
using namespace std;
const int N = 1e5 + 5;
ll x, y, d1, a, b, d2;
int main() {
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    cin >> x >> y >> d1 >> a >> b >> d2;
    if((x + y + d1) % 2 != (a + b + d2) % 2)
		return cout << "impossible", 0;
	if(x < a) {
		d2 -= a - x;
	} else {
		d2 -= x - a;
	}
	if(y < b) {
		b -= d2;
	} else {
		b += d2;
	}
	cout << x << " " << b;
    return 0;
}


詳細信息

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 3304kb

input:

-1 -2 0
1 2 6

output:

impossible

result:

wrong output format Expected integer, but "impossible" found