Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int arr[3][3]={0},i,j,r,temp;
- scanf("%d",&r);
- temp=r;
- while(temp--){
- int x,y;
- scanf("%d%d",&x,&y);
- arr[x-1][y-1]=1;
- }
- printf("Total empty cells - %d\n",9-r);
- for(i=0;i<3;++i){
- for(j=0;j<3;++j){
- if(arr[i][j]==0){
- printf("%d %d\n",i+1,j+1);
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement