CPU: 1s
Memory: 1024MB
এবারের ঢাকা মহানগরীর প্রতিযোগিতা অনুষ্ঠিত হচ্ছে ঢাকা বিশ্ববিদ্যালয়ের কম্পিউটার বিজ্ঞান ও প্রকৌশল বিভাগে। এই বিভাগটি ১৯৯২ সালে প্রতিষ্ঠিত হয়। বাংলাদেশের কম্পিউটার বিজ্ঞান ও প্রকৌশল শিক্ষার ক্ষেত্রে অন্যতম সেরা এই বিভাগ। অনেক বাঘা বাঘা প্রোগ্রামার থাকা সত্ত্বেও একটি সমস্যায় আটকে গেছে এই বিভাগ। তোমার উপর দায়িত্ব সেই সমস্যা সমাধান করার। আজকের অনুষ্ঠানে মোট X জন কুইজে রেজিস্টার করেছে এবং Y জন প্রোগ্রামিং এ রেজিস্টার করেছে। কিন্তু এদের মধ্যে Z জন আবার কুইজ এবং প্রোগ্রামিং দুইটিতেই রেজিস্টার করেছে। তাহলে এখন মোট কতজন এই প্রতিযোগিতাতে অংশ নিচ্ছে?
This year Department of Computer Science and engineering of University of Dhaka is hosting the competition for Dhaka Metropolitan area. This department was found in 1992. This is one of the best departments of our country for computer science and engineering. Though the department as so many skilled programmers, but it is stomped on a problem which you need to solve. For today’s competition, X person has registered for the quiz, Y person has registered for programming contest and Z of them registered for both events. How many of the students are participating in the competition in total?
#include<stdio.h> int main () { int X, Y, Z, res; scanf(“%d %d %d”,&X, &Y, &Z); //calculate res by writing your code here. printf ( “%d\n”, res ); return 0; }
ইনপুটের বর্ণনা
ইনপুট এ X, Y এবং Z (0<= X, Y, Z <=1000 , Z<=X,Y) এর মান দেওয়া থাকবে।
Input Specification
Input will have X, Y and Z (0<= X, Y, Z <=1000 , Z<=X,Y).
আউটপুটের বর্ণনা
আউটপুটের থাকবে মোট স্টুডেন্টের সংখ্যা।
Output Specification
Output will be the number of total student.
Sample
Input | Output |
---|---|
100 100 50 20 10 3 | 150 27 |