当前位置:网站首页>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
代码:
边栏推荐
- Educational Codeforces Round 41 (Rated for Div. 2) E. Tufurama
- Fragment's show and hide
- BEVDet4D: Exploit Temporal Cues in Multi-camera 3D Object Detection Paper Notes
- ArcMAP出现-15的问题无法访问[Provide your license server administrator with the following information:Err-15]
- C#中导入其它自定义的命名空间
- 2022 Recruitment Notice for Academician Zhao Guoping Group of Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences
- 教育Codeforces轮41(额定Div。2)大肠Tufurama
- 娄底疾控中心实验室设计理念说明
- 生成树协议STP(Spanning Tree Protocol)
- A detailed explanation of implementation api embed
猜你喜欢

MYSQL误删数据恢复

商汤自研机械臂,首款产品是AI下棋机器人:还请郭晶晶作代言

R语言实战应用案例:论文篇(一)-特殊柱形图绘制

Interface Automation Testing Basics

LeetCode简单题之合并相似的物品

Short read or OOM loading DB. Unrecoverable error, aborting now

M²BEV: Multi-Camera Joint 3D Detection and Segmentation with Unified Bird’s-Eye View Representation

3DS MAX batch export file script MAXScript with interface

跨域的五种解决方案

2022 Recruitment Notice for Academician Zhao Guoping Group of Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences
随机推荐
Matrix Keyboard & Calculator Small Project Based on 51 (UcosII)
娄底农产品检验实验室建设指南盘点
在web页面播放rtsp流视频(webrtc)
mSystems | Zhongnong Wang Jie Group Reveals the Mechanisms Affecting Soil "Plastic Interstitial" Microbial Communities
【iOS】面试整理
LeetCode中等题之比较版本号
Pod生命周期
The basic components of Loudi plant cell laboratory construction
bgp双平面实验 路由策略控制流量
鸿蒙开发从hello world开始
2022 Recruitment Notice for Academician Zhao Guoping Group of Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences
Fragment's show and hide
X5WebView使用
汉字检测和关键词检测
【目标检测】小脚本:提取训练集图片与标签并更新索引
ABAP file operations involved in the Chinese character set of problems and solutions for trying to read
A unit test report for CRM One Order Application log
Redis 定长队列的探索和实践
Merge similar items in LeetCode simple questions
广东10个项目入选工信部2021年物联网示范项目名单