1 条题解
-
0
关键观察:
骑士的存在会影响攻击选择,因为攻击骑士可以防止对方骑士的攻击。
最佳策略:
在攻击时,双方都应该在骑士和本人中优先攻击 HP 更少的一方
#include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL, LL> PII; #define x first #define y second const int N = 1e5 + 10, mod = 998244353; void solve() { int a, b, c, d; cin >> a >> b >> c >> d; if(min(a, c) >= min(b, d)) cout << "Gellyfish\n"; else cout << "Flower\n"; } int main() { int t = 1; cin >> t; while(t --) solve(); }
- 1
信息
- ID
- 539
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 10
- 标签
- (无)
- 递交数
- 4
- 已通过
- 2
- 上传者