社区讨论
为什么会全wa?样例都是对的啊
P10029「Cfz Round 3」Battle参与者 2已保存回复 1
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 1 条
- 当前快照
- 1 份
- 快照标识符
- @mhk79mig
- 此快照首次捕获于
- 2025/11/04 14:40 4 个月前
- 此快照最后确认于
- 2025/11/04 14:40 4 个月前
CPP
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
int t;cin>>t;
while(t--){
int n,m,p;cin>>n>>m>>p;
m-=m%p;
if(m==0){
cout<<"Alice\n";
continue;
}
n-=n%p;
if(n==0){
cout<<"Bob\n";
continue;
}
cout<<"Lasting Battle";
}
return 0;
}
回复
共 1 条回复,欢迎继续交流。
正在加载回复...