Skip to content

Commit

Permalink
CF2044A Easy Problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicfred committed Dec 16, 2024
1 parent 5de5e6d commit dc987e6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions codeforces/cf2044a_easy_problem.cpp
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit dc987e6

Please sign in to comment.