Category: Problem Solution
#include<stdio.h> int main() { int i,j,rows; printf(“Enter the number of rows: “); scanf(“%d”,&rows); for(i=1; i<=rows; i++) {…
This is an opensource project by me and final release is version 1.0.1 till now. Description: First…
#include <map> #include <set> #include <list> #include <cmath> #include <ctime> #include <deque> #include <queue> #include <stack> #include…
http://cseweek.bdosn.org/posts/1/how-to-prepare-for-programming-contest
Its means that the value of A[i] must be remained between 0 to 10000000000
#include<stdio.h> int main() { int a[1000],n,i,sum=0; scanf(“%d”,&n); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); sum=sum+a[i]; } printf(“%d”,sum); return 0; }
Recent Comments