社区讨论
96是咋回事
B3887[语言月赛 202311] 风球参与者 2已保存回复 2
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 2 条
- 当前快照
- 1 份
- 快照标识符
- @lqp6ra1t
- 此快照首次捕获于
- 2023/12/28 20:33 2 年前
- 此快照最后确认于
- 2023/12/29 00:00 2 年前
CPP
#include <bits/stdc++.h>
using namespace std;
int main()
{
int tmp,cnt118=0,cnt63=0,cnt41=0;
for(int i=0;i<8;i++)
{
cin>>tmp;
if(tmp>=118) cnt118++;
else if(tmp>=63) cnt63++;
else if(tmp>=41) cnt41++;
}
if(cnt118>=1) cout<<10;
else if(cnt63>=4) cout<<8;
else if(cnt41>=4) cout<<3;
else cout<<1;
return 0;
}
回复
共 2 条回复,欢迎继续交流。
正在加载回复...