题解
2024-10-28 20:19:39
发布于:北京
13阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int t;
int main() {
cin >> t;
while (t--) {
long long x, y, a, b;
cin >> x >> y >> a >> b;
long long end_b = (b + x - 1) / x;
long long end_y = (y + a - 1) / a;
if (end_b <= end_y) {
cout << "victory" << endl;
} else {
cout << "defeat" << endl;
}
}
return 0;
}
这里空空如也
有帮助,赞一个