We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Divisible Pairs Sum
Divisible Pairs Sum
Sort by
recency
|
68 Discussions
|
Please Login in order to post a comment
include
using namespace std; int main(){
}
this is the solution in C int main() { int n,k; scanf("%d",&n); scanf("%d",&k); int a[n]; for(int i=0;i
can anyone explain which requirement is violating this code?
if name == 'main':
nk = input().split()
n = int(nk[0])
k = int(nk[1])
a = list(map(int, input().rstrip().split())) if((n>=2 and n<=100) and ( k>=1 and k<=100) ): for i in range(len(a)): if (a[i]>=1 and a[i]<=100): pass
print(len([[i,j]for i in a for j in a if (i
My solution in c# passed all the test cases using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution {
}
My solution in C,passed all test cases..
int main()
{
}