# includeint main(){ int x1, y1, x2, y2, m1, m2; while(~scanf("%d%d%d%d",&x1,&y1,&x2,&y2)) { if(x1 <= x2 && y1 <= y2) puts("Polycarp"); else { m1 = x1 + y1; m2 = x2>y2?x2:y2; if(m1 <= m2) puts("Polycarp"); else puts("Vasiliy"); } } return 0;}
本文共 1967 字,大约阅读时间需要 6 分钟。
# includeint main(){ int x1, y1, x2, y2, m1, m2; while(~scanf("%d%d%d%d",&x1,&y1,&x2,&y2)) { if(x1 <= x2 && y1 <= y2) puts("Polycarp"); else { m1 = x1 + y1; m2 = x2>y2?x2:y2; if(m1 <= m2) puts("Polycarp"); else puts("Vasiliy"); } } return 0;}
转载于:https://www.cnblogs.com/junior19/p/6729922.html