您的位置:首页 > 其它

Codeforces Round #416 (Div. 2) A. Vladik and Courtesy

2017-05-28 10:40 435 查看
向来都是暴力的

#include <iostream>
#include <algorithm>
using namespace std;

int main()
{
cin.sync_with_stdio(false);
cin.tie(false);
int a,b;
cin >> a >> b;
int der = 0;
while(true)
{
der++;
a = a-der;
if(a < 0)
{
cout << "Vladik" <<endl;
break;
}
der++;
b = b-der;
if(b < 0)
{
cout << "Valera" << endl;
break;
}
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: