CPU: 3s
Memory: 1024MB
এই প্রবলেম এ তোমাকে ত্রিভূজ আকতে হবে। ত্রিভূজ গুলোর আকৃতির ছবি দেয়া হল, ত্রিভূজ গুলোর নিচে সেপগুলোর সংগা দেয়া আছে। বুঝতে চেস্টা কর কোনটা কিভাবে হল,
In this problem you will have to print Triangle। The shapes are defined below, Try to find out how they are printed,

ইনপুটের বর্ননা (Input Specification)
প্রথমেই একটা নাম্বার থাকবে T যেটা বলবে তোমাকে কতগুলো টেস্ট কেস আছে। এর পর প্রত্তেক লাইন এ একটি নাম্বার এবং দুটি ক্যারেক্টার থাকবে যার ব্যাক্ষা উপরের ছবিতে দেয়া আছে।
Input will start with an integer denoting the value of number of test case T(<=100). Each of the test case will have a number n denoting the size of the triangle. Next there is two character denoting the shape of the triangle.
আউটপুটের বর্ননা (Output Specification)
কেস নাম্বার সহ তোমাকে ত্রিভূজটি প্রিন্ট করতে হবে।
Output the case number and print the triangle.
Sample
Input | Output |
---|---|
4 4 U R 4 U L 4 D R 4 D L | Case 1: * ** *** **** Case 2: * ** *** **** Case 3: **** *** ** * Case 4: **** *** ** * |
Problemsetter: M. Saiful Bari Maruf