URI ONLINE JUDGE SOLUTION 1387 - Online Judge

Latest

This is an Online Judge Solution Base Site. We can discuss & Solve any contest solution in Programming.

Friday, April 10, 2020

URI ONLINE JUDGE SOLUTION 1387

Problem Number: 1387
Problem Name: Og
Author’s Name: By Fábio Dias Moreira, PUC-Rio Brazil
Timelimit: 1
Problem Category: AD-HOC
Problem Source: https://www.urionlinejudge.com.br/judge/en/problems/view/1387

Solution:

#include <iostream>

using namespace std;

int main() {

    int n,m;
    cin>>n>>m;
    while(n!=0&&m!=0)
    {
        int a=0;
        a=n+m;
        cout<<a<<endl;
        cin>>n>>m;
    }

    return 0;
}

No comments:

Post a Comment

Thanks..