diff --git a/Luogu/problem/CF1551A/CF1551A.cpp b/Luogu/problem/CF1551A/CF1551A.cpp new file mode 100644 index 00000000..ea5dd62d --- /dev/null +++ b/Luogu/problem/CF1551A/CF1551A.cpp @@ -0,0 +1,20 @@ +#include + +using namespace std; + +int t, n; + +int main() { + cin >> t; + while (t--) { + cin >> n; + if (n % 3 == 2) { + cout << n / 3 << ' ' << n / 3 + 1 << endl; + } else if (n % 3 == 1) { + cout << n / 3 + 1 << ' ' << n / 3 << endl; + } else { + cout << n / 3 << ' ' << n / 3 << endl; + } + } + return 0; +}