Category Archives: ACM-ICPC

CP Resource


From beginner to expert in competitive programming.


Notes and courses for competitive programming


Programming Contest Time Waste or Benefitted ?



URI Online Judge | 1030 Flavious Josephus Legend

This is level 3 problem so will do it later. But this video will help for  sure.


Outsbook Problem Soln

Some I tried before:
102 Divisor

Father Daughter Age Problem Maybe It is 7-10th grade problem:

Mina Rina


Palindrome C code

String and Hackerearth

String Upper:

String Lower:

Lower Upper Both:

Hackerearth Problem:: Toggle String

Another Approach:

Another Approach:


Helpful Link:

Vector in C++

Vector Codes:

Vector Copy:



Queue :

Priority Queue:




String Stream:

Good websites for learning by example:

A good Array Example

Hackerrank problem:


Feelings Sharing

It was my last chance for participating in ACM ICPC Dhaka Regional Siteprogramming contest but as I am out of practice for last 2 semesters I didn’t even sit for preliminary round..I am not so good at problem solving but adhoc type problems became my favorite for last 2 years. I tried to learn ACM problem solving from my respected senior brothers, my batch mate buddies and my beloved juniors for last two years. It seemed to me very tough but I tried to be very regular at ACM Training classes during my undergrad life alongside with my academic life.

I personally believe that learning programming is a life time issue. It has starting point but no finishing line. I have a deep wish to learn these awesome things in future if Allah wills. Please keep me in your prayers for that and expressing my heartfelt wishes and prayers for today’s ICPC contestants <3 🙂


ACM Frustrations

That might be faced by almost everyone.

Competitive Programming Motivation

How to count numbers from string ?



Swap in C

Swap in C


UVA 12541-Birthdates Solutions

Took hints from here:

Some links for future use:

UVA 11479 – Is this the easiest problem?

Accepted code:

I have tested with some critical input after implementing the first logic and also read the condition for testcases .It is very important to make it accepted.

Critical input:
100 200 300
500 501 502
1000000000 1000000001 1000000002
963 852 741

Critical output:
Case 1: Invalid
Case 2: Scalene
Case 3: Scalene
Case 4: Scalene