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; }
相关文章推荐
- CodeForce 416 (Div. 2) A. Vladik and Courtesy
- Codeforces Round #416 (Div. 2) A. Vladik and Courtesy
- codeforces #416 div2 811A-Vladik and Courtesy
- Codeforces Round #416 (Div. 2) A. Vladik and Courtesy
- 【分类讨论】【spfa】【BFS】Codeforces Round #416 (Div. 2) D. Vladik and Favorite Game
- Codeforces Round #384 (Div. 2) A. Vladik and flights
- A. Vladik and Courtesy
- Vladik and Courtesy - CodeForces - 811A
- Codeforces Round #384 (Div. 2)-C. Vladik and fractions
- Codeforces Round #416 (Div. 2) C. Vladik and Memorable Trip
- [线段树] Codeforces 811E Round #416 (Div. 2) E. Vladik and Entertaining Flags
- Codeforces Round #416 (Div. 2) - C. Vladik and Memorable Trip 动态规划
- Codeforces 811 A Vladik and Courtesy
- CF384 div2 E. Vladik and cards
- Codeforces Round #384 (Div. 2) E. Vladik and cards 状压dp
- Codeforces Round #416 (Div. 2) E. Vladik and Entertaining Flags (线段树+并查集)
- Codeforces Round #390 (Div. 2)C Vladik and chat
- A. Vladik and Courtesy
- CF384 div2 E. Vladik and cards
- Codeforces Round #416 (Div. 2) B. Vladik and Complicated Book