ZOJ4037 Peer Review

探讨n名学生在互评课程项目中,如何在确保自身得分最大化的同时,使其他学生的总分最小化。通过分析学生之间的博弈策略,预测最终每位学生的得分情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.题目

There are n students involved in a peer review about their course projects. Each student has to score the other (n-1) students’ projects separately. The score given must be an integer ranging from 0 to 100 (both inclusive), and the final score of a student is the sum of the scores his project receives.
But these students are on bad terms with each other, so they all want to minimize the sum of the final scores of the other students, and maximize his/her own final score when the first condition is satisfied.
If every student uses the best strategy, can you predict their final scores?

大意:n名学生要互相评分,可以打[0,100]分。每人都想让别人尽可能低分而自己高分。现有多组数据,每组给出人数n,请输出各个学生的得分(他人给自己的评分之和)。

2.答案

#include<iostream>
#include<cstdio>
using namespace std;

int main(){
    int T,n;
    scanf("%d",&T);
    while(T--){
        scanf("%d",&n);
        for(int i=1;i<=n;i++){
            printf("0");
            if(i!=n) printf(" ");
        }
        printf("\n");
    }
    return 0;
} 

这个故事告诉我们:人类为什么要互相伤害?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值