QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#357203#6747. PermutationYueazeroWA 0ms3652kbC++17526b2024-03-18 19:19:202024-03-18 19:19:22

Judging History

This is the latest submission verdict.

  • [2024-03-18 19:19:22]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3652kb
  • [2024-03-18 19:19:20]
  • Submitted

answer

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e5+5;
inline int read()
{
    int x=0,f=1;
    char ch=getchar();
    while(ch<'0'||ch>'9')
	{
        if(ch=='-')
            f=-1;
        ch=getchar();
    }
    while(ch>='0'&&ch<='9')
	{
        x=(x<<1)+(x<<3)+(ch^48);
        ch=getchar();
    }
    return x*f;
}
ll n,m,k,t;
ll a[50005],b[50005];
int main()
{
	n=read();
	
		for(int i=1;i<n;i++)
		{
		   if(i!=1) cout<<" ";
		   cout<<i;
		}
	
	
    
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3

output:

1 2

result:

wrong output format Unexpected end of file - int32 expected