QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#56899 | #3895. Hungry Henk | MahmoudAtia# | AC ✓ | 9ms | 15740kb | C++ | 1.0kb | 2022-10-21 20:23:18 | 2022-10-21 20:23:21 |
Judging History
answer
#include <bits/stdc++.h>
typedef long double ld;
typedef long long ll;
using namespace std;
int di[] = {1, 0, -1, -1, 0, 1, -1, 1};
int dj[] = {1, 1, 0, -1, -1, 0, 1, -1};
const ll oo = 1e18, MOD = 998244353;
const int N = 5e5 + 5, M = 1e6 + 5;
const ld PI = acos(-1.0), EPS = 1e-9;
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//using namespace __gnu_pbds;
//typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
ll n, m, a[N];
vector<string> v[N];
string s;
//#define endl '\n'
int main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
//freopen("farm.in", "r", stdin);
//memset(dp, -1, sizeof dp);
cin >> n;
int mx = 0, idx = 0;
for (int i = 1; i <= n; i++) {
cin >> a[i];
if (a[i] > mx) mx = a[i], idx = i;
while (a[i]--) cin >> s, v[i].push_back(s);
}
cout << v[idx].size() << '\n';
for (auto x:v[idx]) cout << x << '\n';
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 15444kb
input:
3 2 bigburger fries 2 pizza garlicbread 2 macaroni cheese
output:
2 bigburger fries
result:
ok
Test #2:
score: 0
Accepted
time: 4ms
memory: 15216kb
input:
4 2 pasta pizza 3 icecream sweets pasta 1 megapizza 2 icecream pizza
output:
3 icecream sweets pasta
result:
ok
Test #3:
score: 0
Accepted
time: 8ms
memory: 15460kb
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 a
result:
ok
Test #4:
score: 0
Accepted
time: 2ms
memory: 15288kb
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: 8ms
memory: 15356kb
input:
1 1 a
output:
1 a
result:
ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 15444kb
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: 1ms
memory: 15268kb
input:
2 2 a b 2 c d
output:
2 a b
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 15360kb
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: 4ms
memory: 15340kb
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 a b c d e f g h i j
result:
ok
Test #10:
score: 0
Accepted
time: 9ms
memory: 15684kb
input:
100 42 vtumladxhjiczdarditj ocqywaglgqegkkcowqqo gudpbaravawdlfjjwtep ihkfnsptjkwbtzluyxek rfybtmnzsneqfrcsufbk tblprqxixabzmnadglvl igvjrekuywlishylsiql crluesrjuvqnktmktime nosevzcackswihqfxpec dtywsujuolrczhjrkctx mnzzbdddjbcqgwdeegdd qarfrtuxkrmrktujgaiq sbxofrqukqjwkefptvvs aozimhvvzkfrkkirtqwa...
output:
42 vtumladxhjiczdarditj ocqywaglgqegkkcowqqo gudpbaravawdlfjjwtep ihkfnsptjkwbtzluyxek rfybtmnzsneqfrcsufbk tblprqxixabzmnadglvl igvjrekuywlishylsiql crluesrjuvqnktmktime nosevzcackswihqfxpec dtywsujuolrczhjrkctx mnzzbdddjbcqgwdeegdd qarfrtuxkrmrktujgaiq sbxofrqukqjwkefptvvs aozimhvvzkfrkkirtqwa nce...
result:
ok
Test #11:
score: 0
Accepted
time: 5ms
memory: 15688kb
input:
100 42 dqtferqmrjcwhremxphk ogvwbzfoqxvvlcntvocr othilfpqlsdcfqxpugmp otsunijldafhxvduxmof yblqilwqggcxxjndqadl zdhrghaalfyizuwmaceq zjyewhouunwihkftmagg rnnxbchgucwjxcfmulia seanpsawmfyippickfww mvulgxglhwzdulzufmfl hitmwkyehxqtfivbxbau gfwfawbtjxafrnosqypk ujvkmitcprszhvhjwykm atyzixzryvovmqdsnnso...
output:
42 dqtferqmrjcwhremxphk ogvwbzfoqxvvlcntvocr othilfpqlsdcfqxpugmp otsunijldafhxvduxmof yblqilwqggcxxjndqadl zdhrghaalfyizuwmaceq zjyewhouunwihkftmagg rnnxbchgucwjxcfmulia seanpsawmfyippickfww mvulgxglhwzdulzufmfl hitmwkyehxqtfivbxbau gfwfawbtjxafrnosqypk ujvkmitcprszhvhjwykm atyzixzryvovmqdsnnso orn...
result:
ok
Test #12:
score: 0
Accepted
time: 2ms
memory: 15740kb
input:
100 42 fgoqfqnxhszqzxcnznrs kbinfdmwwiffngayezxz lwhmyougxlzveezzggqo uqrktudoivfyrfiranko qmitliiygnrwovwkcxau vurfpnwcnltixhggynuc imljesquoxiagmjskity jvmpghuulhtlyxulwdze xqxeqpmuptjvihrvqfxu rxtamidhrqhdovicrlhy beagotocadetuugkgael htqtkmnqmqfpgpmrseer kyyqeolresgcpbhstfhk taxnimmosjrdgrbrgknp...
output:
42 fgoqfqnxhszqzxcnznrs kbinfdmwwiffngayezxz lwhmyougxlzveezzggqo uqrktudoivfyrfiranko qmitliiygnrwovwkcxau vurfpnwcnltixhggynuc imljesquoxiagmjskity jvmpghuulhtlyxulwdze xqxeqpmuptjvihrvqfxu rxtamidhrqhdovicrlhy beagotocadetuugkgael htqtkmnqmqfpgpmrseer kyyqeolresgcpbhstfhk taxnimmosjrdgrbrgknp hld...
result:
ok
Test #13:
score: 0
Accepted
time: 3ms
memory: 15676kb
input:
100 42 wfppnpcwurjqmynszgaq tmjrnxenqvgkjvzlsuox jwyyopzmznttvvilutow asyqvmpxrfraflbjyzzm gjkxcfvmsqbabjrlwipn iebqortnkwvbnzjgdyna cydzzcibuoowcnlgvnkw qozrfzuzphwioolrzmdg wvkdbawybiomlcovcggn aydlhgwyfmalurjhffel qvndwuuwuoluoqglgtrl nxdcpdgurzqjwwwndaxq myrnywuotveqwirpbvxb hexlhsxgumehsyftmltt...
output:
42 wfppnpcwurjqmynszgaq tmjrnxenqvgkjvzlsuox jwyyopzmznttvvilutow asyqvmpxrfraflbjyzzm gjkxcfvmsqbabjrlwipn iebqortnkwvbnzjgdyna cydzzcibuoowcnlgvnkw qozrfzuzphwioolrzmdg wvkdbawybiomlcovcggn aydlhgwyfmalurjhffel qvndwuuwuoluoqglgtrl nxdcpdgurzqjwwwndaxq myrnywuotveqwirpbvxb hexlhsxgumehsyftmltt ezx...
result:
ok
Test #14:
score: 0
Accepted
time: 7ms
memory: 15488kb
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:
39 ivvihy csnsu ibvbqiqpx hvkmrrwlpbgfzv cvdywzdwtiyvhuswa uefwjj xdpx iaqoyixssbtuzsr dutpukaslxlcohc cnqxynejvihspvvphwll ziphvy fwpnhdubpu weuygqwgfmbj vbfghrupwfqrctcp wcpjkgztbisvpxjmn jlrsyjfjjoq jnozkw lgtrscpxdnfmoyxecw fuin otoeayrridopq hfnuxhz yd azgmbslfzdlhrckxcxnv vhppezmqrfeoov yvaizk...
result:
ok
Test #15:
score: 0
Accepted
time: 2ms
memory: 15336kb
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:
41 wmmacjyxqltinxkyuxwt ulchk akbecxh vjwfcx mfxspivfcnhcpnsjqmdv rvhemcrsqprpusnvo rgxsvujrhqseuzilizyb ypzrqqkotrhibq usycqfrziev fdnizwpqqqbmiae aukxzcizmnklolrp mo mj fpiqt tssxemaajliwm utbzmcws swhymaigtzz hjdjzjmvoyaigijxwzx algv ilmglrabsgvifcgpheqn zitcszlralecuc imrjawiigc glqxi ovbpvk jrn...
result:
ok
Test #16:
score: 0
Accepted
time: 5ms
memory: 15424kb
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:
42 jldf ybchkrfxfbqrsxhhec rnevst grkxbjiqupwxtelfy ixiqpjbjyvlxrmhj jstbjbjscjyjyuapbbo gh hzbdruwuymlmsr hknseds ahtvk bxkslzowoyjiz wajlrzhqex swziqpj fgbcyqfavrmgabccxcu nzznafiwuwgrca ybbkqjrpve a krsvjedlhvurjdkxn kba ajiaxvfz sabitpvmjfgl xmzfr pnbxsrvncboqec s ug tpadkhhm fjhx ylavasmgkctobz...
result:
ok
Test #17:
score: 0
Accepted
time: 0ms
memory: 15440kb
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:
42 vniryzaimyapualxyq qrchhjzmfimrnhnlqylr bcsrhpxgttkokhzl kdiphafhrfkwa hphkmozfinlc obli vegnvhgec xxeft qoeytqfql dpiwdhsy wghtqbtzcez snyojdvamdgbtvq pufvbkirvqsgeoptfw ihcxnhaneex jiqxcju pzwyv zwiei jzxjgaiaft iqwwgketaxgfxeeh ludgeyqhppswzdioi vmvbbqhlnetkxudwl zkslxu suszcbclgduemzyef agr f...
result:
ok