ম্যাজিক স্কয়ার জেনারেট করার এলগরিদম Add Comment Edit ম্যাজিক স্কয়ার জেনারেট করার এলগরিদম শর্তসমূহঃ ১। ডাইমেনশন অবশ্যই বিজোড় হতে হবে। যেমন n যদি ডাইমে... Read More
Google Code Jam Qualification Round Africa 2010 (Problem B. Reverse Words) Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { string s,st,w; ifstream in("b.txt"); o... Read More
Google Code Jam Qualification Round Africa 2010 (Problem A. Store Credit) 2 Comments Edit #include <bits/stdc++.h> using namespace std; int main() { long long int t,v,a[10000],i,j,sum,n,k,l,u,m,c; ifstr... Read More
How to make reverse order of words in a sentence Add Comment Edit Input String : I am a good boy Output String : boy good a am I #include <bits/stdc++.h> using namespa... Read More
UVA 10140 Prime Distance Add Comment Edit এখানে Lower Limit এবং Upper Limit দেয়া আছে। আউটপুট এ ইনপুট লিমিট এর মধ্যে Closest এবং Most Distant প্রাইম পেয়ার বের করতে... Read More
LightOj 1212 Double Ended Queue Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { deque<int>dq; int t,n,m,i,j,p,r,c; string s... Read More
UVA 673 Parentheses Balance 1 Comment Edit #include <bits/stdc++.h> using namespace std; int main() { stack<char>st; char s[10000]; long long int ... Read More
UVA 10699 Count The Factors Add Comment Edit #include <bits/stdc++.h> using namespace std; long long int primefactors(long long int n) { long long int c=0,p=0,d=... Read More
UVA 12592 Slogan Learning of Princess (Without Map And With Map) Add Comment Edit Easy Code (Without Map) #include <bits/stdc++.h> using namespace std; int main() { int i,j,n,m,k; string s,s1,s2,t... Read More