This C++ program calculates a special result based on a given array for multiple test cases. For each test case, the program first reads an integer N (the number of elements), then reads N integers ...
ll fact(ll n) { if(n==0) return 1; ll res = 1; for (ll i = 2; i <= n; i++) res = res * i; return res; } ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results