/ SPURS / 讨论 / 问答 /

问题讨论

.

236 条评论

  • @ 2018-01-31 14:42:11

    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删
    QAQ QAQ QAQ
    看完删

  • @ 2018-01-31 14:39:40

    0.0

  • @ 2018-01-31 14:29:25

    第三题:
    #include<bits/stdc++.h>
    using namespace std;
    struct student
    {
    char name[100+10];
    int all;
    int banji;
    char ganbu;
    char xibu;
    int lunwen;
    int money=0;
    };
    struct student a[1000+10],name,all,banji,ganbu,xibu,lunwen;
    int main()
    {
    int n,i,j,t,s;
    s=0;
    cin>>n;
    for(i=1;i<=n;i++)
    {
    cin>>a[i].name>>a[i].all>>a[i].banji>>a[i].ganbu>>a[i].xibu>>a[i].lunwen;
    if(a[i].all>80 && a[i].lunwen>=1)
    a[i].money=a[i].money+8000;
    if(a[i].all>85 && a[i].banji>80)
    a[i].money=a[i].money+4000;
    if(a[i].all>90)
    a[i].money=a[i].money+2000;
    if(a[i].all>85 && a[i].xibu=='Y')
    a[i].money=a[i].money+1000;
    if(a[i].banji>80 && a[i].ganbu=='Y')
    a[i].money=a[i].money+850;
    s=s+a[i].money;
    }
    for(i=1;i<=n;i++)
    for(j=1;j<=n-1;j++)
    if(a[j].money<a[j+1].money)
    swap(a[j],a[j+1]);
    for(i=1;i<=1;i++)
    cout<<a[i].name<<endl<<a[i].money<<endl<<s;
    return 0;
    }

  • @ 2018-01-31 14:29:08

    第二题:
    #include<bits/stdc++.h>
    using namespace std;
    struct student
    {
    int num;
    int chinese;
    int math;
    int english;
    int all;
    };
    struct student a[1000+10],num,name,chinese,math,english,all;
    int main()
    {
    int n,i,j;

    cin>>n;
    for(i=1;i<=n;i++)
    {
    cin>>a[i].chinese>>a[i].math>>a[i].english;
    a[i].all=a[i].chinese+a[i].math+a[i].english;
    a[i].num=i;
    }
    for(i=1;i<=n;i++)
    for(j=1;j<=n-1;j++)
    if(a[j].all<a[j+1].all)
    swap(a[j],a[j+1]);
    else
    if(a[j].all==a[j+1].all)
    if(a[j].chinese<a[j+1].chinese)

    swap(a[j],a[j+1]);

    for(i=1;i<=5;i++)
    cout<<a[i].num<<" "<<a[i].all<<endl;
    return 0;
    }

  • @ 2018-01-31 14:28:48

    第一题:
    #include<bits/stdc++.h>
    using namespace std;
    struct student
    {
    char name[100+10];
    int all;
    int banji;
    char ganbu;
    char xibu;
    int lunwen;
    int money=0;
    };
    struct student a[1000+10],name,all,banji,ganbu,xibu,lunwen;
    int main()
    {
    int n,i,j,t,s;
    s=0;
    cin>>n;
    for(i=1;i<=n;i++)
    {
    cin>>a[i].name>>a[i].all>>a[i].banji>>a[i].ganbu>>a[i].xibu>>a[i].lunwen;
    if(a[i].all>80 && a[i].lunwen>=1)
    a[i].money=a[i].money+8000;
    if(a[i].all>85 && a[i].banji>80)
    a[i].money=a[i].money+4000;
    if(a[i].all>90)
    a[i].money=a[i].money+2000;
    if(a[i].all>85 && a[i].xibu=='Y')
    a[i].money=a[i].money+1000;
    if(a[i].banji>80 && a[i].ganbu=='Y')
    a[i].money=a[i].money+850;
    s=s+a[i].money;
    }
    for(i=1;i<=n;i++)
    for(j=1;j<=n-1;j++)
    if(a[j].money<a[j+1].money)
    swap(a[j],a[j+1]);
    for(i=1;i<=1;i++)
    cout<<a[i].name<<endl<<a[i].money<<endl<<s;
    return 0;
    }

  • @ 2018-01-31 14:22:46

    运算结果:
    4
    YaoLin 87 82 Y N 0
    ChenRuiyi 88 78 N Y 1
    LiXin 92 88 N N 0
    ZhangQin 83 87 Y N 1

    9000
    94235


    Process exited after 41.63 seconds with return value 0
    Press any key to continue . . .

  • @ 2018-01-31 14:01:05

    快疯了

    #include <bits/stdc++.h>
    using namespace std;
    struct student{
    char name[20];
    float ck,avss;//ck:期末平均,avss :班级评议
    char ste,ws;//ste:学生干部,ws:西部学生
    int pp;//pp:论文(paper)
    }st[101];
    int s[101];
    int main(){
    int i,j,n,max=-1,toal;
    char hmn[21]={"!!!!!!!!!!!!!!!!!!!"};
    cin>>n;
    for(i=1;i<=n;i++){
    scanf("%s",st[i].name);
    cin>>st[i].ck>>st[i].avss>>st[i].ste>>st[i].ws>>st[i].pp;
    }
    for(i=1;i<=n;i++){
    if(st[i].ck>80&&st[i].pp>=1) s[i]+=8000;
    if(st[i].ck>85&&st[i].avss>80) s[i]+=4000;
    if(st[i].ck>90) s[i]+=2000;
    if(st[i].ck>85&&st[i].ws=='Y') s[i]+=1000;
    if(st[i].avss>80&&st[i].ste=='Y')s[i]+=850 ;
    toal+=s[i];
    }
    for(i=1;i<=n;i++)
    if(s[i]>max) max=s[i];strcpy(hmn,st[i].name);
    puts(hmn);cout<<endl;
    cout<<max<<endl;
    cout<<toal<<endl;
    return 0;
    }

  • @ 2018-01-31 13:37:55

    老师还没来

  • @ 2018-01-31 13:35:56

    0.0

  • @ 2018-01-31 13:19:28

    Bye-Bye----

  • @ 2018-01-31 13:19:00

    第二题

  • @ 2018-01-31 13:18:53

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    int n,i,j;
    struct Student{
    int chinese,math,english,sum,num;
    }stu[302],t;
    cin>>n;
    for(i=1;i<=n;i++){
    cin>>stu[i].chinese>>stu[i].math>>stu[i].english;
    stu[i].sum=stu[i].chinese+stu[i].math+stu[i].english;
    stu[i].num=i;
    }
    for(i=1;i<=n-1;i++)
    for(j=1;j<=n-i;j++)
    if(stu[j].sum<stu[j+1].sum){
    t=stu[j];
    stu[j]=stu[j+1];
    stu[j+1]=t;
    }
    else
    if(stu[j].sum==stu[j+1].sum)
    if(stu[j].chinese<stu[j+1].chinese){
    t=stu[j];
    stu[j]=stu[j+1];
    stu[j+1]=t;
    }
    for(i=1;i<=5;i++)
    cout<<stu[i].num<<" "<<stu[i].sum<<endl;
    return 0;
    }

  • @ 2018-01-31 13:17:00

    第三题

  • @ 2018-01-31 13:16:43

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    string a,g;
    int i,b,c,f,n,money=0,result=0,sum=0;
    char d,e;
    cin>>n;
    for(i=1;i<=n;i++)
    {
    cin>>a>>b>>c>>d>>e>>f;
    money=0;
    if(b>80&&f>=1)
    money+=8000;
    if(b>85&&c>80)
    money+=4000;
    if(b>90)
    money+=2000;
    if(b>85&&e=='Y')
    money+=1000;
    if(c>80&&d=='Y')
    money+=850;
    sum+=money;
    if(result<money){
    result=money;
    g=a;
    }
    }
    cout<<g<<endl<<result<<endl<<sum<<endl;
    return 0;
    }

  • @ 2018-01-31 13:14:59

    其实很简单的

  • @ 2018-01-31 13:14:42

    我知道你为什么错了

  • @ 2018-01-31 13:14:25

    0.0

  • @ 2018-01-31 13:14:09

    有人吗?

  • @ 2018-01-31 13:10:18

    tot==总分

  • @ 2018-01-31 13:09:48

    不对,为什么?

  • @ 2018-01-31 13:09:13

    #include <bits/stdc++.h>
    using namespace std;
    struct student{//st[101]
    float chi,mat,eng;
    float tot;
    }st[301];
    int k[6];
    int main(){
    int i,j,n;
    cin>>n;
    for(i=1;i<=n;i++){
    cin>>st[i].chi>>st[i].mat>>st[i].eng; k[i]=i;
    st[i].tot=st[i].chi+st[i].mat+st[i].eng;
    }
    for(i=1;i<=n-1;i++)
    for(j=i;j<=n-1;j++)
    if(st[j].tot>st[j+1].tot) swap(st[j],st[j+1]);
    if(st[j].tot==st[j+1].tot&&st[j].chi>st[j+1].chi) swap(st[j],st[j+1]);
    for(i=5;i>=1;i--){
    cout<<k[i]<<" "<<st[i].tot<<endl;
    }
    return 0;
    }

  • @ 2018-01-31 13:08:48

    第二题和第三题

  • @ 2018-01-31 13:08:29

    题目做出来了吗

  • @ 2018-01-31 13:04:44

    别说话了好吗?有事再说
    STOP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @ 2018-01-31 13:03:39

  • @ 2018-01-31 13:03:25

    人呢

  • @ 2018-01-31 13:02:03

    @Spurs21 哈哈

  • @ 2018-01-31 13:01:40

    @————呵呵

  • @ 2018-01-31 12:59:18

    网上不要公开绰号或真实姓名......

  • @ 2018-01-31 12:57:33

    王厚哲脑子有坑

  • @ 2018-01-31 12:57:32

    NNNNNNNN