LightOJ 1001 number problem- Opposite Task

আজকে আলোচনা করব LightOJ এর 1001 number problem(1001 - Opposite Task) নিয়ে।
প্রথমে প্রবলেম টির আউটপুট  দেখে ঘাবড়ে যেতে পারো।
আমি যদি সহজ করে বলি তবে এভাবে বলা যেতে পারেঃ- প্রথমে একটি সংখ্যা ইনপুট নিতে হবে , এবং টা হবে (≤ 25)। এরপর ইনপুট জত হবে ততবার একটি  করে সংখ্যা ইনপুট নিবে, যার শর্ত হবে এরকম  (0 ≤ n ≤ 20)
এখন ধর ইনপুট হল ২। এখন আরও দুইবার একটি করে ইনপুট দিতে হবে যেমন,
১৫


আউটপুট হবে, যখন ১৫ ইনপুট দিবে তখন ৭ ৮ অর্থাৎ ৭+৮=১৫।
 আবার যখন ৭ ইনপুট দিবে তখন ৪ ৩, অর্থাৎ ৪+৩=৭

এবার প্রব্লেমতা পড়ে দ্যাখো বুঝতে পারবে।

1001 - Opposite Task

This problem gives you a flavor the concept of special judge. That means the judge is smart enough to verify your code even though it may print different results. In this problem you are asked to find the opposite task of the previous problem.
To be specific, I have two computers where I stored my problems. Now I know the total number of problems is n. And there are no duplicate problems and there can be at most 10 problems in each computer. You have to find the number of problems in each of the computers.
Since there can be multiple solutions. Any valid solution will do.

Input

Input starts with an integer T (≤ 25), denoting the number of test cases.
Each case starts with a line containing an integer n (0 ≤ n ≤ 20) denoting the total number of problems.

Output

For each case, print the number of problems stored in each computer in a single line. A single space should separate the non-negative integers.

Sample Input

Output for Sample Input

3
10
7
7
0 10
0 7
1 6


Problem Setter: Jane Alam Jan

বরাবরের মতই স্ক্রীন শট দিলাম জাতে কপি পেস্ট না করে নিজেই সল্ভে করতে পারো।
এতাও সিমপল if, else  এবং while loop দিয়ে করা যায়।

3 comments:

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

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

Theme images by enjoynz. Powered by Blogger.