QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#61007#3895. Hungry HenkSayedHassan#WA 0ms3300kbC++846b2022-11-09 04:31:062022-11-09 04:31:10

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-09 04:31:10]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3300kb
  • [2022-11-09 04:31:06]
  • 提交

answer


#pragma GCC optimize("O3")
#pragma GCC optimize ("unroll-loops")
#pragma GCC target("avx,avx2,fma")
#include <iostream>
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define fi first
#define sc second

const int N=1e5+5;
int n,m;
int c[N],a[N],b[N],p[N];
int main()
{
    ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    /*cin>>n>>m;
    for(int i=0;i<m;i++)
    {
        cin>>c[i]>>a[i];
        p[c[i]]=a[i];
    }
    for(int i=0;i<n;i++)
    {
        cin>>b[i];
    }*/
    cin>>n;
    vector<string >v;
    for(int i=0;i<n;i++)
    {
        int d;
        cin>>d;
        string s;
        for(int i=0;i<d;i++)
        {
            cin>>s;
            if(i==n-1)v.push_back(s);
        }
    }
    cout<<v.size();
    for(auto x:v)cout<<x<<endl;
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3300kb

input:

3
2 bigburger fries
2 pizza garlicbread
2 macaroni cheese

output:

0

result:

wrong answer Integer parameter [name=count] equals to 0, violates the range [1, 42]