QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#114695#3895. Hungry HenksanjoyruAC ✓1ms3560kbC++141.4kb2023-06-23 00:10:132023-06-23 00:10:14

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-06-23 00:10:14]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3560kb
  • [2023-06-23 00:10:13]
  • 提交

answer

#include<bits/stdc++.h>
#include <stdlib.h>
#include <ext/pb_ds/detail/standard_policies.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define f0(i,n) for(int i=0;i<=n;i++)
#define first_IO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define in_buffer cin.ignore(numeric_limits<streamsize>::max(), '\n')
#define ordered_set tree<ll, null_type, less_equal<ll>, rb_tree_tag, tree_order_statistics_node_update>
#define ll long long
#define zero (int)0
#define int long long
#define double long double
#define pb push_back
#define pii make_pair
#define goto_hell return 0
#define newline cout  << "\n"
#define endl "\n" // << flush
#define all(x) x.begin(),x.end()
#define sz(x) x.size()
using namespace __gnu_pbds;
using namespace std;
const int mod = 1e9+7;
const int inf = LONG_MAX;


void solve(int test)
{
    int n;
    cin >> n;
    map<int,vector<string>>sap;
    for(int i=0;i<n;i++)
    {
        int d;
        string s;
        cin >> d;
        vector<string>v;
        for(int j=0;j<d;j++)
        {
            cin >> s;
            v.pb(s);
        }
        sap[d]=v;
    }
    cout << sap.begin()->first << endl;
    vector<string>v = sap.begin()->second;
    for(auto it : v)
    {
        cout << it << endl;
    }

}



int32_t main()
{
    first_IO;
    int test=1;
    //cin >> test;
    //cout << "Test = " << test << endl;
    //in_buffer;
    for(int t=1;t<=test;t++)solve(t);
    goto_hell;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3556kb

input:

3
2 bigburger fries
2 pizza garlicbread
2 macaroni cheese

output:

2
macaroni
cheese

result:

ok 

Test #2:

score: 0
Accepted
time: 1ms
memory: 3456kb

input:

4
2 pasta pizza
3 icecream sweets pasta
1 megapizza
2 icecream pizza

output:

1
megapizza

result:

ok 

Test #3:

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

input:

100
1 a
1 b
1 c
1 d
1 e
1 f
1 g
1 h
1 i
1 j
1 k
1 l
1 m
1 n
1 o
1 p
1 q
1 r
1 s
1 t
1 u
1 v
1 w
1 x
1 y
1 z
1 aa
1 bb
1 cc
1 dd
1 ee
1 ff
1 gg
1 hh
1 ii
1 jj
1 kk
1 ll
1 mm
1 nn
1 oo
1 pp
1 qq
1 rr
1 ss
1 tt
1 uu
1 vv
1 ww
1 xx
1 yy
1 zz
1 aaa
1 bbb
1 ccc
1 ddd
1 eee
1 fff
1 ggg
1 hhh
1 iii
1 jjj
1 ...

output:

1
vvvv

result:

ok 

Test #4:

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

input:

100
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
1 a
...

output:

1
a

result:

ok 

Test #5:

score: 0
Accepted
time: 1ms
memory: 3452kb

input:

1
1 a

output:

1
a

result:

ok 

Test #6:

score: 0
Accepted
time: 1ms
memory: 3524kb

input:

1
42 a b c d e f g h i j k l m n o p q r s t u v w x y z aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp

output:

42
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
aa
bb
cc
dd
ee
ff
gg
hh
ii
jj
kk
ll
mm
nn
oo
pp

result:

ok 

Test #7:

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

input:

2
2 a b
2 c d

output:

2
c
d

result:

ok 

Test #8:

score: 0
Accepted
time: 1ms
memory: 3528kb

input:

10
10 a b c d e f g h i j
10 a b c d e f g h i j
10 a b c d e f g h i j
10 a b c d e f g h i j
10 a b c d e f g h i j
10 a b c d e f g h i j
10 a b c d e f g h i j
10 a b c d e f g h i j
10 a b c d e f g h i j
10 a b c d e f g h i j

output:

10
a
b
c
d
e
f
g
h
i
j

result:

ok 

Test #9:

score: 0
Accepted
time: 1ms
memory: 3400kb

input:

10
10 a b c d e f g h i j
10 b c d e f g h i j a
10 c d e f g h i j a b
10 d e f g h i j a b c
10 e f g h i j a b c d
10 f g h i j a b c d e
10 g h i j a b c d e f
10 h i j a b c d e f g
10 i j a b c d e f g h
10 j a b c d e f g h i

output:

10
j
a
b
c
d
e
f
g
h
i

result:

ok 

Test #10:

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

input:

100
42 vtumladxhjiczdarditj ocqywaglgqegkkcowqqo gudpbaravawdlfjjwtep ihkfnsptjkwbtzluyxek rfybtmnzsneqfrcsufbk tblprqxixabzmnadglvl igvjrekuywlishylsiql crluesrjuvqnktmktime nosevzcackswihqfxpec dtywsujuolrczhjrkctx mnzzbdddjbcqgwdeegdd qarfrtuxkrmrktujgaiq sbxofrqukqjwkefptvvs aozimhvvzkfrkkirtqwa...

output:

42
weicmfkeaxgxpmmdrkro
enihaofelsiumzyerpcb
wwqovsludjdtotodstli
sxnubapylrqvpovjhzxq
zdorowhbragxysreaykt
qcocnkaehblzicryimeg
uygsmaimrnjarngppier
hwzgbrauycfsrliaoyuo
vnznvmlxjcrstegrfbrx
jokdnvvcqczlplqejpej
evcdoeirrihskicbswej
ckyfljzdahqeafoirjfl
jtnpolqljtwnzahvigze
djtqaqcrsnbgkkxutedk
ess...

result:

ok 

Test #11:

score: 0
Accepted
time: 1ms
memory: 3464kb

input:

100
42 dqtferqmrjcwhremxphk ogvwbzfoqxvvlcntvocr othilfpqlsdcfqxpugmp otsunijldafhxvduxmof yblqilwqggcxxjndqadl zdhrghaalfyizuwmaceq zjyewhouunwihkftmagg rnnxbchgucwjxcfmulia seanpsawmfyippickfww mvulgxglhwzdulzufmfl hitmwkyehxqtfivbxbau gfwfawbtjxafrnosqypk ujvkmitcprszhvhjwykm atyzixzryvovmqdsnnso...

output:

42
tmfacijgtjzjctzhtirr
bqzwmqnzioiopmpywqwu
hdhcxkipfbaiyqzwumco
wciequzgcukmvksasyhd
xafipkltskkxoexdrjah
mtndppbracmbqergeaxp
vujgbkwaprbihviegcyc
vhbbaylvxcpyzsymnhvm
nxugflkwmxphuykjdnps
zmixvlaxqzvleuapqwup
slkzgiflcdlemdcteozl
ekswhtymouobblkmdley
fqqeriqrdxraymctgwxm
csjrwazkmicltaidwjbj
uad...

result:

ok 

Test #12:

score: 0
Accepted
time: 1ms
memory: 3472kb

input:

100
42 fgoqfqnxhszqzxcnznrs kbinfdmwwiffngayezxz lwhmyougxlzveezzggqo uqrktudoivfyrfiranko qmitliiygnrwovwkcxau vurfpnwcnltixhggynuc imljesquoxiagmjskity jvmpghuulhtlyxulwdze xqxeqpmuptjvihrvqfxu rxtamidhrqhdovicrlhy beagotocadetuugkgael htqtkmnqmqfpgpmrseer kyyqeolresgcpbhstfhk taxnimmosjrdgrbrgknp...

output:

42
zbabmffszdvnddlowckm
obdestdaerbmzhbdqqav
oanvtkmpbecmxeqsdzwu
spxeviowzrumxlrxwoxb
gpwxnqrhilymznisuqma
ulmcqgmdwdjsbjrvedzq
aaaahncoiovlpktkyfti
ygezbcptoqvlavhyplfj
grrthqbuyfszlogwmfga
mdoxyggbqgfjjbtgtias
ycjwcsbflmecithjzoao
qjfqwxmfjhlrznkjtrnc
apyeqilbinntzmmmygsw
kadkiqlokrukboibjhdu
fss...

result:

ok 

Test #13:

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

input:

100
42 wfppnpcwurjqmynszgaq tmjrnxenqvgkjvzlsuox jwyyopzmznttvvilutow asyqvmpxrfraflbjyzzm gjkxcfvmsqbabjrlwipn iebqortnkwvbnzjgdyna cydzzcibuoowcnlgvnkw qozrfzuzphwioolrzmdg wvkdbawybiomlcovcggn aydlhgwyfmalurjhffel qvndwuuwuoluoqglgtrl nxdcpdgurzqjwwwndaxq myrnywuotveqwirpbvxb hexlhsxgumehsyftmltt...

output:

42
zcgmxxducjlefgkdimgj
vmhnzbrfvqerydlsemon
igazpygakymonjjfrasw
tamumduqsctfvuzpgymy
jadnjkeetooeblxuofjz
fetpdlueoevhohcxhddh
wcucvmcfuuqfsbvudwsj
tjjmixxrbgkhghztywuh
tjscmcrqlakudacqneau
llffqcaqnlujhibfwgnq
plyvsiumquctrgwpgldn
mvqdyckilwjihzxjdrwb
tnonklalrniymdaoizvp
hfchliahzobbzmozqhfp
ido...

result:

ok 

Test #14:

score: 0
Accepted
time: 1ms
memory: 3520kb

input:

32
27 vhbuoqmvtygvpvqvbmd iccyp xxpdjljuud mycmrgzj lccpfwr hmfvctzhcfmtj a emeqmtc acgcwdorsfq cwtn cjdjliqanjutzosrdjhp qdz lyxypoitookq kmyhxtszcwrcpwhqgo ehucgzubaniijammq psyakpswkkd mqogimroxyrsxkg gaynvbtwugel ebphwk ugdnbgbpbv ljnvkiulqtdxe zinzqavveqrkub shdbhsiowhdatowcl deqstfkvl htyeptcr...

output:

4
oonqj
nvkpdlggzwqk
eqolnastnrdcotmwgcy
krlrcxzbnkboiujld

result:

ok 

Test #15:

score: 0
Accepted
time: 1ms
memory: 3464kb

input:

51
21 wwbs ox g thqji tqsjjepv sdcfzngcpmvfgwnvbde rfiwlvpujohiotybr neigm ynhnihymalzjkccj lzavm naufmcfzf dyhy yumnbuojny rwgkfkpqcuxeg u cyrbflyqtqtzofmrmb zkxlggisjjqcvdqcydz owmgi qdhzkmmzynvsq rbyegifwmfke ibcqtimatephd
41 wmmacjyxqltinxkyuxwt ulchk akbecxh vjwfcx mfxspivfcnhcpnsjqmdv rvhemcrs...

output:

1
rqkeg

result:

ok 

Test #16:

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

input:

48
1 xbbuegkb
21 kcvlbgmurgqzzov nwayevsf piittrzvmre i mzqxbndzslh ziolvi dtpmxtjrbaxcas vwevumdoipqs cmpupypyojs stgtgnkjtistvzkegtsv q fjhprvqcsgzytwvwwiie ycclpejumbgjdxjzhkb ggjwgecluohdrfocxo gthrozlrkywhxysol sesalcrkxgybdlhrjvda gbleywuafnyxo olhxpxamwvbic liogaquklaf uahuog fopgvtamalhfvmue...

output:

1
dkzs

result:

ok 

Test #17:

score: 0
Accepted
time: 1ms
memory: 3476kb

input:

37
20 wmpkmovpzuauyjyzutyq e lwbnxiwoelbyobkw wazrm zukqmbbqdoipevxfvfww oatfix dlcxwcz vlucfvpoqbwuhq zqxgybswccpw adkvdekhusidy wjlfglfjhlnvqtpgb djqqcmtjcmlt bsscxblpcvstnvhqpyur bfaefyudn ffosqmooyj rhvdodzdbgwdim txppuprcif bnyy kyz grsllqzhnks
9 rrp riuslxz myqnnenseumbysnct cebsnbiakxaqzfe bn...

output:

1
wzoghip

result:

ok