QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#796857#9807. Make Them Believeship2077WA 0ms3712kbC++23359b2024-12-02 07:25:222024-12-02 07:25:22

Judging History

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

  • [2024-12-02 07:25:22]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3712kb
  • [2024-12-02 07:25:22]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
struct info{ string name;int val;
	bool operator <(const info &a) const
		{return val>a.val;}
}tmp[8];
int main(){
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	for (int k=0;k<8;k++) cin>>tmp[k].name>>tmp[k].val;
	sort(tmp,tmp+8);cout<<tmp[0].name<<" beats "<<tmp[1].name<<'\n';
    return 0;
}

詳細信息

Test #1:

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

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: 3668kb

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: 3656kb

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'