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.
Summing the N series
Summing the N series
Sort by
recency
|
369 Discussions
|
Please Login in order to post a comment
golang solution
python
in c++:
Java
include
int main() { int t; scanf("%d",&t); while(t--) { long long int x; scanf("%lld",&x); long long int r =((x % 1000000007)*(x % 1000000007)) % 1000000007; printf("%lld\n",r); } return 0; }