UVA 12461

Don't copy without trying.

#include<bits/stdc++.h>
using namespace std;

int main()
{
    int a;
    while(cin>>a)
    {
        if(a==0)
        {
            break;
        }
        else
        {
            cout<<"1/2"<<endl;
        }
    }
    return 0;

}

Comments

Popular posts from this blog

C++ STL practice problem link

Binary Index Tree(BIT)

Combinatorics