acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 题解

    userId_undefined

    Andy

    56阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    法兰西玫瑰

    43阅读
    0回复
    0点赞
  • 关注!!!

    #include<bits/stdc++.h> using namespace std; struct jiedai{ string name; double tiwen; bool que; }a[100001]; int main(){ int n,sum=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i].name>>a[i].tiwen>>a[i].que; } for(int i=1;i<=n;i++){ if(a[i].tiwen>=37.5 and a[i].que==1){ sum++; cout<<a[i].name<<endl; } } cout<<sum; return 0; }

    userId_undefined

    原神and崩铁

    21阅读
    1回复
    1点赞
  • 我就不用结构体

    这题官方要我用结构体,所以我不用

    userId_undefined

    ACOI

    13阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    准

    出道萌新倔强青铜
    6阅读
    0回复
    0点赞
  • 结构体应用 + 循环语句

    userId_undefined

    回来看看

    出道萌新倔强青铜
    5阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    Alxe

    3阅读
    0回复
    0点赞
  • 题解

    其实这道题不需要排序,在结构体输入时循环里检测是否满足条件即可,再开一个cnt计算满足的数量最后输出即可。AC代码如下所展示:

    userId_undefined

    李睿尧

    秩序白银
    2阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    AC

    出道萌新倔强青铜
    2阅读
    0回复
    0点赞
  • tj

    ???

    userId_undefined

    啊?

    空间掌握者倔强青铜
    1阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    zsy(禁言中,勿扰)

    禁言
    出道萌新时间刺客空间掌握者时空双修者题解仙人秩序白银
    1阅读
    0回复
    0点赞
  • 题解

    无需数组,边吃边拉

    userId_undefined

    闪电九尾狐

    I/O·IO入门者秩序白银
    1阅读
    0回复
    0点赞
  • 题解

    #include <bits/stdc++.h> using namespace std; struct jialiu{ string name; double c; int ke; }; int main(){ jialiu a[114514]; int n,sum=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i].name>>a[i].c>>a[i].ke; if(a[i].c>=37.5 && a[i].ke==1){ cout<<a[i].name<<endl; sum++; } } cout<<sum; return 0; }

    userId_undefined

    张高纶

    1阅读
    0回复
    0点赞
首页