0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-03 18:56:26 +00:00

T258480 [Aya Round 1 C] 文文的构造游戏

https://www.luogu.com.cn/record/82793996
This commit is contained in:
Baoshuo Ren 2022-08-07 14:23:16 +08:00
parent 06e8fe6606
commit dd86807035
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

29
Luogu/T258480/T258480.cpp Normal file
View File

@ -0,0 +1,29 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int t;
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> t;
while (t--) {
long long s;
int m;
cin >> s >> m;
if (s % 2 || m == 1) {
cout << -1 << endl;
} else {
cout << 2 << ' ' << (s >> 1) << ' ' << (s >> 1) << endl;
}
}
return 0;
}