{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"Section1\"\u003e\r\n\t\u003cp class\u003d\"MsoNormal\"\u003e\r\n\t\t\u003cspan data-scayt_word\u003d\"Rahaduzzaman\" data-scaytid\u003d\"1\"\u003eRahaduzzaman\u003c/span\u003e \u003cspan data-scayt_word\u003d\"Setu\" data-scaytid\u003d\"2\"\u003eSetu\u003c/span\u003e, (Roll - 12) of \u003cspan data-scayt_word\u003d\"13th\" data-scaytid\u003d\"3\"\u003e13th\u003c/span\u003e batch, \u003cspan data-scayt_word\u003d\"CSE\" data-scaytid\u003d\"4\"\u003eCSE\u003c/span\u003e, University of Dhaka is tremendously ill. He has been suffering from Multi Drug Resistant TB for a long time. Now, his left lung is damaged and beyond repair. No medicine is working on his body to ease his pain. It is urgent to operate on his left lung so that the disease doesn\u0026#39;t spread to his right lung. It can either be removed through surgery or transplanted. He comes from a modest family and it is difficult and impossible for them to bare his medical expenses anymore. Because of the money needed (12 million \u003cspan data-scayt_word\u003d\"BDT\" data-scaytid\u003d\"5\"\u003eBDT\u003c/span\u003e) to transplant, it is his family\u0026#39;s decision to go with the surgery (3 million \u003cspan data-scayt_word\u003d\"BDT\" data-scaytid\u003d\"6\"\u003eBDT\u003c/span\u003e). We must help them financially by raising money. But we must not be confined with that amount only to do the surgery. We must go for the Transplant. Our target will be to collect as much as possible to help our friend.\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoNormal\"\u003e\r\n\t\tIf anyone wants to contribute now, please send me your contribution or contact me. Please contribute as much as you can to save a life that you saw every week for the first two years of your University life. Please contribute as per your abilities. Our combined effort may save a life.\u003c/p\u003e\r\n\tHowever, in this problem, you have to build a software that can calculate the donations. Initially the total amount of money is 0 and in each time, two types of operations will be there.\r\n\t\u003cp class\u003d\"MsoListParagraph\" style\u003d\"text-indent:-.25in\"\u003e\r\n\t\t1)\u003cspan style\u003d\"font-size:\r\n7.0pt;line-height:115%;font-family:\u0026quot;Times New Roman\u0026quot;,\u0026quot;serif\u0026quot;\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003c/span\u003e\u003cb\u003e\u0026quot;donate K\u003c/b\u003e\u0026quot;\u003cb\u003e (100 \u0026le; K \u0026le; 10\u003csup\u003e5\u003c/sup\u003e)\u003c/b\u003e, then you have to add \u003cb\u003eK\u003c/b\u003e to the account.\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoListParagraph\" style\u003d\"text-indent:-.25in\"\u003e\r\n\t\t2)\u003cspan style\u003d\"font-size:\r\n7.0pt;line-height:115%;font-family:\u0026quot;Times New Roman\u0026quot;,\u0026quot;serif\u0026quot;\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003c/span\u003e\u003cb\u003e\u0026quot;report\u0026quot;\u003c/b\u003e, report all the money currently in the account.\u003c/p\u003e\r\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tThe first line of input will contain \u003cb\u003eT (1 \u0026le; T \u0026le; 100)\u003c/b\u003e denoting the number of operations. Then there will be \u003cb\u003eT\u003c/b\u003e lines each containing two types of operations as given. You may assume that the input follows the restrictions above.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tFor each \u003cb\u003e\u0026quot;report\u0026quot;\u003c/b\u003e operation, print the total amount of money in the account.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t4\u003c/p\u003e\r\n\u003cpre\u003e\r\n\u003cspan style\u003d\"font-size:12.0pt;font-family:Courier\"\u003edonate 1000\u003c/span\u003e\u003c/pre\u003e\r\n\u003cpre\u003e\r\n\u003cspan style\u003d\"font-size:12.0pt;font-family:Courier\"\u003ereport\u003c/span\u003e\u003c/pre\u003e\r\n\u003cpre\u003e\r\n\u003cspan style\u003d\"font-size:12.0pt;font-family:Courier\"\u003edonate 500\u003c/span\u003e\u003c/pre\u003e\r\n\u003cpre\u003e\r\n\u003cspan style\u003d\"font-size:12.0pt;font-family:Courier\"\u003ereport\u003c/span\u003e\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\r\n\u003cspan style\u003d\"font-size:12.0pt;font-family:Courier\"\u003e1000\r\n\u003c/span\u003e\u003c/pre\u003e\r\n\u003cpre\u003e\r\n\u003cspan style\u003d\"font-size:12.0pt;font-family:Courier\"\u003e1500\u003c/span\u003e\u003c/pre\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t#include\u0026lt;string.h\u0026gt;\u003cbr /\u003e\r\n\t\u003cbr /\u003e\r\n\t\u003cspan data-scayt_word\u003d\"int\" data-scaytid\u003d\"472\"\u003eint\u003c/span\u003e \u003cspan data-scayt_word\u003d\"len\" data-scaytid\u003d\"331\"\u003elen\u003c/span\u003e \u003d \u003cspan data-scayt_word\u003d\"strlen\" data-scaytid\u003d\"317\"\u003es\u003cspan data-scayt_word\u003d\"trlen\" data-scaytid\u003d\"41\"\u003etrlen\u003c/span\u003e\u003c/span\u003e( \u003cspan data-scayt_word\u003d\"s1\" data-scaytid\u003d\"364\"\u003es1\u003c/span\u003e ); // returns number of characters ( length of string ).\u003cbr /\u003e\r\n\t\u003cspan data-scayt_word\u003d\"strcpy\" data-scaytid\u003d\"34\"\u003estrcpy\u003c/span\u003e(\u003cspan data-scayt_word\u003d\"s1\" data-scaytid\u003d\"40\"\u003es1\u003c/span\u003e , \u003cspan data-scayt_word\u003d\"s2\" data-scaytid\u003d\"53\"\u003es2\u003c/span\u003e ); // copy \u003cspan data-scayt_word\u003d\"s2\" data-scaytid\u003d\"62\"\u003es2\u003c/span\u003e to \u003cspan data-scayt_word\u003d\"s1\" data-scaytid\u003d\"66\"\u003es1\u003c/span\u003e.\u003cbr /\u003e\r\n\t\u003cspan data-scayt_word\u003d\"int\" data-scaytid\u003d\"300\"\u003eint\u003c/span\u003e \u003cspan data-scayt_word\u003d\"iseql\" data-scaytid\u003d\"313\"\u003eiseql\u003c/span\u003e \u003d \u003cspan data-scayt_word\u003d\"strcmp\" data-scaytid\u003d\"301\"\u003estrcmp\u003c/span\u003e( \u003cspan data-scayt_word\u003d\"s1\" data-scaytid\u003d\"86\"\u003es1\u003c/span\u003e, \u003cspan data-scayt_word\u003d\"s2\" data-scaytid\u003d\"97\"\u003es2\u003c/span\u003e ); // checks \u003cspan data-scayt_word\u003d\"s1\" data-scaytid\u003d\"113\"\u003es1\u003c/span\u003e is equals to \u003cspan data-scayt_word\u003d\"s2\" data-scaytid\u003d\"157\"\u003es2\u003c/span\u003e or not. It returns -1, 0 or 1. Zero means equal.\u003cbr /\u003e\r\n\t\u003cbr /\u003e\r\n\tHint \u003cspan data-scayt_word\u003d\"বুঝে\" data-scaytid\u003d\"924\"\u003eবুঝে\u003c/span\u003e \u003cspan data-scayt_word\u003d\"কাজে\" data-scaytid\u003d\"963\"\u003eকাজে\u003c/span\u003e \u003cspan data-scayt_word\u003d\"লাগাতে\" data-scaytid\u003d\"1004\"\u003eলাগাতে\u003c/span\u003e \u003cspan data-scayt_word\u003d\"পারলেই\" data-scaytid\u003d\"795\"\u003eপারলেই\u003c/span\u003e \u003cspan data-scayt_word\u003d\"বাজীমাত\" data-scaytid\u003d\"870\"\u003eবাজীমাত\u003c/span\u003e :)\u003cbr /\u003e\r\n\tHappy coding ;)\u003c/p\u003e"}}]}