QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#344591 | #8230. Submissions | zzuqy | TL | 1196ms | 79708kb | C++14 | 5.3kb | 2024-03-04 20:11:32 | 2024-03-04 20:11:33 |
Judging History
answer
#include<bits/stdc++.h>
#define N 200009
using namespace std;
int a[N][26][5];//0 now;1 highest;2 lowest
unordered_map<string,int>mp;
unordered_set<int>ans;
string rmp[N];
int n,n2;
bool cmp(const pair<int,int> &a,const pair<int,int>&b){
if(a.first>b.first)return 1;
if(a.first<b.first)return 0;
if(a.second<b.second)return 1;
return 0;
}
struct mapstruct{
bool operator()(const pair<int,int> &a,const pair<int,int>&b){
return cmp(a,b);
}
};
int calcgold(int n){
return min((n+9)/10,35);
}
int goldsize=0;
map<pair<int,int>,int,mapstruct>gold;
vector<int>gold2[N];
pair<int,int>line;
void handle(){
int x=calcgold(n2);
int cnt=0;
//assert(gold.size()<=x+1);
for(auto i:gold){
if(cnt<x)for(auto j:gold2[i.second])ans.insert(j),cnt++;
else break;
//cout<<cnt<<"?"<<x<<endl;
}
}
void del(int x,pair<int,int>score){
if(score.first>0)n2--;
if(!cmp(line,score)){
int id=gold[score];
for(int i=0;i<gold2[id].size();i++){
if(gold2[id][i]==x){
swap(gold2[id][i],gold2[id][gold2[id].size()-1]);
gold2[id].pop_back();
break;
}
}
if(gold2[id].size()==0)gold.erase(score);
}
}
void add(int x,pair<int,int>score){
if(score.first>0)n2++;
//cout<<score.first<<" "<<score.second<<endl;
if(!cmp(line,score)){
if(gold[score]==0){
gold[score]=++goldsize;
gold2[goldsize].clear();
}
gold2[gold[score]].push_back(x);
}
}
void query(int x,pair<int,int>normal,pair<int,int>score){
del(x,normal);
add(x,score);
handle();
del(x,score);
add(x,normal);
}
void solve(){
mp.clear();n=n2=0;line=make_pair(0,0);
ans.clear();gold.clear();
goldsize=0;
int m;cin>>m;
while(m--){
string s;char c;int t;string p;
cin>>s>>c>>t>>p;
if(mp[s]==0){
mp[s]=++n;rmp[n]=s;
for(int i=0;i<26;i++)a[n][i][0]=a[n][i][1]=a[n][i][2]=-1000000000;
}
int x=mp[s],id=c-'A';
if(p=="accepted"){
if(a[x][id][0]<0)a[x][id][0]=a[x][id][0]+1000000000+t,a[x][id][2]+=20;
else a[x][id][2]=a[x][id][2]+1000000000+t;
//cout<<x<<" "<<id<<" "<<a[x][id][2]<<endl;
if(a[x][id][1]<0)a[x][id][1]=t;
}
if(p=="rejected"){
if(a[x][id][0]<0)a[x][id][0]+=20,a[x][id][3]=t;
if(a[x][id][1]<0)a[x][id][1]=t;
if(a[x][id][2]<0)a[x][id][2]+=20;
}
}
for(int i=1;i<=n;i++){
int c=0,p=0;
for(int j=0;j<26;j++)if(a[i][j][0]>=0)c++,p+=a[i][j][0];
if(gold[make_pair(c,p)]==0){
gold[make_pair(c,p)]=++goldsize;
gold2[goldsize].clear();
}
gold2[gold[make_pair(c,p)]].push_back(i);
if(c>0)n2++;
//cout<<rmp[i]<<" "<<c<<" "<<p<<endl;
}
int cnt=0;
for(auto it:gold){
cnt+=gold2[it.second].size();
if(cnt>calcgold(n2)){
line=it.first;
break;
}
}
while(1){
auto it=gold.end();it--;
if(cmp(line,(*it).first))gold.erase(it);
else break;
}
handle();
for(int i=1;i<=n;i++){
pair<int,int>best=make_pair(-1000,0),worst=make_pair(1000,0),normal=make_pair(0,0);
for(int x=0;x<26;x++)if(a[i][x][0]>=0)normal.first++,normal.second+=a[i][x][0];
int c=0,p=0;
for(int x=0;x<26;x++){
c=0;p=0;
if(a[i][x][0]>=0)c--,p-=a[i][x][0];
if(a[i][x][1]>=0)c++,p+=a[i][x][1];
if(cmp(make_pair(c,p),best))best=make_pair(c,p);
}
best.first+=normal.first;best.second+=normal.second;
for(int x=0;x<26;x++){
c=0;p=0;
if(a[i][x][0]>=0)c--,p-=a[i][x][0];
if(a[i][x][2]>=0)c++,p+=a[i][x][2];
if(cmp(worst,make_pair(c,p)))worst=make_pair(c,p);
}
worst.first+=normal.first;worst.second+=normal.second;
pair<int,int>what=make_pair(0,0);
for(int x=0;x<26;x++){
if(a[i][x][0]<0&&a[i][x][0]>-1000000000)what.second=max(what.second,a[i][x][0]-20+1000000000+a[i][x][3]+1);
}
//cout<<normal.first<<"-"<<normal.second<<" ";
//cout<<best.first<<"-"<<best.second<<" ";
//cout<<worst.first<<"-"<<worst.second<<" ";
if(normal!=best)query(i,normal,best);
if(normal!=worst)query(i,normal,worst);
if(normal.first==0&&what.second){
what.first++;what.second--;
//cout<<what.first<<"-"<<what.second<<" ";
query(i,normal,what);
}
//cout<<endl;
}
cout<<ans.size()<<endl;
for(auto i:ans)cout<<rmp[i]<<" ";cout<<endl;
for(int i=1;i<=n;i++){
rmp[i]="";
for(int j=0;j<26;j++)a[i][j][0]=a[i][j][1]=a[i][j][2]=0;
}
}
int main(){
//freopen(".in","r",stdin);
//freopen(".out","w",stdout);
int t;cin>>t;
while(t--)solve();
return 0;
}
/*
2
5
TSxingxing10 G 0 rejected
TSxingxing10 B 83 accepted
aoliaoligeiliao J 98 accepted
TS1 J 118 accepted
TS1 B 263 accepted
12
AllWayTheNorth A 0 rejected
YaoYaoLingXian Y 10 accepted
XuejunXinyoudui1 X 200 rejected
XuejunXinyoudui1 X 200 accepted
LetItRot L 215 accepted
AllWayTheNorth W 250 accepted
ImYourFan I 257 accepted
ImYourFan Y 257 accepted
AllWayTheNorth T 264 accepted
XuejunXinyoudui1 J 294 accepted
LetItRot I 299 accepted
LetItRot I 299 rejected
2
2
jiangly_fan A 1 accepted
jiangly B 23 accepted
3
conqueror_of_tourist A 1 accepted
conqueror_of_tourist A 2 accepted
tourist B 23 accepted
2
13
A A 1 accepted
A X 1 accepted
K K 1 rejected
B B 2 accepted
C C 2 accepted
D D 2 accepted
E E 2 accepted
F F 2 accepted
G G 2 accepted
H H 2 accepted
I I 2 accepted
J J 2 accepted
K K 1 rejected
12
A A 1 accepted
A X 1 accepted
B B 2 accepted
C C 2 accepted
D D 2 accepted
E E 2 accepted
F F 2 accepted
G G 2 accepted
H H 2 accepted
I I 2 accepted
J J 2 rejected
K K 2 rejected
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 15716kb
input:
2 5 TSxingxing10 G 0 rejected TSxingxing10 B 83 accepted aoliaoligeiliao J 98 accepted TS1 J 118 accepted TS1 B 263 accepted 12 AllWayTheNorth A 0 rejected YaoYaoLingXian Y 10 accepted XuejunXinyoudui1 X 200 rejected XuejunXinyoudui1 X 200 accepted LetItRot L 215 accepted AllWayTheNorth W 250 accept...
output:
2 TSxingxing10 TS1 4 ImYourFan LetItRot XuejunXinyoudui1 AllWayTheNorth
result:
ok 2 test cases ok. (2 test cases)
Test #2:
score: 0
Accepted
time: 2ms
memory: 15648kb
input:
2 2 jiangly_fan A 1 accepted jiangly B 23 accepted 3 conqueror_of_tourist A 1 accepted conqueror_of_tourist A 2 accepted tourist B 23 accepted
output:
2 jiangly jiangly_fan 1 conqueror_of_tourist
result:
ok 2 test cases ok. (2 test cases)
Test #3:
score: 0
Accepted
time: 4ms
memory: 14996kb
input:
2 13 A A 1 accepted A X 1 accepted K K 1 rejected B B 2 accepted C C 2 accepted D D 2 accepted E E 2 accepted F F 2 accepted G G 2 accepted H H 2 accepted I I 2 accepted J J 2 accepted K K 2 rejected 12 A A 1 accepted A X 1 accepted B B 2 accepted C C 2 accepted D D 2 accepted E E 2 accepted F F 2 a...
output:
11 J I H G F E D C B K A 1 A
result:
ok 2 test cases ok. (2 test cases)
Test #4:
score: 0
Accepted
time: 0ms
memory: 14992kb
input:
2 11 A A 1 accepted B B 1 accepted C C 2 accepted D D 2 accepted E E 2 accepted F F 2 accepted G G 2 accepted H H 2 accepted I I 2 accepted J J 2 accepted K K 2 accepted 12 A A 1 accepted A X 1 accepted K K 1 rejected B B 2 accepted C C 2 accepted D D 2 accepted E E 2 accepted F F 2 accepted G G 2 a...
output:
2 B A 2 K A
result:
ok 2 test cases ok. (2 test cases)
Test #5:
score: 0
Accepted
time: 217ms
memory: 16240kb
input:
100000 1 M3JytWoaEXxkACy_mBAQ R 111 accepted 1 sQ O 151 accepted 1 JinbrcS58gNEE5yTSkT B 140 accepted 1 cklwBY V 243 accepted 1 v_o42YmvEKFwy Q 260 rejected 1 ftQVK8S_um22w K 265 accepted 1 _bQBeFeDpYQhvZcLf9l3 Z 147 accepted 1 KvDcEAIDN A 75 rejected 1 H3MUK6 A 101 rejected 1 gxYo_oCFn2J8aIben U 54...
output:
1 M3JytWoaEXxkACy_mBAQ 1 sQ 1 JinbrcS58gNEE5yTSkT 1 cklwBY 1 v_o42YmvEKFwy 1 ftQVK8S_um22w 1 _bQBeFeDpYQhvZcLf9l3 1 KvDcEAIDN 1 H3MUK6 1 gxYo_oCFn2J8aIben 1 _isnlUGK0ddI 1 BERcVjyCp 1 6In2do_50ylch 1 f0r3SXc6brMjT 1 7njYOapSwvogA 1 x 1 y1w3KvxylfxwprRBYw 1 aGedzS 1 iPo0GDhIF 1 4Vf...
result:
ok 100000 test cases ok. (100000 test cases)
Test #6:
score: 0
Accepted
time: 78ms
memory: 15448kb
input:
10000 42 Bzs0PiQMXGZ5rRZ_2D G 2 accepted 9XtB_VIfbRRL E 11 accepted FVJL M 13 rejected a S 19 accepted tsd Z 20 rejected MyCqVEg1ONjZ U 22 accepted 6SgZMn N 51 rejected Qua1Pti3vKhyQKDUm P 54 accepted i29 M 63 accepted zPqu D 68 rejected xx2yiu6x C 71 rejected fYuK1KNkuyO5HRCq L 76 rejected tXWpYVqj...
output:
4 xiLm0TUOF3T tsd fYuK1KNkuyO5HRCq Qua1Pti3vKhyQKDUm 2 JP t3 2 77sgqpbTIr_Zt1 fhYPGC8W82NwJTQL 2 3BQ pVWDEz 2 buCeoOotAkV8DaFD6 tg 1 UkXQ3iaNJ 2 ALTqPt7JUSLrl vwfw 1 QTEzV6tp 3 wJlbqIU 4e1l0pO8eFjZwkDo 9cy_y_RNRwex8j7224hz 2 6mbCu5zA eiuF7a_ 1 xy6QBr8ECi 3 _Yej1PrINtydmOudwoO PezeyUurYoz7...
result:
ok 10000 test cases ok. (10000 test cases)
Test #7:
score: 0
Accepted
time: 87ms
memory: 15684kb
input:
10000 27 bhAGFVDBjp4_Tvo U 24 accepted bhAGFVDBjp4_Tvo O 37 rejected bhAGFVDBjp4_Tvo D 40 accepted bhAGFVDBjp4_Tvo H 45 accepted bhAGFVDBjp4_Tvo B 60 rejected bhAGFVDBjp4_Tvo J 63 accepted bhAGFVDBjp4_Tvo M 81 rejected bhAGFVDBjp4_Tvo M 98 rejected bhAGFVDBjp4_Tvo D 103 rejected bhAGFVDBjp4_Tvo Q 11...
output:
1 bhAGFVDBjp4_Tvo 2 rl euenQ 1 seny 2 8zfFqdixKjh nLWe5xvBqfYkN 1 VDeEtfbb 1 9PAd7wtbCZMws6u 1 Wsfc5qold4uacAjI1y 2 NX6GLK3Nz h68cyLwQ7drM__pSJub 3 sdf0IGct21OeEFJ yOgwg U7S8zgJhR6 1 acesvM9yT 1 2hQb 2 3twK2MJI_ P5 1 eGCz 3 UXRu8i 39GgHUPovILESCd0 tLHWIEVr5i7vlKpvlP 1 20gsbZ25SsYp8 1 ...
result:
ok 10000 test cases ok. (10000 test cases)
Test #8:
score: 0
Accepted
time: 73ms
memory: 14512kb
input:
10000 2 vVflLovvnhJEO U 3 accepted Fg P 48 rejected 12 V9UJ5hEaWiwMq3lxwKw9 P 30 accepted CKsw M 34 rejected dCZBzKMxgQfgBDZO R 50 rejected A1R2kF N 54 rejected A1R2kF X 65 accepted HEih51ut H 68 rejected HEih51ut J 75 rejected l0MCFXNXlH6T2wT I 163 accepted A1R2kF B 180 accepted dCZBzKMxgQfgBDZO A ...
output:
1 vVflLovvnhJEO 2 V9UJ5hEaWiwMq3lxwKw9 A1R2kF 4 2 5sFcoMh fLUS3NYE xgdxQ7t 2 S25TIbMLU5FMV6ys4 2ra47EFC7LWzxTF2tSH 2 uwm tczurXngUW 3 Zh4tWi1QdYjTblw5 DNAv gWG1aLfP1Gk 1 qN_OnmRhGksD 1 pAJC7fTKPJjaxPP 2 mElj5iV4wfu Jr9Sqekor 1 _Z13N_OO 1 rn 1 HhjFL6Rg 1 2q 5 QFFNJcyah90 tEVFWKnJOwmj0bdT...
result:
ok 10000 test cases ok. (10000 test cases)
Test #9:
score: 0
Accepted
time: 88ms
memory: 14928kb
input:
10000 4 BUqwUvN2v7co K 45 accepted fb4ykhGx9CBzWxLcGYjf F 96 rejected 3X39YaWp0LItH14Owx R 142 rejected 7JGP4qtBonRiKpsKW U 155 rejected 3 Z0cxqdpQ69NGV5wDoht X 92 rejected 1E0aicZDqPhh E 105 accepted a3fvTkSrKXqQipNGs4h K 261 rejected 6 LR6PY6OjDoSaZpT W 33 accepted Et8w1E52xfM27 Q 155 accepted LR6...
output:
1 BUqwUvN2v7co 2 Z0cxqdpQ69NGV5wDoht 1E0aicZDqPhh 1 LR6PY6OjDoSaZpT 3 YX 7f b 4 buFAkOkQ_F o7VPp sgpEsfgf_Fd WqSH 1 coTjuCSsnonAgjYkChE 2 GC0Lw1Di clGo2Z4AMe9Qp 2 FCCHBTUTGJTbTjEb IrJ_n_Ym 1 fkBpEQxhBl21ARSTVR 1 fQzlJS9JEIS97gIIG7p4 6 togGKu7uZzgrRhln6iW otcG2t bLED4G7CY_M ljfPMl71hE pqyDm...
result:
ok 10000 test cases ok. (10000 test cases)
Test #10:
score: 0
Accepted
time: 81ms
memory: 15752kb
input:
10000 7 dBv7DiT L 42 rejected dBv7DiT P 123 accepted 7Bj2dZF6Gy7csrXYakI T 131 rejected 9KtuO O 190 accepted BxACEk Q 285 rejected BxACEk Q 291 rejected HK0pq9qsGnlkgAQT L 296 accepted 3 NQgnW3CShrFJYkKdjagN G 53 rejected ZwZCr O 261 accepted ZwZCr P 270 accepted 6 mbGQ7wcZYr9leKBCsFN Z 4 rejected 7...
output:
2 9KtuO dBv7DiT 1 ZwZCr 2 4LUVnW93OFHOl6fJOmXK 7s1bgtS 4 upCvWQnHRgRSQQ pz CZNz6k1QgLrHojbY _g2LouxyEI_BXaOYQWn 3 ungF4dKzJt290JMWNgeH q t 3 SuBp7xLMGCHgk 6mCVqSBpHVkrNZ 4FjAuM44Nzaz6Tc0 1 xXqqS7r1OU 1 YEHiJvhHR8OmUWz 3 BiasA1Md2ViU 0WZFvefoPtNo m 1 MzQD 2 L501za_ktc MJJ4n2rC7YHRflGzEL 1 ...
result:
ok 10000 test cases ok. (10000 test cases)
Test #11:
score: 0
Accepted
time: 8ms
memory: 16644kb
input:
7 110 10 A 0 accepted 0 A 100 accepted 1 A 100 accepted 2 A 100 accepted 3 A 100 accepted 4 A 100 accepted 5 A 100 accepted 6 A 100 accepted 7 A 100 accepted 8 A 100 accepted 9 A 100 accepted 0 B 100 accepted 1 B 100 accepted 2 B 100 accepted 3 B 100 accepted 4 B 100 accepted 5 B 100 accepted 6 B 10...
output:
11 10 9 8 7 6 5 4 3 2 1 0 11 10 9 8 7 6 5 4 3 2 1 0 11 10 9 8 7 6 5 4 3 2 1 0 11 100 9 8 7 6 5 4 3 2 1 0 12 10 100 9 8 7 6 5 4 3 2 1 0 36 35 34 33 32 31 30 29 12 11 10 9 8 7 6 5 4 3 2 1 0 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 1...
result:
ok 7 test cases ok. (7 test cases)
Test #12:
score: 0
Accepted
time: 75ms
memory: 15148kb
input:
1000 58 8VR4968BiWGrjt0 G 1 accepted KfduBOJVYor3ixLgzUo Y 5 accepted r9l9P_xyc7oagiZS0ZJ G 26 accepted PL3OrMzXRJRVskByRHHl Y 38 accepted 7wL2M4T1PWyv9rJSdzGN N 47 rejected Vu56KH6ZGwSm E 48 rejected 8VR4968BiWGrjt0 D 53 accepted SI7h8yP C 57 rejected aSVEsYSH9PJjsjSAyH N 61 accepted D3UrdM8xI S 71...
output:
5 SI7h8yP mn0iyGyqWOakTAs1Qw umqh9D PL3OrMzXRJRVskByRHHl 8VR4968BiWGrjt0 6 uxPAbOmdBcWg64Q52 6OSsIJ 3A4BJULiR9S f22a5ba_ze2qsm2_2k EYdAeGI 9M 25 FJhecJwM 9DVkaj8vMDxLV4MVh2O_ wjew0c2d Zsl D6SdnJFh6xFQlZehalkc Qo8l4lQKg huLWXo u XJ9p0AKseAnbt7vmR_ JjWIyr8 lUs4Rd_AXJR2FP48 DIt OltMSo53IsdGRLoUb0 aaM...
result:
ok 1000 test cases ok. (1000 test cases)
Test #13:
score: 0
Accepted
time: 90ms
memory: 16016kb
input:
100 974 qG R 0 accepted k2K I 0 accepted NelrCjQd_AHSw107 D 1 accepted ybeH_JvdmCLMOGl9x K 1 accepted h3 Q 2 accepted 9qOW O 2 accepted v1IWHoW7Mkuce6qH Y 2 accepted mlypVkK5Xl1KXw3o P 2 rejected zs X 3 accepted 1Fpyq8oUYV_aNp I 3 rejected e1bM8xUh E 3 rejected myaSH0LCL4hD5BlAj F 4 rejected IJETUS2...
output:
65 sY6FEc5whjqMF d7qLRjtKgQcbKD 3f3gDxR LhlGfI4XZ k2K aOtxLwyhTOqQrGSi aBC22hKEI90RS JSC6wpny7viIbAUq jp0GVUcZUKvitpzn9 mCCZ6WP FJ9Y e1bM8xUh nn2N7XBjtrRGjt 55IlpzN WXZbk3whbB_MWj5gppOj dHvWryQd8SGEch tHhnCuExgbOb Ms7FjfFm s eb29p_fCrahfg o_d5R9oBv 2tougTgqY91VXB3 qG jjlJFal1mKsc9bV0rJ T0nxKkJV jpgL...
result:
ok 100 test cases ok. (100 test cases)
Test #14:
score: 0
Accepted
time: 92ms
memory: 21592kb
input:
10 5371 r0JLpp2hFx T 0 accepted w19l89 X 0 rejected PeEB Y 0 accepted 2MwVQe3 Y 0 accepted CarjodD8k4E K 0 accepted vNjq0LmY D 0 accepted Bvi16IvVACG3uREuoO X 0 accepted yMlDlaWPTluR1dk43nl6 A 0 rejected 4LBA3qILgaib4lrQ X 1 accepted vRSpyKVAU7e I 1 rejected 627aFcGG4zh8 Z 1 rejected FHwI U 1 accept...
output:
85 Yty2QxNi FHjsj6oWpg72iBLgjLf Gthf5xZXaX6rY OSZr53WvaeF jqaKFR6rbaoxYWCeg Yt_hc f4Q1l0kVnw9iKmN 3oyR1q 2YL1K5JThyVh6 LiXfrK_Jv_ R4XEcIYJQlIb cRRk9 DP3Q56WAbP NUfdpuFpalE ny6 IxS 4J8yfyWPQLaYwOPbQ1c RYY7Oy5Ma3N_Q ho1sZQLQFMygRJOSlB43 2AF3LbCAMXg 61F 9Saa Trcyq7Y aXGT gSEQxgTIy m8egNT9AnqXg zm5DV8bv...
result:
ok 10 test cases ok. (10 test cases)
Test #15:
score: 0
Accepted
time: 129ms
memory: 52596kb
input:
1 100000 OZeDY6m2v P 0 accepted DolcP A 0 accepted 2Z9Yd M 0 rejected Vjl F 0 accepted SPetC8_ru4S3nXJkkD C 0 rejected XhLC G 0 rejected wZvhcns7t7EaOero E 0 accepted HRqRKcO87 I 0 rejected dwfT7D H 0 rejected cxvYaN8zSMGpoa9Q9xv U 0 accepted nvXlrCa1zbx8uokfd T 0 accepted E_bbU5C9bgpD_wGo P 0 rejec...
output:
213 qU5v8dBD RKxaty5m9woG2QPuSR TSWGmk_1mBzmA rOoZF7Um6Y8 norBNfmo aaT9YvC03ODI90MHDb8 wg_X_yALw2tHf8nHc5i u4DV7 HlsR7skOjRA ahYS3cP lf5mLdFWWU1v NJ9DCksyL mhikQxNTOdHws3hC7S r0mGWY_PMizgU6A86w4 MtzTXAbB3ma6KTvuQ qFaqhT9WCaERbJk1m NyX blLmaRkUdrSv2WrqV8vT INWTJ TT1R2MCLYD6kJ1_SZ gPxM1 voVZR Mo2 abus...
result:
ok 1 test cases ok. (1 test case)
Test #16:
score: 0
Accepted
time: 38ms
memory: 14824kb
input:
1 100000 A A 0 accepted B Z 299 accepted B Z 299 accepted B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A 299 rejected B A ...
output:
1 B
result:
ok 1 test cases ok. (1 test case)
Test #17:
score: 0
Accepted
time: 1196ms
memory: 79708kb
input:
1 100000 qyGXWlwMuXY3212 A 20 accepted l_IeEuuLy9 A 20 accepted nlyFO0YOiDxyiNjBb A 20 accepted 8H A 20 accepted ek A 20 accepted Em63tewQVLljOUO4r A 20 accepted AHdtZtwK8debApdvxMy8 A 20 accepted l3aTB A 20 accepted vyFuSSSLTV5yP A 20 accepted uzPnnAXshwHCbl7 A 20 accepted sL A 20 accepted K099qoYV...
output:
99965 5WZ rHGKJ_7kfS3V95a9 k_uB FcisyCyzF5BGcx5_2KG fc3L 1S3Wu CxN wn22js7TRAVBEN35b zOS jzouaEEoZB aSO R17E3w D7wiE0 jAwIhgAdbj NJhTen_Ns s3bwgePUjRlM IJ8LiKJ yTIWmVbP tOnj dQMVn 6ibbYiT8Luda__kc O0bEi eDH6j132ceiTlhP UGRS189K4M a5y vsfpf8M61i3XxxAJOWK dgYfJAsl4IJnLwFHQ XZNvnjxKKuP51GRKQ MZSmdVVS92...
result:
ok 1 test cases ok. (1 test case)
Test #18:
score: -100
Time Limit Exceeded
input:
1 100000 xhmAFe A 20 accepted loPCkhj2qt A 20 accepted WIx A 20 accepted T3zIPb A 20 accepted xEEBg A 20 accepted Gd0_zLXNJ1l1_Zrqa2 A 20 accepted cM68n01suqhgjrBA A 20 accepted LA6 A 20 accepted AXBqy A 20 accepted VLc4yxmdrN7S A 20 accepted 6p_z1vz2 A 20 accepted wujWaUQNU0 A 20 accepted eHIPyc0l3...