Codeforces Solution 1178C. Tiles

Solve in C++:

#include <iostream>
using namespace std;
int main()
{
    int w,h,i,result=1;
    cin>>w>>h;
    for(i=0;i<w+h;i++)
    {
        result=(result+result)%998244353;
    }
    cout<<result<<endl;
    return 0;
}



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.