diff --git a/codeforces/cf2044a_easy_problem.cpp b/codeforces/cf2044a_easy_problem.cpp new file mode 100644 index 0000000..74ea689 --- /dev/null +++ b/codeforces/cf2044a_easy_problem.cpp @@ -0,0 +1,25 @@ +// Vicfred +// https://codeforces.com/contest/2044/problem/A +// brute force +#include <iostream> + +using namespace std; + +int main() { + int t; + cin >> t; + while(t--) { + int n; + cin >> n; + int ans = 0; + for(int a = 1; a <= 100; ++a) { + for(int b = 1; b <= 100; ++b) { + if(a + b == n) { + ans += 1; + } + } + } + cout << ans << endl; + } + return 0; +}