提交时间:2023-10-05 11:12:09
运行 ID: 105163
#include <iostream> using namespace std; int qizi(int k){ if(k==4){ cout << "4,5-->9,10\n"; }else{ cout << k << "," << k+1 << "-->" << 2*k+1 << "," << 2*k+2 << endl; return qizi(k-1); } } int main(){ int n; cin >> n; qizi(n); return 0; }