摘要:
#include using namespace std; int m, n, ans; void solve(int m, int n, int cnt) { if (m == 0 && n == 0) { ans++; return; } if (cnt > 0 && n > 0) solve(m, n-1, cnt... 阅读全文
摘要:
题目链接:NN and the Optical Illusion 题目原文 NN is an experienced internet user and that means he spends a lot of time on the social media. Once he found the 阅读全文
摘要:
题目链接:Build a Contest 题目原文 Arkady coordinates rounds on some not really famous competitive programming platform. Each round features 𝑛 problems of dis 阅读全文
摘要:
题目链接:Roman and Browser 题目原文 This morning, Roman woke up and opened the browser with 𝑛 opened tabs numbered from 1 to 𝑛. There are two kinds of tabs: 阅读全文
摘要:
题目链接:Kilani and the Game 题目原文 Kilani is playing a game with his friends. This game can be represented as a grid of size 𝑛×𝑚, where each cell is eith 阅读全文
摘要:
题目链接:Zuhair and Strings 题目原文 Given a string 𝑠 of length 𝑛 and integer 𝑘 (1≤𝑘≤𝑛). The string 𝑠 has a level 𝑥, if 𝑥 is largest non-negative inte 阅读全文
摘要:
题目链接:Salem and Sticks 题目原文 Salem gave you 𝑛n sticks with integer positive lengths 𝑎1,𝑎2,…,𝑎𝑛a1,a2,…,an. For every stick, you can change its lengt 阅读全文
摘要:
题目链接:Grid game 题目原文 You are given a 4x4 grid. You play a game — there is a sequence of tiles, each of them is either 2x1 or 1x2. Your task is to conse 阅读全文
摘要:
题目链接:Game with string 题目原文 Two people are playing a game with a string 𝑠s, consisting of lowercase latin letters. On a player's turn, he should choos 阅读全文
摘要:
题目链接:Splitting into digits 题目原文 Vasya has his favourite number 𝑛n. He wants to split it to some non-zero digits. It means, that he wants to choose so 阅读全文