QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#357203 | #6747. Permutation | Yueazero | WA | 0ms | 3652kb | C++17 | 526b | 2024-03-18 19:19:20 | 2024-03-18 19:19:22 |
Judging History
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