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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    userId_undefined

    龍隱川_夜無思☄️

    出道萌新时间刺客空间掌握者时空双修者贪心·贪心尝试者字符串·魔法使
    28阅读
    0回复
    2点赞
  • 纯手搓可以直接用,怕超时加ios(无心)

    #include<bits/stdc++.h> using namespace std; struct f{ string name; int j,y,t,sum; }a[1001]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i].name >>a[i].j >>a[i].y >>a[i].t ; a[i].sum =a[i].j +a[i].y +a[i].t ; } for(int i=1;i<=n;i++){ cout<<a[i].name <<" "<<a[i].j<<" "<<a[i].y <<" "<<a[i].t <<" "<<a[i].sum <<endl; } return 0; }

    userId_undefined

    大山天神贝利亚

    13阅读
    0回复
    1点赞
  • .

    #include<bits/stdc++.h> using namespace std; struct stu{ string name; int jin; int yin; int tong; }a[110]; int main(){ int n; cin>>n; for (int i = 0; i < n; ++i) { cin >> a[i].name >> a[i].jin >> a[i].yin >> a[i].tong; int z = a[i].jin + a[i].yin + a[i].tong; cout << a[i].name << " " << a[i].jin << " " << a[i].yin << " " << a[i].tong << " " << z <<endl; } return 0; }

    userId_undefined

    138****3967

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

    userId_undefined

    zsy

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

    #include <bits/stdc++.h> using namespace std; struct node{ string name; int jp; int yp; int tp; int zs; }a[1000]; int main(){ int n; cin >> n; for(int i = 0;i < n;i++){ cin >> a[i].name >> a[i].jp >> a[i].yp >> a[i].tp; a[i].zs = a[i].jp + a[i].yp + a[i].tp; } for(int i = 0;i < n;i++){ cout << a[i].name << " " << a[i].jp << " " << a[i].yp << " " << a[i].tp << " " << a[i].zs << endl; } return 0; }

    userId_undefined

    YQ.辞念

    1阅读
    0回复
    0点赞
  • python

    userId_undefined

    无敌的鳖佬仔给老爷爷ccb

    出道萌新时间刺客空间掌握者循环·循环打卡人荣耀黄金I/O·IO入门者
    0阅读
    0回复
    0点赞
首页