#include <iostream>
using namespace std;
int main() {
long long n, t;
cin >> n >> t;
while (t--) {
long long temp;
cin >> temp;
long long temp1=temp+1;
long long x=temp1/3 + 1;
long long y=temp1/3+temp1%3;
cout <<x<<" "<<y;
if (t)
cout << endl;
}
return 0;
}
【蓝桥杯】矩阵快速幂
2024-02-02 14:04:01 36 阅读