当前位置:网站首页>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
代码:
边栏推荐
- 生成树协议STP(Spanning Tree Protocol)
- 金山云要飘到哪里?
- 【ECCV 2022|百万奖金】PSG大赛:追求“最全面”的场景理解
- ArcMAP has a problem of -15 and cannot be accessed [Provide your license server administrator with the following information:Err-15]
- LeetCode·297.二叉树的序列化与反序列化·DFS·BFS
- C# WPF image is displayed without problems, but the solution does not display the image at runtime
- MYSQL误删数据恢复
- Real-time data warehouse practice of Baidu user product flow and batch integration
- Fragment-hide and show
- Blast!ByteDance successfully landed, only because the interview questions of LeetCode algorithm were exhausted
猜你喜欢

wirshark 常用操作及 tcp 三次握手过程实例分析

专有云ABC Stack,真正的实力派!

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

mSystems | Zhongnong Wang Jie Group Reveals the Mechanisms Affecting Soil "Plastic Interstitial" Microbial Communities

一个 CRM One Order Application log 的单元测试报表

代码随想录笔记_动态规划_70爬楼梯

shell:正则表达式及三剑客grep命令
![ArcMAP has a problem of -15 and cannot be accessed [Provide your license server administrator with the following information:Err-15]](/img/da/b49d7ba845c351cefc4efc174de995.png)
ArcMAP has a problem of -15 and cannot be accessed [Provide your license server administrator with the following information:Err-15]

How to describe multiple paragraphs with different font settings in Open Office XML format

MYSQL误删数据恢复
随机推荐
【iOS】Organization of interviews
mSystems | 中农汪杰组揭示影响土壤“塑料际”微生物群落的机制
AtCoder Beginner Contest 077 D - Small Multiple
Network Saboteur
递归递推之计算组合数
娄底农产品检验实验室建设指南盘点
Real-time data warehouse practice of Baidu user product flow and batch integration
Reversing words in a string in LeetCode
Matrix Keyboard & Calculator Small Project Based on 51 (UcosII)
Fragment's show and hide
MySQL面试题整理
ArcMAP has a problem of -15 and cannot be accessed [Provide your license server administrator with the following information:Err-15]
大佬们有遇到过这个问题吗? MySQL 2.2 和 2.3-SNAPSHOT 都这样,貌似是
BEVDet4D: Exploit Temporal Cues in Multi-camera 3D Object Detection 论文笔记
wirshark 常用操作及 tcp 三次握手过程实例分析
C# 当前上下文中不存在InitializeComponent()
一种能让大型数据聚类快2000倍的方法,真不戳
How to describe multiple paragraphs with different font settings in Open Office XML format
bgp双平面实验 路由策略控制流量
ArcMAP出现-15的问题无法访问[Provide your license server administrator with the following information:Err-15]