Codeforces Round #634 (Div. 3) Codeforces 1335D - Anti-Sudoku Solution




Problem Link :  https://codeforces.com/contest/1335/problem/D 

Solution in C++:

///La ilaha illellahu muhammadur rasulullah
///******Bismillahir-Rahmanir-Rahim******///
///Abul Hasnat  Tonmoy
///Department of CSE,23rd batch
///Islamic University,Bangladesh
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int t,i,j;
    cin>>t;
    while(t--)
    {
        string s[15];
        for(i=0; i<9; i++)
        {
            cin>>s[i];
            for(j=0; j<9; j++)
            {
                if(s[i][j]=='1')
                {
                    s[i][j]='2';
                }
            }
            cout<<s[i]<<endl;
        }
    }
}


No comments

Most View Post

Recent post

RESTful APIs with CRUD Operations in Laravel 12| (2025)

  RESTful APIs serve as the foundation of modern web development. They follow a set of rules called Representational State Transfer (REST) t...

Powered by Blogger.