Solution - UVa Problem 11799 - Horror Dash




সল্যুশন্সঃ
#include<iostream>
using namespace std;

int main()
{
    int tC;
    cin >> tC;
    for(int i=1; i<=tC; i++)
    {
        int cs, s, maxS=0;
        cin >> cs;

        for(int j=1; j<=cs; j++)
        {
            cin >> s;
            if(s>maxS)
                maxS = s;
        }

        //Case 1: 9
        cout << "Case " << i << ": " << maxS << endl;
    }
    return 0;
}

আলোচনাঃ
বড় নাম্বার টা বের করার লুপ চালালেই হয়ে যাবে।

Comments

Popular posts from this blog

Solution - Codeforces Problem 327B - Hungry Sequence

Solution - Timus Problem 1293. Eniya

Solution - Timus Problem 1409. Two Gangsters