mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 17:32:00 +00:00
parent
ef2981ab45
commit
6c0df66cbc
27
Codeforces/1679/A/A.cpp
Normal file
27
Codeforces/1679/A/A.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
int t;
|
||||
long long a;
|
||||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
|
||||
cin >> t;
|
||||
|
||||
while (t--) {
|
||||
cin >> a;
|
||||
|
||||
if (a % 2 == 0 && a >= 4) {
|
||||
cout << a / 6 + !!(a % 6) << ' ' << (a % 4 == 2 ? (a - 3) / 4 + 1 : a / 4) << endl;
|
||||
} else {
|
||||
cout << -1 << endl;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user