Codeforces Round #416 (Div. 2), problem: (A) Vladik and Courtesy Solution in C/C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
long a,b;
cin>>a>>b;
a=sqrt(a);
if(a*(a+1)>b)cout<<“Valera”;
else
cout<<“Vladik”;
}

(Visited 39 times, 1 visits today)

About the Author:

Leave A Comment