当前位置:网站首页>CodeForces - 811A
CodeForces - 811A
2022-08-10 12:51:00 【51CTO】
At regular competition Vladik and Valera won a and b candies respectively. Vladik offered 1 his candy to Valera. After that Valera gave Vladik 2 his candies, so that no one thought that he was less generous. Vladik for same reason gave 3
More formally, the guys take turns giving each other one candy more than they received in the previous turn.
This continued until the moment when one of them couldn’t give the right amount of candy. Candies, which guys got from each other, they don’t consider as their own. You need to know, who is the first who can’t give the right amount of candy.
Input
Single line of input data contains two space-separated integers a, b (1 ≤ a, b ≤ 109) — number of Vladik and Valera candies respectively.
Output
Pring a single line "Vladik’’ in case, if Vladik first who can’t give right amount of candy, or "Valera’’ otherwise.
Example
Input
Output
Valera
Input
7 6
Output
Vladik
代码:
边栏推荐
猜你喜欢
随机推荐
Drive IT Modernization with Low Code
一文详解 implementation api embed
C# 当前上下文中不存在InitializeComponent()
Fragment-hide和show
ABAP 里文件操作涉及到中文字符集的问题和解决方案试读版
Jiugongge lottery animation
The basic components of Loudi plant cell laboratory construction
wirshark 常用操作及 tcp 三次握手过程实例分析
G1和CMS的三色标记法及漏标问题
娄底石油化工实验设计、建设规划概述
Codeforces Round #276 (Div. 1) D. Kindergarten
LeetCode·297.二叉树的序列化与反序列化·DFS·BFS
How to describe multiple paragraphs with different font settings in Open Office XML format
X5WebView使用
Matrix Keyboard & Calculator Small Project Based on 51 (UcosII)
iTextSharp操作PDF
SenseTime self-developed robotic arm, the first product is an AI chess-playing robot: Guo Jingjing is also invited as an endorsement
跨域的五种解决方案
BEVDet4D: Exploit Temporal Cues in Multi-camera 3D Object Detection Paper Notes
2022-08-09:以下go语言代码输出什么?A:否,会 panic;B:是,能正确运行;C:不清楚,看投票结果。 package main import ( “fmt“ “syn