QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#780056#9807. Make Them BelieveMervinLuoWA 0ms3780kbC++23528b2024-11-25 00:22:202024-11-25 00:22:20

Judging History

你现在查看的是最新测评结果

  • [2024-11-25 00:22:20]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3780kb
  • [2024-11-25 00:22:20]
  • 提交

answer

#include<bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
const int INF = 1e17;
const int maxn = 1e8;

bool cmp (pair<string,int> a,pair<string,int> b){
    return a.second > b.second;
}
signed main(){
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    vector<pair<string,int>> ts(8);
    for(int i = 0; i < 8; i++){
        cin >> ts[i].first >> ts[i].second;
    }
    sort(ts.begin(),ts.begin() + 8, cmp);
    cout << ts[0].first << " beats " << ts[1].first;
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3548kb

input:

LNG 55
WBG 65
HLE 70
BLG 75
TES 48
T1 80
GEN 60
FLY 50

output:

T1 beats BLG

result:

ok 3 tokens

Test #2:

score: 0
Accepted
time: 0ms
memory: 3780kb

input:

LNG 55
WBG 65
HLE 70
BLG 81
TES 48
T1 80
GEN 60
FLY 50

output:

BLG beats T1

result:

ok 3 tokens

Test #3:

score: -100
Wrong Answer
time: 0ms
memory: 3496kb

input:

P6 73
4 22
UN 84
Q 55
J 68
QR8 18
W 27
9J7 1

output:

UN beats P6

result:

wrong answer 3rd words differ - expected: 'J', found: 'P6'