QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#595436#9350. Fixing BannersAlucardWA 42ms3656kbC++14977b2024-09-28 13:43:032024-09-28 13:43:03

Judging History

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

  • [2024-09-28 13:43:03]
  • 评测
  • 测评结果:WA
  • 用时:42ms
  • 内存:3656kb
  • [2024-09-28 13:43:03]
  • 提交

answer

#include <bits/stdc++.h>
#include <iostream>

using namespace std;
 
typedef long long ll;

typedef long double ld;
typedef unsigned long long ull;
typedef pair<int,int> PII;
typedef pair<ll,ll> PLL;
#define i128 _int128

#define fi first
#define se second 
#define pb push_back

#define jintian return
#define shuawuti 0
#define endl '\n'

const ll INF=1e18;
const ll N=1e5+7;

string str;

void solve(){
    map <char,int>mp={{'h',0},{'a',0},{'r',0},{'b',0},{'i',0},{'n',0}};
    for(int i=1;i<=6;++i){
        cin>>str;
        for(int j=0;j<=sizeof(str);++j){
            if(mp.find(str[j])!=mp.end()){
                mp[str[j]]++;break;
            }
        }
    }
    if(mp['h']&&mp['a']&&mp['r']&&mp['b']&&mp['i']&&mp['n'])cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

int main(){
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    
    int _=1;
    cin>>_;
    
    while(_--)solve();

    jintian shuawuti;
}

详细

Test #1:

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

input:

2
welcome
toparticipate
inthe
ccpccontest
inharbin
inoctober
harvest
belong
ninja
reset
amazing
intriguing

output:

No
Yes

result:

ok 2 lines

Test #2:

score: -100
Wrong Answer
time: 42ms
memory: 3656kb

input:

50000
dwwfplbjd
elulqfmsp
whobggs
kbnhtvzcs
zllux
ggye
vtnqpmvi
cgsplau
gkuwhhmrio
sp
q
utrefny
tvdcequdjj
klesyx
esovlmdy
x
nywu
gklfbqfb
ysnaswszfq
ouo
tq
r
auvi
copeabvz
nruvawao
cdv
vdsk
hboecpit
s
ewscbmb
jeqp
gel
u
htk
fcoigxbux
ylinyzut
bnhrvoetf
xa
ehnbce
keyk
efvzoyba
xan
tvnlm
tetpijfh
blq...

output:

No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
N...

result:

wrong answer 40th lines differ - expected: 'No', found: 'Yes'