题解 | #It's bertrand paradox. Again!#概率统计

Its bertrand paradox. Again!

https://ac.nowcoder.com/acm/contest/67741/I

//I题
#include <bits/stdc++.h>
using namespace std;
int main(){
    ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    int  n ; cin >> n;
    int cot1 = 0 , cot2 = 0;
    int acy = n/8;
    for(int i = 0 ; i < n ; i++){
        int x , y , r ;
        cin >> x >> y >> r ;
        if(fabs(x) < 70 and fabs(y) < 70){
            cot1++;
        }else {
            cot2++;
        }
    }
    cout << (cot1 - acy > cot2 ? "buaa-noob" : "bit-noob") ; 
    return 0;
}

全部评论

相关推荐

头顶尖尖的程序员:这应该就是数据标注工作吧,对医学生好像没啥成长
点赞 评论 收藏
分享
评论
4
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务