LightOJ 1000 number problem (Greetings from LightOJ)

ধিরে ধিরে প্রোগ্রামিং শিখতে শুরু করেছি। c  প্রোগ্রামিং মোটামুটি পারি। suddenly  মনে হল, এই শেখা টাকে কাজে লাগান দরকার। জেই কথা সেই কাজ। শিদ্ধান্ত নিলাম প্রতিদিন একটা করে অনলাইন জাজ এর প্রবলেম সল্ভ করব।

আজ আলোচনা করব LightOJ এর 1000 number problrm(Greetings from LightOJ) নিয়ে।
প্রবলেম টি সল্ভ করার সময় প্রথমে অনেক বড় কোড লিখে ফেললাম।
কোড ও রান হল। কিন্তু জাজ নিল না।
কারন্টাও ধরতে পারলাম। প্রবলেম ছিল আউটপুট এ।
প্রবলেম টা এরকম ঃ-


After that the code will select a random problem for you from my problems database based on your previously solved problems, your skills and your weaknesses. But while I was coding for implementing this great idea, I found that, all of my problems are scattered in 2 computers. So, I have to merge them before running my code.
Now you are given the number of problems in each of the computers, you have to find the total number of problems. You can safely assume that no problem is stored in multiple computers. So, all the problems are distinct.

Input

Input starts with an integer T (≤ 125), denoting the number of test cases.
Each case starts with a line containing two integers a and b. a denotes the number of problems in the first computer and b denotes the number of problems in the second computer. You can safely assume that a and b will be non-negative and not greater than 10.

Output

For each case, print the case number and the total number of problems. See the samples for exact formatting.

Sample Input

Output for Sample Input

2
1 7
9 8
Case 1: 8
Case 2: 17

যাই হোক ভুল ছিল শেশে যখন আমি অউতপুত  এর জন্নে printf ফাংশন ব্যবহার করব তখন "case"শব্দটা ব্যাবহারই করিনি।
এখন নিজেরাই চেষ্টা করে দ্যাখো পারো কিনা, if এর ভেতর while loop এর কাজ। খুবি সহজ।
আমি এখন প্রবলেম টার স্ক্রীন শট দিচ্ছি জাতে কেউ কপি পেস্ট করতে না পারো।

No comments

বিটকয়েন - নতুন ধারা

বিটকয়েন হচ্ছে এক ধরনের সাংকেতিক মুদ্রা (Virtual Currency) যেটি ক্রিপ্টোগ্রাফিক প্রোটকলের মাধ্যমে লেনদেন করা হয়ে থাকে। এটি লেনদেন নিয়ন্ত্রণ...

Theme images by enjoynz. Powered by Blogger.