diff --git a/program.cpp b/program.cpp new file mode 100644 index 0000000..f3ab576 --- /dev/null +++ b/program.cpp @@ -0,0 +1,30 @@ +#include +using namespace std; +int getPairsCount(int arr[], int n, int num) +{ + int count = 0; + for (int i = 0; i < n; i++) + for (int j = i + 1; j < n; j++) + if ((arr[i] + arr[j]) % num == 0) + count++; + return count; +} +int main() { + int T; + cin>>T; + while(T>0){ + int size; + cin>>size; + int arr[size]; + for(int i=0; i>arr[i]; + } + int num = 4; + cout<