【题解提供者】吴立强 解法 思路 本题较为简单,直接找规律即可。 代码 #include <iostream> using namespace std; int main() { int x; cin >> x; cout << (x % 9) / 3 + 1 << ' '; /// 层 cout << x % 3 + 1 << ' '; /// 行 cout << x / 9 + 1; /// 列 return 0; }