文章
2
粉丝
67
获赞
0
访问
924
#include<bits/stdc++.h> using namespace std; int main(){ int n; int row; int col; while(cin >> n){ if(n%3==0) row = n / 3; else row = n / 3 + 1; col = n - (row-1) * 3; cout << row << " " << col << endl; } return 0; }
登录后发布评论
暂无评论,来抢沙发