#include <iostream>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
cout<<n*(m+1)<<endl;
}
বৃহস্পতিবার, ১৮ ফেব্রুয়ারি, ২০১৬
Timus Online Judge 1264. Workdays Solution
লেবেলসমূহ:
Timus Online Judge
Timus Online Judge 1000. A+B Problem Solution
#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
cout<<a+b;
}
লেবেলসমূহ:
Timus Online Judge
সোমবার, ৮ ফেব্রুয়ারি, ২০১৬
URI Online Judge | 1273 Justifier Solution
#include <string>
#include <iostream>
#include <vector>
#include <string>
#include <iomanip>
using namespace std;
int main()
{
int N,length,mark = 0;
vector<string> words;
string word;
while(cin>>N&&N)
{
length = 0;
for(int i = 0 ; i<N; i++)
{
cin>>word;
if(word.length()>length)
length = word.length();
words.push_back(word);
}
if(mark!=0)
cout<<endl;
else
mark = 1;
for(int i = 0; i<N; i++)
{
cout<<right<<setw(length)<<words.at(i)<<endl;
}
words.clear();
}
}
লেবেলসমূহ:
URI Online Judge Solution
এতে সদস্যতা:
পোস্টগুলি (Atom)