Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- using namespace std;
- int main()
- {
- int t = 0;
- scanf("%d", &t);
- while (t--)
- {
- int n = 0;
- scanf("%d", &n);
- for (int i = 0; i < n; i += 2)
- {
- int x = 0, y = 0;
- scanf("%d%d", &x, &y);
- printf("%d %d ", -y, x);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment