Skip to content

Commit

Permalink
Create 580_Problem_in_your_to_do_list.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rajvikash18113 committed Nov 21, 2024
1 parent 4e6bcdc commit 63791a3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Array/580_Problem_in_your_to_do_list.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// https://www.codechef.com/problems/TODOLIST

#include <bits/stdc++.h>

using namespace std;

int main() {
// your code goes here
int t;
cin >> t;
while (t--)
{
int n;
int count = 0;
cin >> n;
int arr[n];
for (int i = 0; i < n; i++)
{
cin >> arr[i];
}
for (int i = 0; i < n; i++)
{
if (arr[i] >= 1000)
{
count++;
}
}
cout << count << endl;
}
return 0;

}

0 comments on commit 63791a3

Please sign in to comment.