文章

35

粉丝

0

获赞

144

访问

7.3k

头像
what can I say
P1543 云南大学机试题
发布于2025年3月16日 17:04
阅读数 123

frown

#include <bits/stdc++.h>
using namespace std;
int main() {
    int a[3][3]={{1,2,3},{4,5,6},{7,8,9}};
    int n;
    while(cin>>n){
    	for(int i=0;i<3;i++){
    		for(int j=0;j<3;j++){
    			if(a[i][j]==n){
    				cout<<i+1<<" "<<j+1<<endl;
				}
			}
		}	
	}
    
    return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发