当前位置:网站首页>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
代码:
边栏推荐
猜你喜欢
LeetCode中等题之搜索二维矩阵
瑞幸「翻身」?恐言之尚早
[Study Notes] Persistence of Redis
Efficient and Robust 2D-to-BEV Representation Learning via Geometry-guided Kernel Transformer 论文笔记
线代 | 秒杀方法与技巧
【目标检测】小脚本:提取训练集图片与标签并更新索引
iTextSharp操作PDF
浙大、阿里提出DictBERT,字典描述知识增强的预训练语言模型
接口自动化测试基础篇
Wirshark common operations and tcp three-way handshake process example analysis
随机推荐
Matrix Keyboard & Calculator Small Project Based on 51 (UcosII)
山水的高度
Short read or OOM loading DB. Unrecoverable error, aborting now
金山云要飘到哪里?
海外邮件发送指南(二)
Overview of Loudi Petrochemical Experiment Design and Construction Planning
2022 Recruitment Notice for Academician Zhao Guoping Group of Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences
娄底农产品检验实验室建设指南盘点
OTA自动化测试解决方案---整体方案介绍
交换机的基础知识
X5WebView使用
鸿蒙开发从hello world开始
kubernetes介绍
CodeForces - 834C
M²BEV: Multi-Camera Joint 3D Detection and Segmentation with Unified Bird’s-Eye View Representation
11 + chrome advanced debugging skills, learn to direct efficiency increases by 666%
【jstack、jps命令使用】排查死锁
娄底妆品实验室建设规划构思
浙大、阿里提出DictBERT,字典描述知识增强的预训练语言模型
G1和CMS的三色标记法及漏标问题